i got error at 28th step
regarding cargo build-sbf
can anyone help
root@1a3c8895b466:~/solana-curriculum/learn-how-to-set-up-solana-by-building-a-hello-world-smart-contract/src/program-rust# cargo build-sbf --sbf-out-dir=…/…/dist/program
error: no such command:
View all installed commands with `cargo --list`
I have moved your reply into its own topic.
What version of
solana do you have installed?
Firstly, I want to express my gratitude for the swift response, Sky. I truly appreciate it.
I’m currently using Solana version 1.14.7:
solana-cli 1.14.7 (src:030eb5f2; feat:1443040149)
I encountered a few issues recently:
- I had completed steps 1 to 27 without any problems. However, when I proceeded to step 28 the next day, it seems a new container was created, leading to environment and Solana installation issues.
- Even after reinstalling Solana today, I face an ongoing problem. Solana commands are recognized in the terminal where I performed the installation. However, in new terminals, Solana is not recognized. Although I updated the PATH after each installation, the issue persists in new terminals.
- Interestingly, after re-running the installation command in the new terminals, Solana is recognized. However, I need assistance in resolving this recurring problem.
despite these challenges(small issues), the
cargo build-sbf command is currently running. Additionally, it is currently downloading some dependencies.
still facing issue
constant_time_eq v0.3.0 cannot be built because it requires rustc 1.66.0 or newer, while the currently active rustc version is 1.62.0-dev
From here on, I suggest downloading the latest version of the Solana CLI:
sh -c "$(curl -sSfL https://release.solana.com/v1.17.4/install)"
You can also use this, if you already have Solana on your PATH:
That will resolve your latest error.