make menuconfig 无法启动处理方法
问题:
lzz@lzz-virtual-machine:~/linux-2.6.32.2$ make menuconfig
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] 错误 1
make: *** [menuconfig] 错误 2
解决:
lzz@lzz-virtual-machine:~$ sudo apt-get install libncurses5-dev
menubox.c:(.text+0xe4c): undefined reference to `scrollok'
menubox.c:(.text+0x1002): undefined reference to `delwin'
menubox.c:(.text+0x100a): undefined reference to `delwin'
menubox.c:(.text+0x10a4): undefined reference to `wbkgdset'
menubox.c:(.text+0x10ab): undefined reference to `acs_map'
menubox.c:(.text+0x10b2): undefined reference to `waddch'
scripts/kconfig/lxdialog/menubox.o: In function `do_scroll':
menubox.c:(.text+0x55): undefined reference to `wrefresh'
scripts/kconfig/lxdialog/menubox.o: In function `print_arrows':
menubox.c:(.text+0x1a4): undefined reference to `wrefresh'
scripts/kconfig/lxdialog/menubox.o: In function `do_print_item':
menubox.c:(.text+0x3a9): undefined reference to `wrefresh'
scripts/kconfig/lxdialog/menubox.o: In function `print_buttons':
menubox.c:(.text+0x4b1): undefined reference to `wrefresh'
collect2: ld 返回 1
make[1]: *** [scripts/kconfig/mconf] 错误 1
make: *** [menuconfig] 错误 2
root@msm:/home/yuanwei/code/7x27a-2045/kernel# apt-get install libncurses5-dev
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
将会安装下列额外的软件包:
libtinfo-dev
建议安装的软件包:
ncurses-doc
下列软件包将被【卸载】:
libncurses5-dev:i386
下列【新】软件包将被安装:
libncurses5-dev libtinfo-dev
升级了 0 个软件包,新安装了 2 个软件包,要卸载 1 个软件包,有 0 个软件包未被升级。
需要下载 325 kB 的软件包。
解压缩后会消耗掉 574 kB 的额外空间。
您希望继续执行吗?[Y/n]y
获取:1 http://mirrors.163.com/ubuntu/ precise/main libtinfo-dev amd64 5.9-4 [103 kB]
获取:2 http://mirrors.163.com/ubuntu/ precise/main libncurses5-dev amd64 5.9-4 [222 kB]
下载 325 kB,耗时 1秒 (232 kB/s)
(正在读取数据库 ... 系统当前共安装有 181375 个文件和目录。)
正在卸载 libncurses5-dev:i386 ...
Selecting previously unselected package libtinfo-dev.
(正在读取数据库 ... 系统当前共安装有 181337 个文件和目录。)
正在解压缩 libtinfo-dev (从 .../libtinfo-dev_5.9-4_amd64.deb) ...
Selecting previously unselected package libncurses5-dev.
正在解压缩 libncurses5-dev (从 .../libncurses5-dev_5.9-4_amd64.deb) ...
正在设置 libtinfo-dev (5.9-4) ...
正在设置 libncurses5-dev (5.9-4) ...
root@msm:/home/yuanwei/code/7x27a-2045/kernel# make menuconfig
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
#
# using defaults found in /boot/config-3.2.0-23-generic
#
/boot/config-3.2.0-23-generic:4120:warning: symbol value 'm' invalid for FB_VESA
Your configuration changes were NOT saved.
root@msm:/home/yuanwei/code/7x27a-2045/kernel#