Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 2003 15:32:58 +0000
From:      Daniel Bye <dan@slightlystrange.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: make installworld problem (4.7 p2 -> p7)
Message-ID:  <20030313153258.GA87905@catflap.home.slightlystrange.org>
In-Reply-To: <20030313144758.GA142@main>
References:  <20030313144758.GA142@main>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 13, 2003 at 03:47:58PM +0100, Socketd wrote:
> Hi again
> 
> Nobody has answered in the last week, so I will try again.
> I have installed 4.7 on a i386.
> I have upgraded to p2 and now want to upgrade p7.
> All my drives are mounted locally (on the same computer) and I try to 
> upgrade the system as I always have with:
> 	make buildworld
> 	make buildkernel KERNCONF=SOCKETD
> 	make installkernel KERNCONF=SOCKETD
> 	reboot
> 	make installworld
> I reboot the system and it is running the p7 kernel. I have mounted 
> all my drives with rw (not using noexec or nosuid) and I have lots of 
> space.
> When I cd to /usr/src and type "make installworld" I get:
> mkdir -p /tmp/install.54110
> for prog in [ awk cat chflags chmod chown date echo egrep find grep  
> ln make makewhatis mtree mv perl pwd_mkdb rm sed sh sysctl  test true 
> uname wc zic; do  cp `which $prog` /tmp/install.54110;  done
> usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
>        cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN 
> directory
> *** Error code 64
> 
> Stop in /usr/src.
> *** Error code 1
> 
> I have tried deleting /usr/src/* and /usr/obj/*, getting all the 
> source again and buildworld perfectly.
> My securelevel is -1.
> 
> Please cc to me as I am not on the list.

This came up a couple of weeks ago.  In that case, the file '[' was missing,
and you need to make a link.  The first iteration through the for loop will
fail, because `which $prog` returns nothing - causing the whole thing to
choke.  This is why you see the cp usage message - effectively, it is trying
to run "cp /tmp/install.54110", which does not have the right number of
arguments. 

# ln /bin/test /bin/[

should do the trick.  Rerun the installworld and it should work.  Provided
that was the problem...  ;-)

HTH

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC
                                                                     _
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030313153258.GA87905>