Losing ld-elf.so.1 while make installworld, system shrotted

James Raftery james at kerna.ie
Fri Nov 28 09:14:25 PST 2003

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'.


More information about the freebsd-current mailing list