LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-08-2007, 04:45 PM   #1
MGorsky22
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-2.6.22.5-31 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-2.6.22.5-31 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,

MGorsky22

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

Rep: Reputation: 281Reputation: 281Reputation: 281
As root, do
Code:
cd /usr/src
ln -s /usr/src/linux-2.6.22.5-31 /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
MGorsky22
LQ Newbie
 
Registered: Jan 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Duh!

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

Thanks! Greatly appreciated.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:28 PM.

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