From owner-freebsd-questions Thu Mar 13 7:33: 9 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6A6537B401 for ; Thu, 13 Mar 2003 07:33:07 -0800 (PST) Received: from catflap.home.slightlystrange.org (pc1-cmbg1-4-cust43.cmbg.cable.ntl.com [62.253.133.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1DCD43FA3 for ; Thu, 13 Mar 2003 07:33:05 -0800 (PST) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 18tUhW-000Mxc-00 for freebsd-questions@freebsd.org; Thu, 13 Mar 2003 15:32:58 +0000 Date: Thu, 13 Mar 2003 15:32:58 +0000 From: Daniel Bye To: freebsd-questions@freebsd.org Subject: Re: make installworld problem (4.7 p2 -> p7) Message-ID: <20030313153258.GA87905@catflap.home.slightlystrange.org> Reply-To: dan@slightlystrange.org Mail-Followup-To: freebsd-questions@freebsd.org References: <20030313144758.GA142@main> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030313144758.GA142@main> User-Agent: Mutt/1.4i X-Scanner: exiscan *18tUhW-000Mxc-00*99hqAJuQuQY* (SlightlyStrange.org, Using NOD32 http://www.nod32.com) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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