solokeys / solo2-cli

Solo 2 library and CLI in Rust
https://docs.rs/solo2
Apache License 2.0
173 stars 31 forks source link

Cannot Install solo2 #119

Open manujchandra opened 4 months ago

manujchandra commented 4 months ago

Hi,

When I try to install solo2 inside a conda environment, containing rust I get the following error:

  --- stderr
  thread 'main' panicked at /home/manuj/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hidapi-2.6.1/build.rs:58:54:
  Unable to find libudev: 
  pkg-config exited with status code 1
  > PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags libudev

  The system library `libudev` required by crate `hidapi` was not found.
  The file `libudev.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
  The PKG_CONFIG_PATH environment variable is not set.

  HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `libudev.pc`.

  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `solo2 v0.2.2`, intermediate artifacts can be found at `/tmp/user/1000/cargo-install0AXnct`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

rust version : 1.77.2 debian : 12

chenrui333 commented 3 months ago

@manujchandra did you install libudev-dev?