alloy-rs/svm-rs

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 · 3 comments

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`

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)`