[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nix-dev
Subject:    [Nix-dev] problem with binary-only game
From:       mathijs () bluescreen303 ! nl (Mathijs Kwik)
Date:       2012-01-29 9:09:48
Message-ID: CAKvOHKDMVXx-0pe3dSHY6H1SeKfOMTY-FvAwF6bc8XhoJweBow () mail ! gmail ! com
[Download RAW message or body]

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.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic