Linux编译内核执行make menuconfig或者make xconfig出错

来源:互联网 发布:阿里云解析的别名在哪 编辑:程序博客网 时间:2024/05/08 15:07

执行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.

 *** 

原因:缺少ncurses相关的库。

可行解决方法:执行apt-get install libncurses5-dev 


执行make xconfig后出错:

* Unable to find the QT4 tool qmake. Trying to use QT3
*
* Unable to find any QT installation. Please make sure that
* the QT4 or QT3 development package is correctly installed and
* either qmake can be found or install pkg-config or set
* the QTDIR environment variable to the correct location.
*
原因:没有QT环境。

可行解决方法:执行apt-get install qt4-dev-tools

特别说明:我的环境中执行上面两个命令后,就可以正常执行make menuconfig和make xconfig。若你的环境还是不行,那就需要找其他的解决方案。