make menuconfig 出現的錯誤訊息


最近常在新安裝的Debian機器中compile linux kernel, 每次都在make menuconfig 出現如下的錯誤訊息:

..前略
scripts/kconfig/mconf.o: In function `show_help':
mconf.c:(.text+0x744): undefined reference to `stdscr'
scripts/kconfig/mconf.o: In function `main':
mconf.c:(.text.startup+0x66): undefined reference to `initscr'
mconf.c:(.text.startup+0x6d): undefined reference to `stdscr'
scripts/kconfig/lxdialog/checklist.o: In function `print_arrows':
checklist.c:(.text+0x41): undefined reference to `wmove'
checklist.c:(.text+0x61): undefined reference to `acs_map'
..略

原因是機器沒裝ncurses library.
所以用下列指令裝一下就好了.

# apt-get install lib32ncurses5-dev
This entry was posted in Linux, 程式設計 and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *