installing source files in Fedora 9
I need to compile a module for my network adapter, and the 'make' is looking for the kernel source.
I installed Fedora 9 from Fedora-9-x86_64-DVD.iso, and the source files are not there. The folder /usr/src/redhat contains five empty subfolders. I also have Fedora-9-source-DVD.iso, but I don't know what to do with it - it contains rpm's and not source code. Can someone please tell me how do I get the source files ? Thanks |
You should try installing the kernel-devel package. Although I am not sure of the package name. Try this:
Quote:
|
I can not use yum with online repositories - network not up.
I also tried to make a local repository with the source DVD I have - contains RPM's. - Could not do it, because I need the 'createrepo', which is normally installed from an online repository - Went back and re-installed binaries, this time checking any and all packages. The 'createrepo' command still unavailable. Sources not available either. Seems to me that not including the 'createrepo' command in the default installation is similar to cutting the branch one is sitting on .. how do you fix the network module when you can not access files you need for 'make'? The only solution I can think of right now is to install an extra network card, one that is already supported by the kernel. |
If you go into the Add/Remove Sw menu options, there should be an option to add a 'local' repo ie the DVD.
Edit: just checked, on my F8 it's Add/Remove ->Edit->Repos |
Quote:
Looks to me like Fedora 9 has the Add/Remove sw altered heavily, for reasons I can not figure. It is consistent with the absence of 'createrepo' command. I also remember reading that you have to install 'createrepo' from an additional repository - but can not remember if in general or only in Fedora 9. |
I am not ready to buy a network card just for this. Anybody has any suggestions on installing the kernel source?
|
If you haven't updated your kernel yet, just pop in the dvd while Fedora is running, locate the kernel-devel package on the dvd and double-click on it.
|
See billymayday's posts here: http://www.linuxquestions.org/questi...ro-dvd-652904/
|
All times are GMT -5. The time now is 12:59 AM. |