LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-02-2003, 05:14 PM   #1
SLaCk_KiD
Member
 
Registered: Jan 2003
Location: Philly, PA
Distribution: Slackware 10.2
Posts: 97

Rep: Reputation: 15
Post recompiling kernel


alright i have found about 20 or so articles on how to compile a new kernel, with all the source code and what not...but i dled it and then went to set up my config file using 'make xconfig', and this is what I get...

Makefile:254: arch/i386/Makefile: No such file or directory
make: *** No rule to make target `arch/i386/Makefile'. Stop.

am i missing somethign here??? i have read through all of the how-to's that i can find and still have not been able to figure it out....since i am logged in as root i dont want to do something that might mess up my system. Any help is appreciated.

Geoff
 
Old 02-02-2003, 05:17 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well going by your extremely vague description of what you've done it seems make dep was missing.
 
Old 02-02-2003, 06:20 PM   #3
SLaCk_KiD
Member
 
Registered: Jan 2003
Location: Philly, PA
Distribution: Slackware 10.2
Posts: 97

Original Poster
Rep: Reputation: 15
See the thing is i didnt do anythign at all, i read the how-to's and the first step after decompressing the bz2 is to run 'make menuconfig', or 'make xconfig' I am going on what the text is telling me, this is my first time compiling the kernel, so i couldnt be more specific then telling you that i decompressed and then tried to configure the kernel options using 'make xconfig' and then i recieved that error. I dont have the faintest idea what the hell it means and I wass hoping that someone with a little experience could help guide me along on this one...
 
Old 02-02-2003, 06:41 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Download the source to /usr/src

Unpack it with:

tar -xvf your-kernel-version-filename.tar.gz

Which should create a new directory named on whatever kernel you downloaded. Then you should have a link already present named linux. Follow these steps.

rm -rf /usr/src/linux
ln -s /usr/src/your-new-kernel-dir /usr/src/linux
cd /usr/src/linux

And now do a:

make xconfig

And see if it starts the configuration, and if that doesn't work try make menuconfig.

From what your describing, you never indicated that you unpacked the tar.gz you downloaded.
 
Old 02-02-2003, 06:51 PM   #5
SLaCk_KiD
Member
 
Registered: Jan 2003
Location: Philly, PA
Distribution: Slackware 10.2
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks ill try that and let you know how it turns out
Geoff
 
Old 02-02-2003, 08:25 PM   #6
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
I noticed today that kernel.org is now offering the source as bzip2 compressed files instead of the older gzip compressed files. Slack_kid indicated he downloaded a bz2 file that would be using the new compression. Most docs would be in reference to the prior gzipped tarballs.

The example here is for 2.4.20 kernel. When bzip2 then use

tar -xjvf linux-2.4.20.tar.bz2

Note the use of the lowercase J in the options to decompress the bz2 file and untar in one operation. If you want you can bunzip2 the file first and then use just the straight tar command to extract. But the uncompressed tarball is 152 MBytes in size.

bunzip2 linux-2.4.20.tar.bz2
tar -xvf linux-2.4.20.tar

Also, if you use the second method your original downloaded bz2 file will be deleted by using the bunzip2 command. Use the -k option if you wish to retain the original file.

Follow through with tricky's commands.

Since this is also your first time, you might consider starting with your current config file. You can locate it on the install CD under the kernels directory with the stock kernel you are actually running. Usually kernels/bare.i. Copy the config file to the top of the source tree (/usr/src/linux) as .config and note the period in front of the filename. Since it looks like you might be changing kernel versions, you should also run "make oldconfig" and just answer the default (press Enter) on the new options.

Hope it helps.
 
Old 02-03-2003, 01:14 AM   #7
SLaCk_KiD
Member
 
Registered: Jan 2003
Location: Philly, PA
Distribution: Slackware 10.2
Posts: 97

Original Poster
Rep: Reputation: 15
hey everyone, thanks alot for the help with the compile, i got xconfig to work...i am going to keep going and see if i can figure it out
 
Old 03-03-2003, 06:14 PM   #8
JamesMLV
LQ Newbie
 
Registered: Mar 2003
Location: WI - USA
Distribution: Redhat / Mandrake
Posts: 1

Rep: Reputation: 0
Lightbulb Same Problem

I had the same problem. My download was somehow messed up, you might want to make sure you downloaded the entire thing. i was missing a few directors, including the one you listed.
 
Old 03-19-2003, 02:19 PM   #9
Jagzseven
LQ Newbie
 
Registered: Mar 2003
Posts: 10

Rep: Reputation: 0
Unable to find Ncurses?

Hi,

For anyone still having problems compiling the Debian kernel, here is what I did after reading loads of articles and posts. My problem was that whenever I ran make menuconfig, I got an error saying "Unable to find the Ncurses libraries. You must have Ncurses installed in order to use make menuconfig'.

This if course was despite having ncurses..

Here's what I did:

1. apt-get install kernel-headers-2.4.18 (if it tells you there is no package, try chanigng your apt source - it does exist!)

2. apt-get install kernel-source-2.4.18

(If you can't apt-get these then you can download them at ftp.kernel.org or any of its regional mirrors).

3. If you apt-get them then great, otherwise, remember to download the files to /usr/src/ and then uncompress them.

4. apt-get gcc

5. apt-get install libncurses5-dev

OK now you should have everything installed that you need. Now for a bit of preparation:

6. Go to /usr/src and check if a linux directory exists (this would exist as a link to your previous kernel source if a compile had been run before in which case you shouldn't be reading this but developing excellent applications and tools for us newbies to use such as one that lets you magically configure your kernel just by typing "new kernel now please" [!]..)

7. If it exists, remove it by: rm -rf /usr/src/linux

8. Create a new link to your new kernel source, in my case I
typed: ln -s /usr/src/kernel-source-2.4.18 /usr/src/linux

9. cd into your linux directory: cd /usr/src/linux

10. now just type: make menuconfig

it worked for me.. hope it helps someone!

J@gz7
 
  


Reply



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
recompiling kernel DaveyB Linux - Newbie 3 08-10-2004 09:45 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
What does recompiling the kernel do? direwolf20 Linux - Newbie 2 10-08-2003 12:06 AM
What use does recompiling the kernel have? twinkers Debian 8 10-06-2003 10:46 AM
recompiling kernel slacknewbie Linux - General 3 05-08-2002 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:09 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
Open Source Consulting | Domain Registration