From owner-freebsd-current@FreeBSD.ORG Fri Aug 7 18:31:32 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61954106566B for ; Fri, 7 Aug 2009 18:31:32 +0000 (UTC) (envelope-from spawk@acm.poly.edu) Received: from acm.poly.edu (acm.poly.edu [128.238.9.200]) by mx1.freebsd.org (Postfix) with ESMTP id 00D4B8FC15 for ; Fri, 7 Aug 2009 18:31:31 +0000 (UTC) Received: (qmail 54015 invoked from network); 7 Aug 2009 18:31:31 -0000 Received: from unknown (HELO ?10.0.0.135?) (spawk@128.238.64.31) by acm.poly.edu with AES256-SHA encrypted SMTP; 7 Aug 2009 18:31:31 -0000 Message-ID: <4A7C72E0.8080303@acm.poly.edu> Date: Fri, 07 Aug 2009 14:30:56 -0400 From: Boris Kochergin User-Agent: Thunderbird 2.0.0.19 (X11/20090108) MIME-Version: 1.0 To: Drew Tomlinson References: <4A7C7220.2090309@mykitchentable.net> In-Reply-To: <4A7C7220.2090309@mykitchentable.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: [Fwd: How To Recover From Missing /lib/libc.so.7?] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2009 18:31:32 -0000 Drew Tomlinson wrote: > I was running FreeBSD8.0-BETA2 amd64 and attempted to upgrade with > current sources as of yesterday (8/6/09). I successfully built world and > kernel, and installed the kernel. However when I attempted to install > world, I got this error: > > ===> lib/libc (install) > install -C -o root -g wheel -m 444 libc.a /usr/lib > install -C -o root -g wheel -m 444 libc_p.a /usr/lib > install -s -o root -g wheel -m 444 -fschg -S libc.so.7 /lib > install: /lib/libc.so.7: chflags: Invalid argument > *** Error code 71 > > Stop in /usr/src/lib/libc. > *** Error code 1 > > > And now I can't do anything as every command fails with: > > /libexec/ld-elf.so.1: Shared object "libc.so.7" not found > > How can I recover from this error? > > Thanks, > > Drew > > There are statically-linked versions of essential utilities in /rescue/. For example, you can use /rescue/mount_nfs to mount an NFS server with the files you need, then /rescue/cp to copy them to your system. -Boris