Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR cargo_build_sbf Failed to install platform-tools #3462

Closed
xiaoyu1998 opened this issue Jan 1, 2025 · 5 comments
Closed

ERROR cargo_build_sbf Failed to install platform-tools #3462

xiaoyu1998 opened this issue Jan 1, 2025 · 5 comments
Labels
installation error Issues related to installation errors

Comments

@xiaoyu1998
Copy link

xiaoyu1998 commented Jan 1, 2025

I have running anchor build, i got
ERROR cargo_build_sbf] Failed to install platform-tools: HTTP status client error (404 Not Found) for url (https://github.com/anza-xyz/platform-tools/releases/download/v1.42/platform-tools-osx-x86_64.tar.bz2
pleasse help change to v1.43

@xiaoyu1998
Copy link
Author

cargo build-sbf --force-tools-install --tools-version v1.43
after download v1.43, it still running into download v1.42

@docongminh
Copy link

let's try with solana version 1.18.21
@xiaoyu1998

@xiaoyu1998
Copy link
Author

@docongminh thanks, you are genius

@xiaoyu1998
Copy link
Author

xiaoyu1998 commented Jan 2, 2025

sh -c "$(curl -sSfL https://release.anza.xyz/v1.18.22/install)"
v1.18.22 will download v1.41

@acheroncrypto acheroncrypto added the installation error Issues related to installation errors label Jan 19, 2025
@acheroncrypto
Copy link
Collaborator

platform-tools v1.42 doesn't seem to include x86_64 binaries for macOS. It's worth noting that this problem looks specific to v1.42, as other releases include this build target.

As mentioned in #3462 (comment), installing Solana v1.18 makes it work. You can also use Solana v2.1 in the future, which uses platform-tools v1.43.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation error Issues related to installation errors
Projects
None yet
Development

No branches or pull requests

3 participants