solana command not found after ubuntu update 22.04 jammy

560 views Asked by At

No matter how many times I try installing solana-cli and adding the path with

  • PATH="/home/myUserName/.local/share/solana/install/active_release/bin:$PATH"

  • export PATH="/home/myUserName/.local/share/solana/install/active_release/bin:$PATH"

commands, terminal is not recognizing solana commands after I close the terminal, i.e path is not persisting... I tried reinstalling solana-cli but it's not helping...

I need to set path every time I whenever I need to use the cli.

is it a known issue? how to fix this behavior?

1

There are 1 answers

1
riengi On

You should have this path set in /home/yourUserName/.profile That way it will not be lost. But this is done by default by CLI installation so there might be also something else. Open new terminal and type echo $PATH, then you will see what your path really is.