LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Why is /usr/src/linux named differently? (https://www.linuxquestions.org/questions/suse-opensuse-60/why-is-usr-src-linux-named-differently-590356/)

MGorsky22 10-08-2007 04:45 PM

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

pljvaldez 10-08-2007 04:57 PM

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.

MGorsky22 10-08-2007 06:54 PM

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

Thanks! Greatly appreciated.


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