error: failed to compile `svm-rs v0.2.23`, intermediate artifacts can be found at `/var/folders/d7/1zb4w94j5fdb7l4vyps_nfz40000gn/T/cargo-installdubCuB`
DessertHeart opened this issue · comments
Dezso commented
I tried to install svm using cargo but there was an error. The provided hint doesn't help as well.
It seemed a version problem and plz help me. my cargo version is cargo 1.59.0
$cargo install svm-rs
Updating crates.io index
Installing svm-rs v0.2.23
error: failed to compile `svm-rs v0.2.23`, intermediate artifacts can be found at `/var/folders/d7/1zb4w94j5fdb7l4vyps_nfz40000gn/T/cargo-installdubCuB`
Caused by:
failed to select a version for the requirement `clap = "^4.2"`
candidate versions found which didn't match: 3.2.25, 3.2.24, 3.2.23, ...
location searched: crates.io index
required by package `svm-rs v0.2.23`
Dezso commented
and the second command didn't work either.
$cargo install --locked --git https://github.com/roynalnaruto/svm-rs
Updating git repository `https://github.com/roynalnaruto/svm-rs`
Installing svm-rs v0.2.23 (https://github.com/roynalnaruto/svm-rs#d161e6fc)
Updating crates.io index
error: failed to select a version for the requirement `clap = "^4.2"`
candidate versions found which didn't match: 3.2.25, 3.2.24, 3.2.23, ...
location searched: crates.io index
required by package `svm-rs v0.2.23 (/Users/dazso/.cargo/git/checkouts/svm-rs-cd2fa967df1e48a1/d161e6f/crates/svm-rs)`
Dimitris Kasabalis commented
I have the same error:
cargo install svm-rs
Updating crates.io index
Installing svm-rs v0.3.4
error: failed to compile `svm-rs v0.3.4`, intermediate artifacts can be found at `/var/folders/4w/t258b59n54gc7jtkqs2755f80000gn/T/cargo-install73dtC6`
Caused by:
failed to select a version for the requirement `clap = "^4.2"`
candidate versions found which didn't match: 3.2.25, 3.2.24, 3.2.23, ...
location searched: crates.io index
required by package `svm-rs v0.3.4`
Any solution??
DaniPopes commented
You might be on an unsupported rust toolchain, but I'm not sure because I've never seen this error before. Try after rustup update
on the latest stable version