【Linux】ubuntu 16.04版本上,降低make版本为3.81版本
最近编译服务器崩了,导致又重新搭建编译服务器。以往用的是ubuntu 12.04版本,重新安装后使用的是ubuntu 16.04版本,导致很多都不对了。具体什么情况我们来看下一。安装make命令sudo apt-get install make编译报错环境:全志H5芯片但是编译Linux内核是报错如下:Cleaning kernel ...drivers/v...
·
最近编译服务器崩了,导致又重新搭建编译服务器。以往用的是ubuntu 12.04版本,重新安装后使用的是ubuntu 16.04版本,导致很多都不对了。具体什么情况我们来看下一。
安装make命令
sudo apt-get install make
编译报错
环境:全志H5芯片
但是编译Linux内核是报错如下:
Cleaning kernel ...
drivers/video/sunxi/disp2/disp/de//Makefile:18: *** Too many open files. Stop.
scripts/Makefile.clean:94: recipe for target 'drivers/video/sunxi/disp2/disp' failed
make[3]: *** [drivers/video/sunxi/disp2/disp] Error 2
scripts/Makefile.clean:94: recipe for target 'drivers/video/sunxi' failed
make[2]: *** [drivers/video/sunxi] Error 2
scripts/Makefile.clean:94: recipe for target 'drivers/video' failed
make[1]: *** [drivers/video] Error 2
Makefile:1038: recipe for target '_clean_drivers' failed
make: *** [_clean_drivers] Error 2
Building kernel
/home/hudson/.hudson/jobs/AllWinnerH5/workspace/AllWinnerH5.Android5.1/lichee/linux-3.10/output/lib/modules/3.10.65
Copy rootfs.cpio.gz for arm64
HOSTCC scripts/basic/fixdep
/bin/sh: 1: gcc: not found
scripts/Makefile.host:118: recipe for target 'scripts/basic/fixdep' failed
make[2]: *** [scripts/basic/fixdep] Error 127
/home/hudson/.hudson/jobs/AllWinnerH5/workspace/AllWinnerH5.Android5.1/lichee/linux-3.10/Makefile:419: recipe for target 'scripts_basic' failed
make[1]: *** [scripts_basic] Error 2
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'. Stop.
解决方案
降低make命令版本
1、查看make版本命令
make -v
hudson@hudson121:~/.hudson/jobs/AllWinnerH5/workspace/AllWinnerH5.Android5.1/lichee$ make -v
GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
2、下载
地址:http://ftp.gnu.org/gnu/make/
命令:wget http://ftp.gnu.org/gnu/make/make-3.81.tar.gz
3、解压
命令: tar xf make-3.81.tar.gz
4、配置
./configure --prefix=/usr/local/make-3.81
5、编译
sh build.sh
6、替换
sudo cp make /usr/bin/make
结束语
再通过命令(make -v)查看你就会发现版本降到了3.81。这样就完成了make版本的降低。有什么不懂的,可以通过在下面留言。觉得对你有帮助,请留个小赞,谢谢!
更多推荐
已为社区贡献2条内容
所有评论(0)