- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Compile Kernel
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 11:12 AM
04-09-2002 11:12 AM
Compile Kernel
I have the following error:
#cd /usr/src
#make menuconfig
make: *** Not exist rule to construct the objective `menuconfig'. Stop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 01:31 PM
04-09-2002 01:31 PM
Re: Compile Kernel
Ex. "/usr/src/linux-2.4.2"
That would be my first guess.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 01:31 PM
04-09-2002 01:31 PM
Re: Compile Kernel
I think it is just menuconfig or
make xconfig will bring up x windows and some configuration parameters.
Then
make dep
make clean
make bzImage
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 01:49 PM
04-09-2002 01:49 PM
Re: Compile Kernel
[root@]# cd /usr/src/linux-2.4.7-10/
[root@ linux-2.4.7-10]# make menuconfig
make: *** No rule to construc the objetcive `include/linux/autoconf.h', necessary
for `include/linux/version.h'. Stop.
[root@linux-2.4.7-10]#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 05:39 PM
04-09-2002 05:39 PM
Re: Compile Kernel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 08:39 PM
04-09-2002 08:39 PM
Re: Compile Kernel
kernel-2.4.7-10 rpm pkg doesn't include
/usr/src/linux/include/linux/autoconf.h
your choice is
use 2.4.9 rpm pkg which include autoconf.h
or
ln -s /usr/include/linux/autoconf.h /usr/src/linux/include/linux/autoconf.h
regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 11:50 AM
04-16-2002 11:50 AM
Re: Compile Kernel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2002 04:06 PM
04-16-2002 04:06 PM
Re: Compile Kernel
The problem is that kernel build utilities expect a directory name "/usr/src/linux", not "/usr/src/linux-2.4.7-10"
Try the following :
cd /usr/src
ln -s linux-2.4.7-10 linux
cd linux
make menuconfig
Good luck.
Kodjo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2002 09:52 AM
05-02-2002 09:52 AM
Re: Compile Kernel
Let's start from the beginning, shall we:
# cd /usr/src/linux-2.4
This should be a link to your current source directory (i.e. linux-2.4.7-10)
# make mrproper
This will cleanup any "old kernel compile) files.
# ls -la .config
This is checking to see if you have a .config file which is required for make menuconfig, make xconfig to work on. If you do not have a .config file you have a couple of options:
# make oldconfig
This will create a .config file from the currently running kernel and is a good choice.
Alternatives you can change directory into /usr/src/linux-2.4/configs and use one of the configuration files listed here.
# cd /usr/src/linux-2.4/configs
# ls
kernel-2.4.9-athlon.config kernel-2.4.9-i586-smp.config
kernel-2.4.9-athlon-smp.config kernel-2.4.9-i686.config
kernel-2.4.9-i386-BOOT.config kernel-2.4.9-i686-debug.config
kernel-2.4.9-i386.config kernel-2.4.9-i686-enterprise.config
kernel-2.4.9-i386-smp.config kernel-2.4.9-i686-smp.config
kernel-2.4.9-i586.config
To use the kernel-2.4.9-i686-smp.config simply copy it into the higher directory:
# cp kernel-2.4.9-i686-smp.config /usr/src/linux-2.4/.config
Now run your make menuconfig command
# cd /usr/src/linux-2.4
# make menuconfig
# make dep
# make modules
# make modules_install
# make install
Edit /etc/lilo.conf to tell your system about the new kernel and then verify the lilo.conf file with:
# lilo -v
If you need ram image use:
# mkinitrd
# reboot
Just out of curiosity, are you upgrading kernels or trying to change a paramter in the kernel?
Thanks for participating in the forums,
Martin
Chaos reigns within. Reflect, repent, and reboot. Order shall return.