LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Linux source directory not found (https://www.linuxquestions.org/questions/mandriva-30/linux-source-directory-not-found-183104/)

Arusegawa 05-18-2004 09:24 PM

Linux source directory not found
 
Hi,
I just recently installed Mandrake 9.2 and had to install the drivers for my 3com 3c940 (uses the 3c2000 driver). The instructions that came with the driver said to make sure the source was installed in the /usr/src/linux directory, however that directory doesn't exist. When I navigate to /usr/src the only directory present is RPM. How do I go about getting the linux source into this directory, and any other tips for driver installing, because i also have to install functional firegl drivers for a Radeon 9600 in the future.
Thanks!

TheOther1 05-18-2004 10:04 PM

Did you install the kernel headers package? If so, you should have a dir under /usr/src named something like linux-2.4.20-30.9 and a link like linux-2.4 that is linked to linux-2.4.20-30.9 (or whatever your kernel version is).

Arusegawa 05-18-2004 10:29 PM

Quote:

Originally posted by TheOther1
Did you install the kernel headers package? If so, you should have a dir under /usr/src named something like linux-2.4.20-30.9 and a link like linux-2.4 that is linked to linux-2.4.20-30.9 (or whatever your kernel version is).
I did a ls -a in the /usr/src/ directory, and all that comes up is RPM/

I looked in the Software Oackage Installation application, but couldnt find it. I might not be searching for the right thing, or I might be looking in the wrong place.

Any input would be greatly appreciated. I am willing to reinstall if theres a place where I can specify to include the source. I am using Mandrake 9.2

Thanks!

vectordrake 05-19-2004 01:15 AM

The easiest way that I have found to find kernel-related stuf is to fire up rpmdrake and use the search field at the top. I enter the word "kernel" in there and it shows me all the results. Find the source that matches the kernel you have and install it. It should be on the cds, although I have heard that 9.2 did not include the source on the cd. If not, you'll have to get it from the net. (Sorry I can't be of more help but I went from 9.1 to 10.0)

Arusegawa 05-19-2004 01:37 AM

Solved!
 
After much googling, I found out that, as the previous poster said, Mandrake did not include the source (kernel headers) with the 9.2 release. It was a simple matter of going the 9.2 site, finding the file I needed, and doing all the fun command line stuff as prescribed.
Thanks to all who helped!

vectordrake 05-19-2004 07:19 AM

BTW, all the other versions have it on the disks, so if you upgrade to 10, you won't run into this. Happy compiling!


All times are GMT -5. The time now is 11:25 PM.