Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Aug 2009 13:56:19 -0500
From:      Chris Ruiz <yr.retarded@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   Re: [Fwd: How To Recover From Missing /lib/libc.so.7?]
Message-ID:  <58c737d70908071156l2f5f2deds526a996ef9f386b@mail.gmail.com>
In-Reply-To: <4A7C77B6.8000209@mykitchentable.net>
References:  <4A7C7220.2090309@mykitchentable.net> <4A7C72E0.8080303@acm.poly.edu> <4A7C77B6.8000209@mykitchentable.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 7, 2009 at 1:51 PM, Drew Tomlinson<drew@mykitchentable.net> wro=
te:
> Boris Kochergin wrote:
>> 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 an=
d
>>> kernel, and installed the kernel. However when I attempted to install
>>> world, I got this error:
>>>
>>> =3D=3D=3D> lib/libc (install)
>>> install -C -o root -g wheel -m 444 =A0 libc.a /usr/lib
>>> install -C -o root -g wheel -m 444 =A0 libc_p.a /usr/lib
>>> install -s -o root -g wheel -m 444 =A0 -fschg -S =A0libc.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.
>
> Thanks for the reply. =A0As I mentioned in my reply to Jakob Lach, I
> really have no business running -CURRENT but loaded BETA2 because the
> release is expected soon.
>
> So basically I have the rescue tools and the BETA2 cd. =A0Can I just moun=
t
> the BETA2 CD, search for libc.so.7, can copy it to /lib? =A0Will that giv=
e
> me enough to attempt grabbing updated sources and trying again. =A0Or
> should I just somehow install world from the BETA2 CD and move
> /boot/kernel.old back to /boot/kernel? =A0If so, how?

You must specify NO_FSCHG=3D when you installworld on an unupgraded ZFS
filesystem, otherwise you will lose libc.so.7!  I'll spare you the
details on why this happens.

Here's a quick fix:

#/rescue/cp /usr/obj/usr/src/lib/libc/libc.so.7 /lib

--=20
@chrisattack
-----------------------------------------
http://twitter.com/chrisattack
http://chrisattack.com



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