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 <[email protected]>: > 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. _______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
