program-examples icon indicating copy to clipboard operation
program-examples copied to clipboard

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

Open lushengguo opened this issue 1 year ago • 4 comments

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 avatar Jan 04 '25 13:01 lushengguo

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

heyAyushh avatar Jan 04 '25 18:01 heyAyushh

 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 avatar Jan 05 '25 05:01 lushengguo

hi @heyAyushh any progress?

lushengguo avatar Jan 08 '25 13:01 lushengguo

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

heyAyushh avatar Jan 08 '25 19:01 heyAyushh