LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2008, 05:46 AM   #1
ceilingFan
LQ Newbie
 
Registered: Jun 2007
Location: Canada
Distribution: Fedora
Posts: 16

Rep: Reputation: 0
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
 
Old 09-09-2008, 06:27 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
You should try installing the kernel-devel package. Although I am not sure of the package name. Try this:
Quote:
yum install kernel-devel
 
Old 09-10-2008, 09:08 PM   #3
ceilingFan
LQ Newbie
 
Registered: Jun 2007
Location: Canada
Distribution: Fedora
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 09-10-2008, 09:13 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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

Last edited by chrism01; 09-10-2008 at 09:14 PM.
 
Old 09-10-2008, 10:38 PM   #5
ceilingFan
LQ Newbie
 
Registered: Jun 2007
Location: Canada
Distribution: Fedora
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
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.
 
Old 09-11-2008, 07:29 PM   #6
ceilingFan
LQ Newbie
 
Registered: Jun 2007
Location: Canada
Distribution: Fedora
Posts: 16

Original Poster
Rep: Reputation: 0
I am not ready to buy a network card just for this. Anybody has any suggestions on installing the kernel source?
 
Old 09-11-2008, 07:35 PM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
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.
 
Old 09-11-2008, 08:19 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
See billymayday's posts here: http://www.linuxquestions.org/questi...ro-dvd-652904/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problems Installing Kernel Source rpm in Fedora Core 5 thiagarn Linux - Newbie 17 02-23-2008 12:08 AM
problem installing source files tar.gz griever33127 Slackware - Installation 8 10-14-2005 12:13 PM
Installing Source Files dsnuggs Linux - Software 3 02-12-2005 01:56 PM
installing fedora 3 kernel source, for ndiswrapper Jakeao Linux - Laptop and Netbook 5 01-13-2005 06:12 PM
Installing Fedora through source? ducky Fedora - Installation 0 07-20-2004 01:58 AM


All times are GMT -5. The time now is 08:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration