LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help with compiling new kernel (https://www.linuxquestions.org/questions/linux-newbie-8/help-with-compiling-new-kernel-584561/)

nkd 09-13-2007 09:40 PM

help with compiling new kernel
 
Hi every1,

I have RHEL 4 installed which is based on kernel 2.6.9-15
I have recently downloaded the kernel : linux-2.6.20.6.tar.bz2 from
the kernel.org site.
I get the error : Cannot open file.....File doesnot exist.
when it is untarring. I am using the command
tar -jxvf linux-2.6.20.6.tar.bz2
Do not know what's going wrong?
Can any1 help me out..... It uncompresses for some time and the Documentation etc directories are all created ... only the problem starts when it comes to untarring the drivers directory !

This was the case even with 2.6.22.6 kernel in gz format.

Plz help me out
thanks
nishith

Nylex 09-14-2007 12:02 AM

Are you in the same directory as the file?

Scroggs79 09-14-2007 12:31 AM

Your tar command looks fine.

If you are prefixed to the directory where the file was downloaded and the file was successfully downloaded what you are doing should work so I'm guessing that the download is ending prematurely or the ftp site is busy and you are getting an error response save as the output instead of the actual kernel source.

Look at the size of the file using: ls -l
and see if the file size is in the expected size range (47MB)

You can also try this: file <name of file>
which should yield this - bzip2 compressed data

I have had similar problems while downloading from kernel.org.

This is what I do:
right click on the link and select "copy link location"
open a bash shell and execute the following command:
wget -c <middle click - which should paste the url>
so the command looks like:
wget -c http://kernel.org/pub/linux/kernel/v...6.22.6.tar.bz2

This command should show you the download progress while it's downloading the file.
If the command dies just press up arrow (which should recall the last command) and execute the same command again.
The -c tells wget to continue so you won't have to start over.

Good luck.

nkd 09-14-2007 03:26 AM

Thanks for the response...
No I am not in the same directory.
The pwd : /usr/src
I use the command tar -jxvf /absolute/path/to/the/directory/of/the/zipfile/lin......tar.bz2
That shouldnot be the problem......!
Anyway I shall give wget -c a try today....
thanks again
nishith

nkd 09-21-2007 05:19 AM

Thanks
 
Hi Scroggs79,
Thanks a ton.
You are right it was a problem of incomplete downloads in windoz.
I know have been able to download the kernel source tarball and also have compiled it and have a shining new kernel.
Thanks once again
nishith


All times are GMT -5. The time now is 08:24 AM.