Solana Curriculum - Project 1 Lesson 28

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: build-sbf

    View all installed commands with `cargo --list`

Hello there,

I have moved your reply into its own topic.

What version of rustc and solana do you have installed?

1 Like

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:

  1. 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.
  2. 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.
  3. 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.

1 Like

still facing issue
after downloading

error: package 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:

solana-install update

That will resolve your latest error.

1 Like

A post was split to a new topic: Solana Curriculum - Error in Terminal

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.