Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Tips, Tricks & Tweaks
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Tips, Tricks & Tweaks Tips and Solutions for SUSE Linux
(Please do not post questions here)

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-Oct-2007, 07:29
Snakedriver
Guest
 
Posts: n/a
Default

On both my laptop and desktop, I found that the /usr/src/linux sym-link that was supposed to be written when kernel-source was installed is missing. I found this by issuing the command "cd /usr/src/linux" and getting the response that there was no file or directory named "linux". Strange! That means that the kernel is not linked to the proper kernel-source.

This means that you cannot do your own compiling (at least me).

Check it by doing:
Code:
jim@am2:~> cd /usr/src
jim@am2:/usr/src> ls -l
total 12
drwxr-xr-x 20 root root 4096 2007-10-04 16:30 linux-2.6.22.5-31
drwxr-xr-x**3 root root 4096 2007-09-24 14:11 linux-2.6.22.5-31-obj
drwxr-xr-x**7 root root 4096 2007-10-04 16:43 packages
jim@am2:/usr/src>
Note that "linux -> /usr/src/linux-2.6.22.5-31" which is the representation of a sym-link is not present.

Let's fix it!

In a terminal as root:
Code:
jim@am2:/usr/src> cd /
jim@am2:/> su
Password:
am2:/ # ln -s /usr/src/linux-2.6.22.5-31 /usr/src/linux
am2:/ #
Now let's check it:
Code:
am2:/ # cd /usr/src
am2:/usr/src # ls -l
total 12
lrwxrwxrwx**1 root root** 26 2007-10-06 07:03 linux -> /usr/src/linux-2.6.22.5-31
drwxr-xr-x 20 root root 4096 2007-10-04 16:30 linux-2.6.22.5-31
drwxr-xr-x**3 root root 4096 2007-09-24 14:11 linux-2.6.22.5-31-obj
drwxr-xr-x**7 root root 4096 2007-10-04 16:43 packages
am2:/usr/src #**
I now have the sym-link " linux -> /usr/src/linux-2.6.22.5-31" which is necessary for compiling as the kernel is linked to the proper kernel-source.

Happy compiling...Ah, workarounds...
  #2 (permalink)  
Old 06-Oct-2007, 08:04
Snakedriver
Guest
 
Posts: n/a
Default

It worked! I was able to compile the SeaMonkey rt2500 wireless driver -- presently using it to send this post!
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2