简体   繁体   English

无法进行菜单配置

[英]Can't make menuconfig

I use Debian 7.4 Wheezy.我使用 Debian 7.4 Wheezy。 I trying to upgrade my kernel, but when I type "make menuconfig" it says:我试图升级我的内核,但是当我输入“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

I trying to install "libncurses5-dev", but I get the error:我尝试安装“libncurses5-dev”,但出现错误:

E: Unable to locate package libncurses5-dev

PS聚苯乙烯

I downloaded and installed the packages manually and now everything is okay!我手动下载并安装了软件包,现在一切正常! Thanks a lot!!非常感谢!!

You should have run (as root)你应该运行(以root身份)

aptitude update
aptitude search libncurses

that would suggest you the right package name.这会建议您正确的包名称。

Then try然后试试

aptitude install libncurses-dev

and

aptitude install kernel-package
aptitude build-dep linux-image linux-image-amd64 

At last, use make-kpkg --initrd binary to compile your kernel.最后,使用make-kpkg --initrd binary来编译你的内核。 (it will produce *.deb files in the parent directory). (它将在父目录中生成*.deb文件)。 You want to configure /etc/kernel-pkg.conf and perhaps /etc/kernel-img.conf你想配置/etc/kernel-pkg.conf/etc/kernel-img.conf

I had the same problem.我有同样的问题。 In my case installation of package libncursesw5-dev solved the issue.在我的情况下,安装包libncursesw5-dev解决了这个问题。

make menuconfig needs ncurses libraries try following command to install ncurses library make menuconfig 需要 ncurses 库尝试以下命令来安装 ncurses 库

sudo apt-get install libncurses5
sudo apt-get install libncurses5-dev
make menuconfig

worked for me after i installed all the libaries, and added myself sudo permission, i was also using this to cross_compile stuff在我安装了所有库之后为我工作,并添加了自己的 sudo 权限,我也用它来交叉编译东西

# Allow members of group sudo to execute any command # 允许组 sudo 的成员执行任何命令

%sudo ALL=(ALL:ALL) NOPASSWD:ALL %sudo ALL=(ALL:ALL) NOPASSWD:ALL

%b37399 ALL=(ALL:ALL) NOPASSWD:ALL %b37399 ALL=(ALL:ALL) NOPASSWD:ALL

For Fedora(Red Hat);对于 Fedora(红帽);

$ make menuconfig
#error encountered :
make[1]: *** [scripts/kconfig/Makefile:210: scripts/kconfig/mconf-cfg] Error 1
make: *** [Makefile:588: menuconfig] Error 2
#resolution : 
$ sudo yum install libncurses-dev

Thanks谢谢

Depending on the project the menuconfig could be made with the kconfiglib library:根据项目的不同,可以使用kconfiglib库创建 menuconfig:

https://pypi.org/project/kconfiglib/ https://pypi.org/project/kconfiglib/

For these projects it's required to:对于这些项目,需要:

  • Install Python (I tested it with Python2.7, but I think newer Pythons are just fine)安装 Python(我用 Python2.7 测试过,但我认为较新的 Python 很好)
  • Install pip (if it's not done with Python)安装 pip(如果没有用 Python 完成)
  • And then the pip install kconfiglib然后pip install kconfiglib

And for some projects, this will fix the error instead of the libcurses package.对于某些项目,这将修复错误而不是 libcurses 包。

Just as example here is one kconfiglib based project which prints the same error, but will not be fixed with libcurse:就像这里的示例是一个基于kconfiglib的项目,它打印相同的错误,但不会使用 libcurse 修复:

https://github.com/polarfire-soc/hart-software-services https://github.com/polarfire-soc/hart-software-services

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM