当前位置: 技术问答>linux和unix
ubuntu编译内核出现错误,求解
来源: 互联网 发布时间:2016-11-15
本文导语: ubuntu版本是9.04,安装在虚拟机中准备升级内核到2.6.38 执行了如下命令开始编译:sudo make-kpkg -initrd --initrd --append-to-version=gould0.76 kernel_image kernel-headers 开始一切正常,但是最后显示错误: make[1]:正在离开目录 `/...
ubuntu版本是9.04,安装在虚拟机中准备升级内核到2.6.38
执行了如下命令开始编译:sudo make-kpkg -initrd --initrd --append-to-version=gould0.76 kernel_image kernel-headers
开始一切正常,但是最后显示错误:
make[1]:正在离开目录 `/usr/src/linux-2.6.38'
test ! -e scripts/package/builddeb || mv -f scripts/package/builddeb scripts/package/builddeb.kpkg-dist
test ! -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)
COLUMNS=150 dpkg -l 'gcc*' perl dpkg 'libc6*' binutils make dpkg-dev |
awk '$1 ~ /[hi]i/ { printf("%s-%sn", $2, $3) }'> debian/buildinfo
uname -a >> debian/buildinfo
echo using the compiler: >> debian/buildinfo
grep LINUX_COMPILER include/linux/compile.h |
sed -e 's/.*LINUX_COMPILER "//' -e 's/"$//' >> debian/buildinfo
grep: include/linux/compile.h: 没有那个文件或目录
echo applied kernel patches: >> debian/buildinfo
echo done > debian/stamp/build/kernel
/usr/bin/make -f ./debian/rules debian/stamp/binary/pre-linux-image-2.6.38gould0.76
make[1]: 正在进入目录 `/usr/src/linux-2.6.38'
====== making target debian/stamp/install/linux-image-2.6.38gould0.76 [new prereqs: ]======
This is kernel package version 11.015.
echo "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 2
The UTS Release version in include/linux/version.h
""
does not match current version:
"2.6.38gould0.76"
Please correct this.
make[1]: *** [debian/stamp/install/linux-image-2.6.38gould0.76] 错误 2
make[1]:正在离开目录 `/usr/src/linux-2.6.38'
make: *** [kernel_image] 错误 2
不知道是什么问题,希望高手能帮忙解答
执行了如下命令开始编译:sudo make-kpkg -initrd --initrd --append-to-version=gould0.76 kernel_image kernel-headers
开始一切正常,但是最后显示错误:
make[1]:正在离开目录 `/usr/src/linux-2.6.38'
test ! -e scripts/package/builddeb || mv -f scripts/package/builddeb scripts/package/builddeb.kpkg-dist
test ! -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)
COLUMNS=150 dpkg -l 'gcc*' perl dpkg 'libc6*' binutils make dpkg-dev |
awk '$1 ~ /[hi]i/ { printf("%s-%sn", $2, $3) }'> debian/buildinfo
uname -a >> debian/buildinfo
echo using the compiler: >> debian/buildinfo
grep LINUX_COMPILER include/linux/compile.h |
sed -e 's/.*LINUX_COMPILER "//' -e 's/"$//' >> debian/buildinfo
grep: include/linux/compile.h: 没有那个文件或目录
echo applied kernel patches: >> debian/buildinfo
echo done > debian/stamp/build/kernel
/usr/bin/make -f ./debian/rules debian/stamp/binary/pre-linux-image-2.6.38gould0.76
make[1]: 正在进入目录 `/usr/src/linux-2.6.38'
====== making target debian/stamp/install/linux-image-2.6.38gould0.76 [new prereqs: ]======
This is kernel package version 11.015.
echo "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 2
The UTS Release version in include/linux/version.h
""
does not match current version:
"2.6.38gould0.76"
Please correct this.
make[1]: *** [debian/stamp/install/linux-image-2.6.38gould0.76] 错误 2
make[1]:正在离开目录 `/usr/src/linux-2.6.38'
make: *** [kernel_image] 错误 2
不知道是什么问题,希望高手能帮忙解答
|
The UTS Release version in include/linux/version.h
""
does not match current version:
"2.6.38gould0.76"
Please correct this.
===================
你手动把2.6.38gould0.76写到include/linux/version.h这里试试
看来都在打传说中的鸡血内核
""
does not match current version:
"2.6.38gould0.76"
Please correct this.
===================
你手动把2.6.38gould0.76写到include/linux/version.h这里试试
看来都在打传说中的鸡血内核
|
grep: include/linux/compile.h: 没有那个文件或目录
echo "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 2
-------------
还是
make menuconfig
make bzImage
make modules
...
一步一步来吧
echo "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 2
-------------
还是
make menuconfig
make bzImage
make modules
...
一步一步来吧
|
没有的话自己创建一个就行了