Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Install solo2 #119

Open
manujchandra opened this issue May 20, 2024 · 1 comment
Open

Cannot Install solo2 #119

manujchandra opened this issue May 20, 2024 · 1 comment

Comments

@manujchandra
Copy link

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
Copy link

@manujchandra did you install libudev-dev?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants