编译linux内核时,make出错是什么原因

2024-11-15 10:53:48
推荐回答(3个)
回答1:

正确的步骤是;
yum -y install make automake gcc g++ ncurses ncurses-dev ncurses-devel fakeroot wget bzip2 make patch ftp
cp /boot/config-2.6.18-92.el5 .config
关闭Selinux

vi /etc/sysconfig/selinux
SELINUX=disabled

打IMQ补丁:
$patch -p1 < ../拆迅linux-2.6.25-imq5.diff
$make menuconfig

驱动模块
IMQ (intermediate queueing device) support (IMQ)
Location:
-> Device Drivers
-> Networking support
-> Network device support (NETDEVICES)
-> IMQ (intermediate queueing device) support (IMQ)

2.2编译并安装新内核
make menuconfig

make
make modules
make modules_install
make install

mkinitrd /boot/initrd_2.6.30.img 2.6.30 根据内核版本和指定参数生成映像文亮御凳件
cp arch/x86/boot/bzImage /boot/vmlinuz-2.6.30
cp /usr/src/linux-2.6.30/敬旅System.map /boot/System.map-2.6.30

回答2:

你没安装gcc
要把gcc相关组件全部装上

回答3:

可能是你的源码有问题吧