[Nix-dev] Building portable linux binaries on NixOS
Bryan Gardiner
bog at khumba.net
Wed Oct 7 20:44:38 CEST 2015
On Wed, 7 Oct 2015 20:29:30 +0200
Roland Koebler <rk-list at simple-is-better.org> wrote:
> > 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
>
> your shell does not find "./go-app".
> What does ls -l say?
Most likely Kamil is in the right directory, and this is just a known
quirk: bash tries to exec the program, the exec fails because the
binary's interpreter is set incorrectly, and bash incorrectly
interprets the failure as the program not existing. See
https://nixos.org/patchelf.html (although, there is an open bug about
patchelf not working on Go binaries, see
https://github.com/NixOS/patchelf/issues/66).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20151007/7b034be6/attachment.bin
More information about the nix-dev
mailing list