[Nix-dev] problem with binary-only game

Mathijs Kwik mathijs at bluescreen303.nl
Sun Jan 29 10:09:48 CET 2012


Thanks, it works now.
I indeed had to use patchelf to set the dynamic linker, and put every
.so it needed in rpath.



2012/1/28 Lluís Batlle i Rossell <viric at viric.name>:
> On Sat, Jan 28, 2012 at 10:46:15PM +0100, Mathijs Kwik wrote:
>> $ ./AndYetItMoves
>> ./AndYetItMoves: line 21: ./lib/AndYetItMoves: No such file or directory
>
> It's the dynamic loader set in the file that can't be found.
>
> readelf -d file
> That will report you, among others, the dynamic path
> hardcoded in the elf
>
> You need to run manualy patchelf on it to change its dynamic loader. And then to
> set a rpath for the libs. Check the derivations of other pieces like this, like
> skype for example.
>
> The automatic run of patchelf in the stdenv generic script is to shorten the
> rpath, not to do anything useful for your case.
>
> Regards,
> Lluís.


More information about the nix-dev mailing list