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

by Vivek Gite on June 7, 2007 · 1 comment

'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.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 1 comment… read it below or add one }

1 nic June 12, 2010

Thanks!

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 13 + 7 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: