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

Bug: Compile failed when install anchor #3236

Closed
ybina opened this issue Sep 10, 2024 · 2 comments
Closed

Bug: Compile failed when install anchor #3236

ybina opened this issue Sep 10, 2024 · 2 comments
Labels
avm duplicate This issue or pull request already exists installation error Issues related to installation errors

Comments

@ybina
Copy link

ybina commented Sep 10, 2024

run:

apt-get update && sudo apt-get upgrade && sudo apt-get install -y pkg-config build-essential libudev-dev
cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli --locked

report error:

error[E0282]: type annotations needed for `Box<_>`
  --> /root/.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`
@developerfred
Copy link

developerfred commented Sep 10, 2024

gm @ybina try using old version to cargo

rustup override set 1.76.0
rustup default 1.76.0

its work for me!

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

Duplicate of #3126, #3158, #3164, #3169, #3173, #3198, #3202.

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

No branches or pull requests

3 participants