[Nix-dev] problem with binary-only game

Lluís Batlle i Rossell viric at viric.name
Sat Jan 28 23:12:52 CET 2012


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