Open
Description
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:
- 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?
- 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?
Metadata
Metadata
Assignees
Labels
No labels