make buildworld cd: can’t cd to /usr/src/tools/build/make_check Error and Solution

by on June 7, 2007 · 1 comment· LAST UPDATED June 7, 2009

in , ,

'm trying buildworld under FreeBSD operating system. But I'm getting an error which read as follows:

--------------------------------------------------------------
>>> Building an up-to-date make(1)
--------------------------------------------------------------
cd: can't cd to /usr/src/usr.bin/make
*** Error code 2

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

Stop in /usr/src.

How do I fix this problem?

You need upto date FreeBSD source tree. Type the following command to fetch FreeBSD src tree:
# cp /usr/share/examples/cvsup/standard-supfile /root/standard-supfile
# vi /root/standard-supfile

Set default host as follows:
*default host=cvsup4.us.FreeBSD.org
Save and close the file. Now get source code, enter:
# cvsup /root/standard-supfile
To build system use regular commands:
# make clean && make buildworld
# make buildkernel KERNCONF=kernelname
# make installkernel KERNCONF=kernelname

See how-to: Update The FreeBSD From Previous Releases Using Source Code (CVSUP method) for details about building world and install a new kernel under FreeBSD operating system.

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 1 comment… read it below or add one }

1 nic June 12, 2010 at 6:44 am

Thanks!

Reply

Leave a Comment

Tagged as: , , , , , , , , , ,

Previous Faq:

Next Faq: