Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

$PATH updated but commands are not found #5

Open
rollschild opened this issue Apr 9, 2022 · 1 comment
Open

$PATH updated but commands are not found #5

rollschild opened this issue Apr 9, 2022 · 1 comment

Comments

@rollschild
Copy link

Hi,

I used your flake.nix in my project and nix build succeeded. However, I'm not sure what's the best way to execute those commands such as solana-install-init.

What I did was $ result/bin/solana-install-init stable and it succeeded. The output of this command asked me to update $PATH to include /home/username/.local/share/solana/install/active_release/bin.

I updated my $PATH but when I started to just call the commands like $ solana-install-init, it gave me command not found errors.

I checked that directory that I put into $PATH. There are a bunch of binaries under /home/username/.local/share/solana/install/active_release/bin but none of them are actually executable.

~/.local/share/solana/install/active_release/bin $ ls -l                                                                                                                                                                                
-rwxr-xr-x 1  cargo-build-bpf
-rwxr-xr-x 1  cargo-test-bpf
drwxr-xr-x 2 deps
drwxr-xr-x 5  perf-libs
-rwxr-xr-x 1  rbpf-cli
drwxr-xr-x 3 sdk
-rwxr-xr-x 1  solana
-rwxr-xr-x 1  solana-bench-tps
-rwxr-xr-x 1  solana-dos
-rwxr-xr-x 1 solana-faucet
-rwxr-xr-x 1  solana-genesis
-rwxr-xr-x 1  solana-gossip
-rwxr-xr-x 1  solana-install
-rwxr-xr-x 1 solana-install-init
-rwxr-xr-x 1  solana-keygen
-rwxr-xr-x 1  solana-ledger-tool
-rwxr-xr-x 1  solana-log-analyzer
-rwxr-xr-x 1  solana-net-shaper
-rwxr-xr-x 1  solana-stake-accounts
-rwxr-xr-x 1  solana-sys-tuner
-rwxr-xr-x 1  solana-test-validator
-rwxr-xr-x 1  solana-tokens
-rwxr-xr-x 1  solana-validator
-rwxr-xr-x 1  solana-watchtower
-rwxr-xr-x 1  spl-token

Do you have any idea on how to fix this? Thanks!

p.s. I also posted a question in discourse.

@cideM
Copy link
Owner

cideM commented Apr 11, 2022

👋🏻 sorry that this flake is so rough. I don't personally use Solana and created this more out of curiosity. There may be better options at this time.

Anyway, I looked into this very briefly and I think solana-install-init shouldn't even be an output of this flake. From the script:

This is just a little script that can be downloaded from the internet to
install solana-install. It just does platform detection, downloads the installer
and runs it.

Stuff like that almost never works on NixOS. Does this work for you?

$ nix build
$ ./result/bin/solana-install

?

EDIT: I removed solana-install-init from the flake now

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants