Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Nov 2003 17:14:31 +0000
From:      James Raftery <james@kerna.ie>
To:        freebsd-current@freebsd.org
Subject:   Re: Losing ld-elf.so.1 while make installworld, system shrotted
Message-ID:  <20031128171430.GF48024@bender.kerna.ie>
In-Reply-To: <3FC77CCD.8090809@snafu.de>
References:  <3FC77CCD.8090809@snafu.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 28, 2003 at 05:50:21PM +0100, Oliver Fischer wrote:
> install -o root -g wheel -m 444 test.1.gz  /usr/share/man/man1
> ELF interpreter /libexec/ld-elf.so.1 not found

Was /libexec a symlink to /usr/libexec by any chance? I upgraded a
system yesterday with /libexec as a symlink to /usr/libexec and the
outcome was exactly what you are seeing.

Reading through the Makefiles, the installworld procedure is

 1. Install /libexec/ld-elf.so.1
 2. Delete /usr/libexec/ld-elf.so.1
 3. Link /libexec/ld-elf.so.1 to /usr/libexec/ld-elf.so.1

If you perform those steps with /libexec <-> /usr/libexec symlinks, the
end result is no ld-elf.so.1 anywhere!

Use the fixit CD, remove the /libexec symlink and make a directory
/libexec. Then copy /usr/obj/usr/src/libexec/rtld-elf/ld-elf.so.1 into
/libexec (making sure its modes are 555). You should then be able to
reboot into single-user from the disk-based filesystems and redo
`make installworld'.


ATB,
james



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