LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing source files in Fedora 9 (https://www.linuxquestions.org/questions/linux-newbie-8/installing-source-files-in-fedora-9-a-668610/)

ceilingFan 09-09-2008 04:46 AM

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

w3bd3vil 09-09-2008 05:27 AM

You should try installing the kernel-devel package. Although I am not sure of the package name. Try this:
Quote:

yum install kernel-devel

ceilingFan 09-10-2008 08:08 PM

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.

chrism01 09-10-2008 08:13 PM

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

ceilingFan 09-10-2008 09:38 PM

Quote:

Originally Posted by chrism01 (Post 3276490)
Edit: just checked, on my F8 it's Add/Remove ->Edit->Repos

The option is not present in Fedora 9. It goes like this: Add/Remove sw opens a window with three menus: <System> <Filters> <Help>. Further, the <System> pull-down shows an option about repositories. However, that only open a new window with a list of sources, but no options to alter it.

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.

ceilingFan 09-11-2008 06:29 PM

I am not ready to buy a network card just for this. Anybody has any suggestions on installing the kernel source?

jay73 09-11-2008 06:35 PM

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.

chrism01 09-11-2008 07:19 PM

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.