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

Got Error during installing anchor on M1 arch. #3408

Closed
juwoong opened this issue Dec 6, 2024 · 2 comments
Closed

Got Error during installing anchor on M1 arch. #3408

juwoong opened this issue Dec 6, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists installation error Issues related to installation errors

Comments

@juwoong
Copy link

juwoong commented Dec 6, 2024

  • OS: MacOS Sequoia 15.0.1
  • rustc: 1.83.0

I tried to install anchor-cli following offical document.

cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli --locked

But I got following error

error[E0282]: type annotations needed for `Box<_>`
  --> /Users/juwoong/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.29/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
   = note: this is an inference error on crate `time` caused by an API change in Rust 1.80.0; update `time` to version `>=0.3.35` by calling `cargo update`
@juwoong
Copy link
Author

juwoong commented Dec 6, 2024

I believe this is not that major error, so I will try to fix and make PR asap.

@acheroncrypto acheroncrypto added duplicate This issue or pull request already exists installation error Issues related to installation errors labels Dec 7, 2024
@acheroncrypto
Copy link
Collaborator

This was fixed in #3143 and is a duplicate of #3126.

Using --tag v0.30.1 --locked during installation won't work with rustc >=1.79 because of the reasons explained in the PR.

Also, it's recommended to use avm when installing (see #3143 (comment)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists installation error Issues related to installation errors
Projects
None yet
Development

No branches or pull requests

2 participants