Ubuntu建立交叉编译工具链问题(1)make menuconfig' requires the ncurses libraries.

时间:2021-03-23 12:14:17

在进行建立Linux内核头文件时,执行命令:

make ARCH=arm CROSS_COMPILE=arm-linux- menuconfig

报错:  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 ***
 *** Install ncurses (ncurses-devel) and try again.

 ***

提示:

缺少ncurses libraries,

搜索解决办法:

sudo apt-get install libncurses5-dev

再次运行一下make ARCH=arm CROSS_COMPILE=arm-linux- menuconfig命令:

报错:

Your display is too small to run Menuconfig!
It must be at least 19 lines by 80 columns.
/home/tang/armtools/kernel/linux-2.6.39/scripts/kconfig/Makefile:21: recipe for target 'menuconfig' failed
make[1]: *** [menuconfig] Error 1
Makefile:476: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

提示:

Your display is too small to run Menuconfig!

解决办法:

放大屏幕,OK,完成!


Linux内核代码:linux-2.6.39.tar.gz

下载链接:https://mirrors.edge.kernel.org/pub/linux/kernel/v2.6/

系统版本:Ubuntu18.04