Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rust solana build error: no such subcommand: +bpf [closed]

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.

like image 471
abhishek Avatar asked Jul 31 '21 06:07

abhishek


1 Answers

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

like image 167
Jon C Avatar answered Nov 14 '22 08:11

Jon C