5

I am having an error compiling my solana program and here is the log -

> [email protected] build:program-rust
> cargo build-bpf --manifest-path=./src/program-rust/Cargo.toml --bpf-out-dir=dist/program

BPF SDK: /home/chandan/.local/share/solana/install/releases/1.10.8/solana-release/bin/sdk/bpf
cargo-build-bpf child: rustup toolchain list -v
cargo-build-bpf child: rustup toolchain link bpf /home/chandan/.local/share/solana/install/releases/1.10.8/solana-release/bin/sdk/bpf/dependencies/bpf-tools/rust
error: not a directory: '/home/chandan/.local/share/solana/install/releases/1.10.8/solana-release/bin/sdk/bpf/dependencies/bpf-tools/rust/lib'

Can anyone tell what is the issue?

1 Answer 1

6

Had the same issue once, I had to clear cache of solana to fix the issue, after which the solana cli downloaded required packages again.

for that I used this command in ubuntu 20.04 -

rm -rf ~/.cache/solana/*

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.