LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
SUSE / openSUSE This Forum is for the discussion of Suse Linux.


  Search this Thread
Old 10-08-2007, 04:45 PM   #1
LQ Newbie
Registered: Jan 2007
Posts: 11

Rep: Reputation: 0
Why is /usr/src/linux named differently?

Hi all,

In past versions of openSUSE I had a directory named /usr/src/linux

I've installed openSUSE 10.3 on a reformatted drive and the same directory is now named /usr/src/linux- It seems to be some kind of reference to the kernel version.

Is there some option during installation to make sure the directory is named /usr/src/linux? It seems that the ../linx- creates a problem when trying to build an ATI driver. The rpm thinks there is no kernel-sources package installed when according to yast it's installed.

Thanks in advance,


Last edited by MGorsky22; 10-08-2007 at 04:46 PM. Reason: misspell
Old 10-08-2007, 04:57 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 269Reputation: 269Reputation: 269
As root, do
cd /usr/src
ln -s /usr/src/linux- /usr/src/linux
That will create a symbolic link so that whenever anything looks for /usr/src/linux, it'll point to the other directory. Most distributions do it that way in case you have more than one kernel source on your machine. That way you can just change the symbolic link and have it compile.
Old 10-08-2007, 06:54 PM   #3
LQ Newbie
Registered: Jan 2007
Posts: 11

Original Poster
Rep: Reputation: 0

Jeez! I feel like such a knucklehead. Of course, a symbolic link.

Thanks! Greatly appreciated.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD 6.2, no /usr/src/tools and /usr/src/usr.bin, failed to build world. Mr_Shameless *BSD 4 05-16-2008 08:43 AM
searching for duplicate files, but named differently matthewhardwick Linux - General 4 10-27-2006 04:15 AM
/usr/src/linux? krackerroot Slackware 6 10-26-2003 02:31 PM
I don't have /usr/src/linux ?!?!? Nikon01 Slackware 9 08-08-2003 12:23 AM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM

All times are GMT -5. The time now is 04:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration