Skip to content

Cannot Install solo2 #119

@manujchandra

Description

@manujchandra

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions