[Nix-dev] Building portable linux binaries on NixOS
Kamil Chmielewski
kamil.chm at gmail.com
Wed Oct 7 19:23:49 CEST 2015
ldd go-app
linux-vdso.so.1 (0x00007ffdeab70000)
libpthread.so.0 =>
/nix/store/npfsi1d9ka8zwnxzn3sr08hbwvpapyk7-glibc-2.21/lib/libpthread.so.0
(0x00007f9ae89e0000)
libc.so.6 =>
/nix/store/npfsi1d9ka8zwnxzn3sr08hbwvpapyk7-glibc-2.21/lib/libc.so.6
(0x00007f9ae8640000)
/nix/store/npfsi1d9ka8zwnxzn3sr08hbwvpapyk7-glibc-2.21/lib/ld-linux-x86-64.so.2
(0x00007f9ae8bfd000)
2015-10-07 19:21 GMT+02:00 zimbatm <zimbatm at zimbatm.com>:
> What is the output of `ldd go-app` ?
>
> Go binaries should be static unless you're using gccgo.
>
> On Wed, 7 Oct 2015 18:18 Kamil Chmielewski <kamil.chm at gmail.com> wrote:
>
>> Hi,
>>
>> I'm trying to build Linux binaries from Go source code, but when I move
>> it to Ubuntu and I try to run it there all I get is:
>> -bash: ./go-app: No such file or directory
>>
>> Is there any simple way to patch Nix binary and make it runnable under
>> other distros?
>>
>> Cheers,
>> Kamil
>> _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20151007/0e062d22/attachment.html
More information about the nix-dev
mailing list