I tried the get started rust tutorial on the solana doc but it just doesn't seem to work, it keeps giving me this error:

error: not a directory: '/home/quang/.local/share/solana/install/releases/stable-ec1115e8fc562545fa335b382fcca53f5e02bb84/solana-release/bin/sdk/sbf/dependencies/platform-tools/rust/bin'

enter image description here

Any help would be appreciated, thanks a lot!

2 Answers 2


Make sure Rust and Cargo (package manager for rust) is properly installed. From the screenshot, you seem to be in the right directory.

redo the installation process following this link Rust up

Pay attention to your specific OS. This should work.


I'm sorry to hear you're experiencing this issue! From my research, it appears that the Solana Command-Line Tools are not correctly installed, or the path is possibly corrupted, resulting in this error. Let's resolve this.

Here's a step-by-step guide you can follow:

  1. Check if the specified directory actually exists. You can do this using the ls command: [ls -l].

  2. Sometimes, a fresh install can help. Consider uninstalling the current Solana CLI and reinstalling it: [solana-install uninstall].

  3. You can reinstall Solana by executing this command in the terminal: [sh -c "$(curl -sSfL https://release.solana.com/v1.8/install)"].

  4. After the installation is complete, confirm it by typing: [solana --version].

  5. Ensure that the Solana CLI and its associated tools are in your system's PATH. After installing Solana CLI, typically you'd add its path to your .bashrc or .zshrc (or equivalent for your shell). Example: [echo 'export PATH="/home/quang/.local/share/solana/install/active_release/bin:$PATH"' >> ~/.bashrc]. Remember to source the file afterward: [source ~/.bashrc].

  6. Open the Solana Rust tutorial again and try to execute the same commands. The error should no longer show up.

Please note that Solana programs are written in Rust, so make sure you have a properly functioning Rust environment. Install Rust using rustup: [curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs/ | sh].

Happy coding. 🙂 (Run the codes inside the square braces [])

My references:

  • many thanks, that fixes the bug for me! Commented Oct 15, 2023 at 0:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.