austinjones / tab-rs

The intuitive, config-driven terminal multiplexer designed for software & systems engineers
MIT License
660 stars 29 forks source link

Issues installing tab on arm64. Failed to select version for zeroize = "^0.9.3" #351

Open thewithz opened 3 years ago

thewithz commented 3 years ago

rustup stable-aarch64-unknown-linux-gnu unchanged - rustc 1.51.0 (2fd73fabe 2021-03-23) cargo cargo 1.51.0 (43b129a20 2021-03-16) OS Linux homebase 5.11.16-gentoo-x86_64 #1 SMP Wed Apr 21 20:13:15 EDT 2021 aarch64 GNU/Linux

 (chroot) homebase ~ # cargo install -j24 tab
    Updating crates.io index
  Installing tab v0.5.7
error: failed to compile `tab v0.5.7`, intermediate artifacts can be found at `/tmp/cargo-installc5woYg`

Caused by:
  failed to select a version for the requirement `zeroize = "^0.9.3"`
  candidate versions found which didn't match: 1.3.0, 1.2.0, 1.1.1, ...
  location searched: crates.io index
  required by package `dialoguer v0.7.0`
      ... which is depended on by `tab v0.5.7`
thewithz commented 3 years ago

I checked out the 0.5.7 tagged commit e167812a60bbbf01cc3cb9f10700a34d5dc16565 and the latest in main then manually updated tab/Cargo.toml dialoguer to 0.8.0 and both build successfully. It pulled in zeroize v1.3.0

playing around with it, it seems to be working, though some of the tests failed. [retask, keyboard_latency, reconnect, service::client::client_session_tests::tx_terminated, service::client::tests::terminate_escape] the rest passed.

cinerea0 commented 3 years ago

I experienced this problem on my x86_64 Linux system as well, haven't tried the fix yet.

joshbainbridge commented 1 year ago

I know this is an old thread, but just wanting to give an update for anyone else who comes across this issue. The current main branch now has an updated version of dialoguer, so you can build and install tab by just running:

cargo install --path tab

or use a pre-compiled binary.

That said, as of writing, the current released version (v0.5.7), and therefor the version available via crates.io, does not include this update. So running:

brew install austinjones/taps/tab

or:

cargo install tab

appears to still be broken. I'd suggest that a minor version release might help new users, just so that the installation instructions on the README page work. But appreciate this is a side project and the maintainer might be busy.