执行 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] 错误 1
make: *** [menuconfig] 错误2
可以看出,是因为找不到 ncurses 导致的错误。那么尝试安装 ncurses
$sudo apt-get install ncurses
信息:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
读取状态信息... 完成
现在没有可用的软件包 ncurses , 但是它被其他的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到
E: 软件包 ncurses 还没有可供安装的候选者
根据http://www.linuxquestions.org/qu ... nfig-archum-311781/
再试:
$sudo apt-get install libncurses*
信息:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
读取状态信息... 完成
注意,根据正则表达式“libncurses*” 选中了 libncurses4
注意,根据正则表达式“libncurses*” 选中了 libncurses5
注意,根据正则表达式“libncurses*” 选中了 libncurses-ruby1.8
注意,根据正则表达式“libncurses*” 选中了 libncurses-ryby1.9
注意,根据正则表达式“libncurses*” 选中了 libncurses-dev
注意,根据正则表达式“libncurses*” 选中了 libncursesw5-dbg
注意,根据正则表达式“libncurses*” 选中了 libncursesw5-dev
注意,根据正则表达式“libncurses*” 选中了 libncurses-ruby
注意,根据正则表达式“libncurses*” 选中了 libncurses5-dbg
注意,根据正则表达式“libncurses*” 选中了 libncurses5-dev
注意,根据正则表达式“libncurses*” 选中了 libncursesw5
已经不需要下列自动安装的软件包:
libchewing3-data ttf-wqy-zenhei scim-chewing thunderbird-locale-zh-tw language-support-translations-zh
libchewing3 xfonts-wqy openoffice.org-l10n-zh-cn openoffice.org-l10n-zh-tw openoffice.org-help-zh-cn
openoffice.org-help-zh-tw language-support-fonts-zh
使用‘apt-get autoremove’ 来删除它们。
将会安装下列额外的软件包:
libncurses-ruby libncurses-ruby1.8 libncurses-ruby1.9 libncurses4 libncurses5-dbg libncurses5-dev
libncursesw5-dbg libncursesw5-dev libruby1.8 libruby1.9 ruby1.8 ruby1.9
建议安装的软件包:
rdoc1.8 ri1.8 ruby1.8-examples rdoc1.9 ri1.9 ruby1.9-examples
下列【新】软件包将被安装:
libncurses-ruby libncurses-ruby1.8 libncurses-ruby1.9 libncurses4 libncurses5-dbg libncurses5-dev
libncursesw5-dbg libncursesw5-dev libruby1.8 libruby1.9 ruby1.8 ruby1.9
共升级了0个软件包,新安装了12个软件包,要卸载0个软件包,有60个软件未被升级。
需要下载8868kB的软件包。
操作完成后,会消耗掉33.9MB的额外磁盘空间。
您希望继续执行吗?[Y/n]
选择Y继续执行,完成后,执行sudo make menuconfig,OK!!
不过make xconfig还是不行
$ sudo make xconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
CHECK qt
*
* Unable to find the QT3 installation. Please make sure that
* the QT3 development package is correctly installed and
* either install pkg-config or set the QTDIR environment
* variable to the correct location.
*
HOSTCC scripts/kconfig/conf.o
sed < scripts/kconfig/lkc_proto.h > scripts/kconfig/lkc_defs.h 's/P(/([^,]*/),.*/#define /1 (/*/1_p)/'
HOSTCC scripts/kconfig/kconfig_load.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
make[1]: *** 没有规则可以创建“scripts/kconfig/qconf.o” 需要的目标“scripts/kconfig/.tmp_qtcheck” 。 停止。
make: ***[xconfig] 错误2
根据http://forum.ubuntu.org.cn/viewtopic.php?t=110461&highlight=
知道在正常步骤下,除了安装ncurses外,还要安装build-essential 和 kernel-package
好吧,先开始查询一下,从kernel-package开始吧,毕竟带着kernel,估计比较重要
查询kernel-package信息
$ apt-cache show kernel-package
Package: kernel-package
Priority: optional
Section: misc
Installed-Size: 2192
Maintainer: Ubuntu Core Developers
Original-Maintainer: Manoj Srivastava
Architecture: all
Version: 11.001
Depends: perl, dpkg (>= 1.4), dpkg-dev (>= 1.4.0.9), gcc | c-compiler, make (>= 3.80-10), po-debconf, gettext, file
Recommends: libc6-dev | libc-dev, bzip2
Suggests: linux-source | kernel-source, libdb3-dev, libncurses-dev, docbook-utils
Filename: pool/main/k/kernel-package/kernel-package_11.001_all.deb
Size: 510452
MD5sum: fd820c2e3970fc8d300aef4a2b9e15ca
SHA1: 34924f84fe4cd604869bf4717d4c0230b3117291
SHA256: 3ff71a3e2e69d5073310e8e83fc982baefec983af7139ed7cc7a4ce6cf42c38a
Description: A utility for building Linux kernel related Debian packages.
This package provides the capability to create a debian kernel-image
package by just running make-kpkg kernel_image in a kernel source
directory tree. It can also package the relevant kernel headers into
a kernel-headers package. In general, this package is very useful if
you need to create a custom kernel, if, for example, the default
kernel does not support some of your hardware, or you wish a leaner,
meaner kernel. It also scripts the steps that need be taken to
compile the kernel, which is quite convenient (forgetting a crucial
step once was the initial motivation for this package). Please look at
/usr/share/doc/kernel-package/Rationale.gz for a full list of advantages
of this package.
Bugs: mailtubuntu-users@lists.ubuntu.com
Origin: Ubuntu
Package: kernel-package
Priority: optional
Section: misc
Installed-Size: 1316
Maintainer: Manoj Srivastava
Architecture: all
Version: 9.001ubuntu15
Depends: perl, dpkg (>= 1.4), dpkg-dev (>= 1.4.0.9), gcc | c-compiler, make
Recommends: libc6-dev | libc-dev, bzip2
Suggests: linux-source, libdb3-dev, libncurses-dev, docbook-utils
Filename: pool/main/k/kernel-package/kernel-package_9.001ubuntu15_all.deb
Size: 362410
MD5sum: dc01de7ad43dcb769eadfd4f018c2a78
Description: A utility for building Linux kernel related Debian packages.
This package provides the capability to create a debian kernel-image
package by just running make-kpkg kernel_image in a kernel source
directory tree. It can also package the relevant kernel headers into
a kernel-headers package. In general, this package is very useful if
you need to create a custom kernel, if, for example, the default
kernel does not support some of your hardware, or you wish a leaner,
meaner kernel. It also scripts the steps that need be taken to
compile the kernel, which is quite convenient (forgetting a crucial
step once was the initial motivation for this package). Please look at
/usr/share/doc/kernel-package/Rationale.gz for a full list of advantages
of this package.
.
If you are running on an intel x86 platform, and you wish to compile a
custom kernel (why else are you considering this package?), then you may
need the package bin86 as well. (This is not required on other platforms).
Bugs: mailtubuntu-users@lists.ubuntu.com
Origin: Ubuntu
makemenuconfig问题
最新推荐文章于 2022-05-13 16:16:39 发布