16

I am new to solana and rust, recently i have installed thier example-helloworld from this repo- https://github.com/solana-labs/example-helloworld . Whenever i have tried to build the rust program using npm scripts or going to the rust program directory to manually run cargo build-bpf, it says - no such subcommand: +bpf.terminal error image

i have also tried the command which cargo-build-bpf,it have no error. however i have also tried to manually build using cargo build ,it throws a error.

abhishek
  • 189
  • 1
  • 3

1 Answers1

10

Your version of Rust may be out of date, can you try updating to Rust 1.53? You should be able to get it using:

rustup toolchain add 1.53

You might then need to reinstall the Solana tool suite, following the instructions at: https://docs.solana.com/cli/install-solana-cli-tools#use-solanas-install-tool

Jon C
  • 7,019
  • 10
  • 17