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

Łukasz Nowak email at lnowak.com
Tue Aug 31 06:27:18 EDT 2010


Hello,

2010/8/31 Thomas Bächler <thomas at archlinux.org>:
> 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.

Ach, thank you. I will update the page. You are right:

$ ls /lib64/ld-linux-x86-64.so.2
/lib64/ld-linux-x86-64.so.2
$ ls /lib/ld-linux-x86-64.so.2
ls: cannot access /lib/ld-linux-x86-64.so.2: No such file or directory

Regards,
Luke

PS. In meantime I just compiled pacman :)

-- 
Łukasz Nowak IT Specialist email at lnowak.com http://lnowak.com/
Skype: Shufla jid: shufla at jabster.pl gg: 1157726
``Use the Source, Luke...''


More information about the arch-general mailing list