solana-labs / example-helloworld

Hello world on Solana
MIT License
902 stars 871 forks source link

Failed to install bpf-tools: File exists (os error 17) #517

Closed yuwiggin closed 2 years ago

yuwiggin commented 2 years ago

I manually installed solana as following methods:

Download Prebuilt Binaries

and [ manually install cargo bpf-tool](cargo build-bpf fails · Issue #21053 · solana-labs/solana · GitHub).

I tried the [example-helloworld](GitHub - solana-labs/example-helloworld: Hello world on Solana) but failed.

npm run build:program-rust

helloworld@0.0.1 build:program-rust cargo build-bpf --manifest-path=./src/program-rust/Cargo.toml --bpf-out-dir=dist/program BPF SDK: /home/wiggin/.local/share/solana/install/releases/1.10.31/solana-release/bin/sdk/bpf Failed to install bpf-tools: File exists (os error 17)

Here are env:

Ubuntu20.04 (WSL2 on windows 11) rustup 1.25.1 (bb60b1e89 2022-07-12) solana-cli 1.10.31 (src:77a40cd8; feat:4192065167) bpf-tools: 1.27

Can anyone know what happened and how to solve it?