LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   noob problem with getting kernel source (https://www.linuxquestions.org/questions/linux-general-1/noob-problem-with-getting-kernel-source-131383/)

ludwig W 01-04-2004 08:15 AM

noob problem with getting kernel source
 
Hi,
I've just installed Mandrake 9.2 and want to compile a new kernel.
First ,I've looked for the kernel source on my new linux machine and can't find it in /usr/src. Am I looking in the wrong place?

Then I thought it might be on the cd's, but I simply can't find it there either.

So, I decided to download a 2.6.0 version from Kernel.org and downloaded on my Windows PC and copied on to a cd then copied it onto my Linux PC.Each time I did this and tried to BUNZIP2 the new kernel source, I got the message that it was corrupted.Tried it several times, with BZ2 and GZ versions and also differnet cd's and the same thing happened.

Am I missing something obvious here?

samhob 01-04-2004 09:00 AM

Hello ,
Mandrake 9.2 , i dont know why doesnt have its kernel source
here it is:

ftp://ftp.surfnet.nl/vol/1/mandrake-...0.mdk.i586.rpm

but it dont recommend it to you.. I never accomplish a mandrake kernel source , it is very buggy i the make modules operation.

so it is better to get one from kernel.org

and for your bunzip-gz problem I could not help you.
since

tar -zxvf linux-* (.tar.gz)
or
tar -xvjf linux-* (.tar.bz2)

works fine for me

ludwig W 01-04-2004 09:05 AM

is there some kind of problem with burning files on a cd in windows and then getting Linux to read them?

All the files I've burned ,all the BZ2 files at least, have come back with the message:
'data integrity error when decompressing'
in Linux?

Also, where is the kernel source normally put in a Mandrake installation?

thebell 01-04-2004 01:03 PM

IIRC, Mandrake 9.0 had the kernel source RPMs on CD 3, which doesn't contain very much useful stuff. If you run rpmdrake, you should be able to find the kernel source packages. They ought to install into /usr/src/linux-[version].

h/w 01-04-2004 01:57 PM

normally, after you first install any distro, the src tree is not present. it only places the kernel image, and not the source. so you download the kernel sources from http://www.kernel.org. you could place the src tree either under /usr/src or anywhere else on your machine as long as you specify to your bootloader where it sits.

how are you reading your compressed files from the cdrom drive?

whansard 01-04-2004 02:17 PM

is there some kind of problem with burning files on a cd in windows and
then getting Linux to read them?
no. but apparently in your case, there is. maybe windows is saving it as
text instead of binary.


All times are GMT -5. The time now is 12:36 PM.