svm-rs icon indicating copy to clipboard operation
svm-rs copied to clipboard

error: failed to compile `svm-rs v0.2.23`, intermediate artifacts can be found at `/var/folders/d7/1zb4w94j5fdb7l4vyps_nfz40000gn/T/cargo-installdubCuB`

Open DessertHeart opened this issue 2 years ago • 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`

DessertHeart avatar Jun 06 '23 08:06 DessertHeart

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

DessertHeart avatar Jun 06 '23 08:06 DessertHeart

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??

DimitrisKasabalis avatar Jan 26 '24 10:01 DimitrisKasabalis

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

DaniPopes avatar Apr 09 '24 11:04 DaniPopes