make cant cd to /usr/src/tools/build/make_check

时间:2019-11-20 08:54:03  来源:igfitidea点击:

在FreeBSD操作系统下尝试build时,报错:

>>> Building an up-to-date make(1) 

cd: cant cd to /usr/src/usr.bin/make  *** Error code 2

Stop in /usr/src.  *** Error code 1

Stop in /usr/src.

解决方案

需要最新的FreeBSD源代码树

执行以下命令:

# cp /usr/share/examples/cvsup/standard-supfile /root/standard-supfile
# vi /root/standard-supfile

设置默认主机如下:

*default host=cvsup4.us.FreeBSD.org

现在获取源代码:

# cvsup /root/standard-supfile

构建系统:

# make clean && make buildworld
# make buildkernel KERNCONF=kernelname
# make installkernel KERNCONF=kernelname