Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix os error: bash: /path/to/out/near-sandbox: cannot execute: required file not found #78

Open
dj8yfo opened this issue Dec 15, 2023 · 3 comments
Labels
question Further information is requested

Comments

@dj8yfo
Copy link

dj8yfo commented Dec 15, 2023

The downloaded binary can be remedied with

# nix-repl> "${stdenv.cc.bintools.dynamicLinker}"
patchelf --set-interpreter "/nix/store/qn3ggz5sf3hkjs2c797xf7nan3amdxmp-glibc-2.38-27/lib/ld-linux-x86-64.so.2"  /path/to/out/near-sandbox
# nix-repl> "${stdenv.cc.cc.lib}"
patchelf --set-rpath /nix/store/myw67gkgayf3s2mniij7zwd79lxy8v0k-gcc-12.3.0-lib/lib /path/to/out/near-sandbox

more info on https://nixos.wiki/wiki/Packaging/Binaries.

@dj8yfo
Copy link
Author

dj8yfo commented Dec 15, 2023

i'd be glad if this issue were labeled with a label info or smth else and left hanging here for anyone stumbling across a similar problem

@frol
Copy link
Collaborator

frol commented Jan 27, 2024

@dj8yfo Is there anything that can be done on near-sandbox / nearcore side?

@frol frol added the question Further information is requested label Jan 27, 2024
@dj8yfo
Copy link
Author

dj8yfo commented Oct 7, 2024

@frol nix-ld should be a good enogh solution for resolving this issue automatically (without need to intefere much) on NixOs side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants