LINUX内核升级错误提示解决方法

 定制内核make menuconfig
出现错误1:configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details
是header和gcc没有安装的缘故,
rpm -ivh glibc-headers-2.5-12.i386.rpm
rpm -ivh gcc*即可

yum install libstdc++-devel.i386
出现错误2:
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or directory
In file included from scripts/kconfig/lxdialog/checklist.c:24:
----------
scripts/kconfig/lxdialog/checklist.c:220: error: 'FALSE' undeclared (first use in this error: 'KEY_RESIZE' undeclared (first use in this function)
make[1]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1
make: *** [menuconfig] Error 2
安装libncurses5-dev即可
即安装rpm -ivh ncurses-devel-5.5-24.20060715.i386.rpm
yum install ncurses-devel.i386
不出错后继续定制内核.可以正常进行内核配置了.OHOH
 

你可能感兴趣的:(linux,职场,休闲)