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]: Unable to install on ARM64 - failed to select a version for env_logger. #2031

Open
1 task done
victorhooi opened this issue May 19, 2024 · 3 comments · May be fixed by #2069
Open
1 task done

[Bug]: Unable to install on ARM64 - failed to select a version for env_logger. #2031

victorhooi opened this issue May 19, 2024 · 3 comments · May be fixed by #2069
Labels
bug Something isn't working

Comments

@victorhooi
Copy link

What did you expect to happen?

Atuin should be able to compile successfully on ARM64.

What happened?

I attempted to install Atuin using the commands under Quickstart in the Atuin README.

However, it failed to compile an ARM64 package - I'm not a Rust expert, but it seems like some kind of version mismatch on env_logger?

bash (curl --proto '=https' --tlsv1.2 -sSf https://setup.atuin.sh | psub)

 _______  _______  __   __  ___   __    _
|   _   ||       ||  | |  ||   | |  |  | |
|  |_|  ||_     _||  | |  ||   | |   |_| |
|       |  |   |  |  |_|  ||   | |       |
|       |  |   |  |       ||   | |  _    |
|   _   |  |   |  |       ||   | | | |   |
|__| |__|  |___|  |_______||___| |_|  |__|

Magical shell history

Atuin setup
https://github.com/atuinsh/atuin

Please file an issue if you encounter any problems!

===============================================================================

Detected Linux!
Checking distro...
debian detected, but not amd64
Unknown or unsupported OS or architecture
Please check the README at https://github.com/atuinsh/atuin for manual install instructions
If you have any problems, please open an issue!
Do you wish to attempt an install with 'cargo'? [Y/N] y
Attempting install with cargo
    Updating crates.io index
  Downloaded atuin v18.2.0
  Downloaded 1 crate (92.8 KB) in 0.12s
  Installing atuin v18.2.0
    Updating crates.io index
error: failed to compile `atuin v18.2.0`, intermediate artifacts can be found at `/tmp/cargo-installaQ0Kou`

Caused by:
  failed to select a version for `env_logger`.
      ... required by package `atuin v18.2.0`
  versions that meet the requirements `^0.11.2` are: 0.11.3, 0.11.2

  the package `atuin` depends on `env_logger`, with features: `anstream` but `env_logger` does not have these features.
   It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.


  failed to select a version for `env_logger` which could resolve this conflict

Atuin doctor output

Not available - as Atuin was unable to be installed.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@victorhooi victorhooi added the bug Something isn't working label May 19, 2024
@ellie
Copy link
Member

ellie commented May 21, 2024

Hey! Thanks for the report

I'm struggling to replicate this one 🤔

If you run

cargo install atuin

do you still get the same issue?

@seesee
Copy link

seesee commented May 28, 2024

I had this issue earlier when installing on a raspberry pi, updating my rust environment fixed it (via a "curl https://sh.rustup.rs -sSf | sh")

@xvello
Copy link
Contributor

xvello commented May 31, 2024

Heya @victorhooi, did you try to upgrade your cargo version as @seesee suggested? The minimum version seems to be 1.74.

If you try to run the install script again, it will print the cargo & rustc versions to help debug build failures.

@xvello xvello linked a pull request Jun 2, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
@victorhooi @seesee @xvello @ellie and others