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

v1.42/platform-tools-osx-x86_64.tar.bz2 not exist #341

Open
lushengguo opened this issue Jan 4, 2025 · 4 comments
Open

v1.42/platform-tools-osx-x86_64.tar.bz2 not exist #341

lushengguo opened this issue Jan 4, 2025 · 4 comments

Comments

@lushengguo
Copy link

lushengguo commented Jan 4, 2025

compile errro message:

# shengguolu @ LMbp in ~/code/solana_relative/program-examples/basics/hello-solana/anchor/programs/hello-solana on git:main x .python_env [21:01:55] 
$ anchor build 
WARNING: `anchor-lang` version(0.30.0) and the current CLI version(0.30.1) don't match.

        This can lead to unwanted behavior. To use the same CLI version, add:

        [toolchain]
        anchor_version = "0.30.0"

        to Anchor.toml

[2025-01-04T13:02:04.835209000Z 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)

code path: program-examples/basics/hello-solana/anchor/programs/hello-solana

I'm new to rust and solana, not very familiar with the encapsulated toolchain, and here is the questions:

  1. I followed https://solana.com/zh/docs/intro/installation's instruction and installed 0.31.1 anchor via avm, but why anchor-lang is 0.30.0? I should update it(don't know how to operate it) or just ignore this warning or follow the suggestion to downgrade using v0.30.0 anchor?
  2. platform-tools's release didn't contain v1.42/platform-tools-osx-x86_64.tar.bz2 , and I cannot find keyword platform-tools in this project, so how to manually specify the version of platform-tools, or waiting your PR to fix this?
@lushengguo lushengguo changed the title v1.42/platform-tools-osx-x86_64.tar.bz2) not exist v1.42/platform-tools-osx-x86_64.tar.bz2 not exist Jan 4, 2025
@heyAyushh
Copy link
Member

@lushengguo can you run these and let me know?
cargo build-sbf --force-tools-install

@lushengguo
Copy link
Author

 shengguolu @ LMbp in ~/code/solana_relative/program-examples/basics/hello-solana/anchor/programs/hello-solana on git:main o .python_env [13:24:48] C:1
$ cargo build-sbf --force-tools-install


[2025-01-05T05:24:53.972262000Z 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)
image

it's just no osx-x86_64 package in v1.42, but v1.43 has.

@lushengguo
Copy link
Author

hi @heyAyushh any progress?

@heyAyushh
Copy link
Member

hi @heyAyushh any progress?

Can you also let me know the solana version?

cargo build-sbf -V
solana -V

if the version is 2.0.21 you might have to downgrade the solana version to use 1.18

agave-install init  1.18.21

sorry for the delay

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

No branches or pull requests

2 participants