[arch-general] cannot run pacman in different operating system

Thomas Bächler thomas at archlinux.org
Tue Aug 31 06:09:58 EDT 2010

Am 31.08.2010 11:49, schrieb Łukasz Nowak:
> So now it is time to try to run pacman:
> $ pacman --help
> -bash: /home/luke/archtest/usr/bin/pacman: No such file or directory

Arch binaries assume the dynamic linker to be in
/lib/ld-linux-x86-64.so.2, while most (all?) other distributions assume
it to be in /lib64/ld-linux-x86-64.so.2:

$ readelf -a $(which pacman) | grep interpreter
      [Requesting program interpreter: /lib/ld-linux-x86-64.so.2]
$ readelf -a /some/mandriva/binary | grep interpreter
      [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]

The "No such file or directory" is very misleading here, as the file
that it is trying to open is the program interpreter, not pacman itself.

A symlink should suffice:
# ln -s /lib64/ld-linux-x86-64.so.2 /lib/

This problem does not exist on i686: The dynamic linker is
/lib/ld-linux.so.2 here, on Arch or on any distribution out there.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20100831/15a56490/attachment.bin>

More information about the arch-general mailing list