3

I am trying to compile an anchor package and whenever I type anchor build or cargo build-bpf get this error -

**error: not a directory: '/Users/madhavgoyal/.local/share/solana/install/releases/1.10.31/solana-release/bin/sdk/bpf/dependencies/bpf-tools/rust/lib'**

I have reinstalled cargo and rust quite a few times still not able to figure out how to solve this

4
  • 2
    Can you let us know how you installed Solana?
    – sohrab
    Commented Jul 23, 2022 at 8:12
  • Used this command sh -c "$(curl -sSfL release.solana.com/v1.10.32/install)" and when i type solana --version get - solana-cli 1.10.31 (src:77a40cd8; feat:4192065167) Commented Jul 24, 2022 at 13:02
  • It seems strange that you tried to install version 1.10.32 and got 1.10.31... you may want to try deleting all of the solana directories and retrying
    – Jon C
    Commented Jul 25, 2022 at 20:03
  • oh I had installed it earlier but copy pasted the new command sorry Commented Jul 27, 2022 at 4:21

1 Answer 1

6

Try deleting your cache

rm -rf ~/.cache/solana/v1.10.32

or

rm -rf ~/.cache/solana/*
0

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.