On Wed, 7 Oct 2015 20:29:30 +0200 Roland Koebler <rk-l...@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).
pgpWQR62WAxFq.pgp
Description: OpenPGP digital signature
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev