1

I'm having a nightmare just setting up Solana tool chain.

I'm a n00b and haven't done any development on Solana yet.

I'm on Ubuntu 24.04

I'm getting this error that I'm unable to fix when running 'anchor test'

error: no such subcommand: `build-bpf`

I can't find anything online that helps, and I've spent hours looking - and this is the latest in a huge pile of issues.

thx

6
  • can you share more about your system config
    – Pratik.js
    Aug 23, 2022 at 19:23
  • Sure - what would you like to know?
    – niico
    Aug 23, 2022 at 19:42
  • did you try reinstalling it? Setting Solana up on Ubuntu and mac is pretty straight forward. usually this error happens when you system is not able to detect installed solana. can you do solana config get in the terminal as well
    – Pratik.js
    Aug 24, 2022 at 7:19
  • straightforward lol, really? I've had to nuke and pave 8 Ubuntu installs so far... Finally got it working now but it required a colossal amount of messing around
    – niico
    Aug 25, 2022 at 8:55
  • It could detect installed solana
    – niico
    Aug 25, 2022 at 8:56

1 Answer 1

0

I rebooted Ubuntu and it fixed it.

Doh

3
  • That's not an answer - it doesn't show how you fixed the problem.
    – mikemaccana
    Jan 31, 2023 at 11:48
  • It is literally how I fixed the problem. WHY it worked no idea, but it is what fixed it.
    – niico
    Feb 6, 2023 at 23:44
  • There are many issues that could be worked around by restarting the entire OS, buying a new computer, moving house, becoming a different person, etc. An answer to the issue would no such subcommand: build-bpf`` would typically involve handling how Rust looks for subcommands and resolving that rather than any of the above.
    – mikemaccana
    Feb 7, 2023 at 9:15

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.