sbf-tools icon indicating copy to clipboard operation
sbf-tools copied to clipboard

Missing archive platform-tools-osx-x86_64.tar.bz2 on release v1.42

Open gmaurice opened this issue 1 year ago • 13 comments

Hello,

Just to mention that the osx-x86_64 archive for v1.42 release is missing. Anchor v0.30.1 needs it.

Thank you.

gmaurice avatar Dec 03 '24 16:12 gmaurice

I did some tricks,make anchor can pass defalt solana program.

  1. cargo build-sbf --tools-version "v1.43"
  2. cd $HOME.cache/solana
  3. cp -r v1.43 v1.42

Jamesinit avatar Dec 04 '24 09:12 Jamesinit

Please, update your Solana version, and you'll get the new tools version v1.43, whose binaries are available for x86 Macs.

LucasSte avatar Dec 06 '24 17:12 LucasSte

The version installed using the process documented here: https://solana.com/docs/intro/installation, i.e. sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)", installs a Solana version requiring platform-tools v1.42

Edit: agave-install update does not fix this, cargo build-sbf is still failing. Even --tools-version v1.43 --force-tools-install doesn't work, it initially downloads the v.43 version, but than fails again at the end as it tries to download the v1.42version again.

devnev avatar Dec 07 '24 13:12 devnev

Please, update your Solana version, and you'll get the new tools version v1.43, whose binaries are available for x86 Macs.

agave-install update
solana-cli 2.0.19 (src:2c653b09; feat:607245837, client:Agave)
avm use 0.30.1

Still require v1.42 when I run the anchor build. Can you tell me which Solana version has used the tools v1.43?

Jamesinit avatar Dec 09 '24 03:12 Jamesinit

Any version newer than 2.1 ships with platform tools v1.43.

LucasSte avatar Dec 09 '24 13:12 LucasSte

@LucasSte Some indication of how to update would be incredibly helpful. As noted above, agave-install update does not update to a new enough version.

devnev avatar Dec 14 '24 16:12 devnev

Also, based on the github releases, 2.1.x are unstable pre-releases. Could we have stable release that can be used on Mac?

devnev avatar Dec 14 '24 16:12 devnev

You can fix this by using Solana from the beta channel instead of using the stable channel. Follow this document: https://solana.com/docs/intro/installation#install-the-solana-cli sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"

ChisTrun avatar Dec 15 '24 09:12 ChisTrun

Also, based on the github releases, 2.1.x are unstable pre-releases. Could we have stable release that can be used on Mac?

As mentioned earlier, you can download a beta version. Mainnet will switch to 2.1 in January and DevNet is already using 2.1 (see https://github.com/anza-xyz/agave/wiki/v2.1-Release-Schedule).

LucasSte avatar Dec 16 '24 15:12 LucasSte

I am new to Solana and having the same problem described above. It should be expected that installing the stable version according to the getting started guide to get you functioning platform tools. It seems from the comments above that the beta version is the only solution for Mac with Intel owners.

Do I have to uninstall solanacli and anchorcli before reinstalling from the beta channel?

cswaas avatar Dec 23 '24 14:12 cswaas

I am new to Solana and having the same problem described above. It should be expected that installing the stable version according to the getting started guide to get you functioning platform tools. It seems from the comments above that the beta version is the only solution for Mac with Intel owners.

That isn't the ideal. We wanted to remove support for x86 Macs, since Github doesn't offer runners with up to date MacOS for x86 Macs. We brought support back due to the amount of requests. Since 2.0 is a stable version, we cannot change it so easily, unless for a security update.

Do I have to uninstall solanacli and anchorcli before reinstalling from the beta channel?

You'll likely need to uninstall Solana CLI. Anchor CLI isn't connected to the Solana CLI, so there is no need to change it.

LucasSte avatar Dec 30 '24 14:12 LucasSte

The version installed using the process documented here: https://solana.com/docs/intro/installation, i.e. sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)", installs a Solana version requiring platform-tools v1.42

Edit: agave-install update does not fix this, cargo build-sbf is still failing. Even --tools-version v1.43 --force-tools-install doesn't work, it initially downloads the v.43 version, but than fails again at the end as it tries to download the v1.42version again.

this doesn't work for me as well. another approach is to use older versions of solanacli and anchorcli, if it's okay with you. @devnev solana-cli 1.18.18 anchor-cli 0.29.0

X-astro avatar Jan 22 '25 17:01 X-astro

uninstall existing Solana CLI then install again from beta channel

sh -c "$(curl -sSfL https://release.anza.xyz/beta/install)"

this worked for me

mujtabasaqib avatar Jan 24 '25 12:01 mujtabasaqib

We brought back x86 builds for MacOS since v1.43, so I'm closing this issue.

LucasSte avatar Jun 17 '25 14:06 LucasSte