如何安装 ncurses 头文件?

use*_*332 69 dependencies ncurses

我试图配置内核,但出现以下错误。有人可以告诉我我该怎么做吗?

root@nitr-desktop:/usr/src/linux# 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] Error 1
make: *** [menuconfig] Error 2
Run Code Online (Sandbox Code Playgroud)

小智 108

打开终端并使用以下命令安装 libncurses-dev:

sudo apt-get install libncurses-dev
Run Code Online (Sandbox Code Playgroud)

  • `libncurses-dev` 对我有用。 (3认同)

小智 23

以上问题现已解决。我所做的就是:

sudo apt-get update
sudo apt-get install ncurses-dev
Run Code Online (Sandbox Code Playgroud)


Mat*_*ski 14

在 Ubuntu 17.04 上测试

你应该安装libncurses5-dev libncursesw5-dev

apt install libncurses5-dev libncursesw5-dev
Run Code Online (Sandbox Code Playgroud)

参考资料:https : //www.cyberciti.biz/faq/linux-install-ncurses-library-headers-on-debian-ubuntu-centos-fedora/