编译内核出现的错误

编译内核出息的错误

root@jxj:/home/share/IPC/hi3516cv300/sdk/3516c/linux-3.18.y# make menuconfig

HOSTCC scripts/kconfig/mconf.o
In file included from scripts/kconfig/mconf.c:23:0:
scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: 没有那个文件或目录
#include CURSES_LOC
^
compilation terminated.
scripts/Makefile.host:124: recipe for target 'scripts/kconfig/mconf.o' failed
make[1]: *** [scripts/kconfig/mconf.o] Error 1
Makefile:546: recipe for target 'menuconfig' failed

make: *** [menuconfig] Error 2



解决方法:apt-get install libncurses5-dev

阅读更多

ubuntu编译内核出现错误,求解

03-21

ubuntu版本是9.04,安装在虚拟机中准备升级内核到2.6.38rn执行了如下命令开始编译:sudo make-kpkg -initrd --initrd --append-to-version=gould0.76 kernel_image kernel-headersrn开始一切正常,但是最后显示错误:rnrnmake[1]:正在离开目录 `/usr/src/linux-2.6.38'rntest ! -e scripts/package/builddeb || mv -f scripts/package/builddeb scripts/package/builddeb.kpkg-distrntest ! -e scripts/package/Makefile || test -f scripts/package/Makefile.kpkg-dist || (mv -f scripts/package/Makefile scripts/package/Makefile.kpkg-dist && (echo "# Dummy file "; echo "help:") > scripts/package/Makefile)rnCOLUMNS=150 dpkg -l 'gcc*' perl dpkg 'libc6*' binutils make dpkg-dev |\rn awk '$1 ~ /[hi]i/ printf("%s-%s\n", $2, $3) '> debian/buildinfornuname -a >> debian/buildinfornecho using the compiler: >> debian/buildinforngrep LINUX_COMPILER include/linux/compile.h | \rn sed -e 's/.*LINUX_COMPILER "//' -e 's/"$//' >> debian/buildinforngrep: include/linux/compile.h: 没有那个文件或目录rnecho applied kernel patches: >> debian/buildinfornecho done > debian/stamp/build/kernelrn/usr/bin/make -f ./debian/rules debian/stamp/binary/pre-linux-image-2.6.38gould0.76rnmake[1]: 正在进入目录 `/usr/src/linux-2.6.38'rn====== making target debian/stamp/install/linux-image-2.6.38gould0.76 [new prereqs: ]======rnThis is kernel package version 11.015.rnecho "The UTS Release version in include/linux/version.h"; echo " \"\" "; echo "does not match current version:"; echo " \"2.6.38gould0.76\" "; echo "Please correct this."; exit 2rnThe UTS Release version in include/linux/version.hrn "" rndoes not match current version:rn "2.6.38gould0.76" rnPlease correct this.rnmake[1]: *** [debian/stamp/install/linux-image-2.6.38gould0.76] 错误 2rnmake[1]:正在离开目录 `/usr/src/linux-2.6.38'rnmake: *** [kernel_image] 错误 2rnrn不知道是什么问题,希望高手能帮忙解答

没有更多推荐了,返回首页