How to install a Linux Kernel Source in Fedora Core 6?

How to install a Linux Kernel Source in Fedora Core 6?

Post by jjlindul » Thu, 02 Nov 2006 23:50:38


Hello, I'm new to Linux and need some help. I've just installed Fedora
Core 6 and was installing a device driver software when I encountered
this error message:
checking for linux kernel source... not found
configure: error: please install the kernel source or specify alternate

location.

The kernel version I'm running is 2.6.18-1.278.fc6xen. Where can I
download the kernel source? I'm assuming that it will be a .rpm file,
is that correct? The computer is not connected to the internet so I
can't run the Add Software tools, when I try to it closes after it says

it can't find an repos. Do you think the kernel source is on the CD's?
I wish I could configure the Add Software tool to install the needed
packages from the CD. I believe I need to install the multi-processor
kernel.


If anyone could give me some help, I'd greatly appreciate it.


thanks,
joe
 
 
 

How to install a Linux Kernel Source in Fedora Core 6?

Post by Michael He » Fri, 03 Nov 2006 01:13:37

In comp.os.linux.setup XXXX@XXXXX.COM < XXXX@XXXXX.COM >:

The package is name "kernel-source", "kernel-devel" or something
like that, I'd start with 'yum search kernel' from the next
xterm/kvt and install via 'yum' what is needed.

Good luck

[..]

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo XXXX@XXXXX.COM | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 265: The mouse escaped.

 
 
 

How to install a Linux Kernel Source in Fedora Core 6?

Post by Johny be G » Fri, 03 Nov 2006 01:40:24


su -c 'yum install rpmdevtools yum-utils'
yumdownloader -e core-source -e updates-source --source kernel

rpm -Uvh kernel-<version>.src.rpm

kernel will be located in /usr/src/redhat/... tree
 
 
 

How to install a Linux Kernel Source in Fedora Core 6?

Post by Mark » Fri, 03 Nov 2006 02:32:42


What he needs is kernel-devel for the headers, you don't want or need to
mess with the full kernel source rpm, just do

yum install kernel-devel

Mark
 
 
 

How to install a Linux Kernel Source in Fedora Core 6?

Post by jjlindul » Fri, 03 Nov 2006 03:40:06

Mark,

Hi, I don't have internet access for that computer. I've looked at the
mirror sites, but I'm new and unable to find the right site that has
the kernel-devel .rmp. Could you give me a hand?

thanks,
joe
 
 
 

How to install a Linux Kernel Source in Fedora Core 6?

Post by Michael He » Fri, 03 Nov 2006 04:02:08

In comp.os.linux.setup XXXX@XXXXX.COM < XXXX@XXXXX.COM >:



[ Looking for package(s) needed to enable compiling kernel modules ]





Indeed this is a problem I mention since ages, people don't use
Linux and have a bunch of problems using it.

The easiest should be to look in your yum configuration* and see
where it is getting base and updates from and check this out from
your browser if you can't be bothered to use google for what it
was intended to.

* 'rpm -qlc yum' should show the files in question

Good luck

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo XXXX@XXXXX.COM | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 453: Rhythmic variations in the voltage reaching
the power supply.
 
 
 

How to install a Linux Kernel Source in Fedora Core 6?

Post by jjlindul » Fri, 03 Nov 2006 04:30:19

Michael,

Hi, is it possible to get the kernel-devel and other dependencies from
the installation CD's? I've looked at the mirror sites and I can't find
the kernel-devel<kernel version>.rpm. I've also looked at the Updates
page and still no luck. Can you point me in the right direction. I'll
also do some googling as you suggested.

thanks,
joe
 
 
 

How to install a Linux Kernel Source in Fedora Core 6?

Post by ibuprofi » Fri, 03 Nov 2006 05:10:13

On 1 Nov 2006, in the Usenet newsgroup comp.os.linux.setup, in article
< XXXX@XXXXX.COM >,



Look on the first CD, and you will find a file named RELEASE-NOTES.


8.6. Preparing for Kernel Development

Fedora Core 6 does not include the kernel-source package provided by
older versions since only the kernel-devel package is required now to
build external modules. Configured sources are available, as described
in this kernel flavors section.


It's amazing what you can find if you look at the supplied documentation.

Old guy
 
 
 

How to install a Linux Kernel Source in Fedora Core 6?

Post by Michael He » Fri, 03 Nov 2006 05:29:57

In comp.os.linux.setup XXXX@XXXXX.COM < XXXX@XXXXX.COM >:





[ Can't find kernel-devel-2.6.18-1.2798.fc6.*.rpm ]



It seems not, taking into account Moe Trin took the care and
actually read the RELEASE-NOTES.


ftp://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/os/Fedora/RPMS/

(some mirror should be faster)

I might just get to old answering questions, I don't know but it
is more pain lately then anything else.

Good luck

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo XXXX@XXXXX.COM | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 151: Some one needed the powerstrip, so they
pulled the switch plug.
 
 
 

How to install a Linux Kernel Source in Fedora Core 6?

Post by jjlindul » Fri, 03 Nov 2006 05:36:45

Thanks everyone for taking time to help me out. I really appreciate it
and admit I need to do a better job of looking at all available
resources.
 
 
 

How to install a Linux Kernel Source in Fedora Core 6?

Post by jjlindul » Sat, 04 Nov 2006 07:36:21

Michael,

Hi, can I ask you where I could get information on how to install the
kernel devel package. I copied the .rpm to my home directory and used
rpm -i to install the devel package. I was expecting another kernel
module to appear on the boot screen but I didn't see any.

Thanks,
joe
 
 
 

How to install a Linux Kernel Source in Fedora Core 6?

Post by Michael He » Sat, 04 Nov 2006 16:03:20

In comp.os.linux.setup XXXX@XXXXX.COM < XXXX@XXXXX.COM >:





[ top posting fixed ]

[..]


Why would you?

From the package description:

Summary : Development package for building kernel modules to
match the kernel.

Description : This package provides kernel headers and makefiles
sufficient to build modules against the kernel package.

It contains what you asked for, needed kernel headers/makefiles
to enable to build kernel modules, which is what you asked for.

Unsure why you would expect something on the boot screen?

Try 'rpm -qil <package-name>' to get information and a list of
files, then go ahead and try building your modules, it should
pick up the needed headers. You installed it with 'rpm -i ...'
already.

Good luck

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo XXXX@XXXXX.COM | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 402: Secretary sent chain letter to all 5000
employees.