You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
Expected and observed behavior
Expected successful installation, got os error 13 on hidapi-1.5.0 compilation
root@User-Komputer:~# cargo install probe-run
Updating crates.io index
Installing probe-run v0.3.5
Compiling proc-macro2 v1.0.49
Compiling quote v1.0.23
Compiling unicode-ident v1.0.6
Compiling syn v1.0.107
Compiling autocfg v1.1.0
Compiling serde_derive v1.0.152
Compiling serde v1.0.152
Compiling libc v0.2.139
Compiling cc v1.0.78
Compiling pkg-config v0.3.26
Compiling cfg-if v1.0.0
Compiling indexmap v1.9.2
Compiling crc32fast v1.3.2
Compiling version_check v0.9.4
Compiling num-traits v0.2.15
Compiling log v0.4.17
Compiling adler v1.0.2
Compiling memchr v2.5.0
Compiling libusb1-sys v0.6.4
Compiling miniz_oxide v0.6.2
Compiling linked-hash-map v0.5.6
Compiling hashbrown v0.12.3
Compiling bitflags v1.3.2
Compiling yaml-rust v0.4.5
Compiling flate2 v1.0.25
Compiling hidapi v1.5.0
Compiling proc-macro-error-attr v1.0.4
Compiling fallible-iterator v0.2.0
Compiling ryu v1.0.12
Compiling radium v0.7.0
Compiling rusb v0.9.1
Compiling anyhow v1.0.68
Compiling base64 v0.13.1
Compiling io-lifetimes v1.0.4
Compiling stable_deref_trait v1.2.0
Compiling gimli v0.26.2
Compiling object v0.29.0
Compiling proc-macro-error v1.0.4
error: failed to run custom build command for `hidapi v1.5.0`
Caused by:
process didn't exit successfully: `/tmp/cargo-installwBeCho/release/build/hidapi-42421798a9b2468e/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=LIBUDEV_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=LIBUDEV_STATIC
cargo:rerun-if-env-changed=LIBUDEV_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
--- stderr
thread 'main' panicked at 'Unable to find libudev: Failed to run command `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" "pkg-config" "--libs" "--cflags" "libudev"`, because: Permission denied (os error 13)', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/hidapi-1.5.0/build.rs:57:54
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 `probe-run v0.3.5`, intermediate artifacts can be found at `/tmp/cargo-installwBeCho`
config.toml
n/a Probe details
n/a
Operating System:
Ubuntu 20.04 LTS running on Windows 10 WSL2
ELF file (attachment)
Additional context
I would love to give more details but I would need some guidance. I'm only getting started using Rust and Linux so I don't know where to look for the issue.
I checked mostly all things I found on os error 13 online. Most resources are here though its a MacOS related issue
The text was updated successfully, but these errors were encountered:
The error message says "Unable to find libudev". This is odd, since you mentioned that you installed it in step 5.
The error also mentions "Permission denied (os error 13)". So maybe you do not have sufficient permissions to run pkg-config? I sadly don't have any experience with WSL.
Describe the bug
Running
cargo install probe-run
fails on Ubuntu 20.04 running on WSL2 (Windows 10)To Reproduce
wsl --install Ubuntu
sudo apt update
,sudo apt upgrade
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
sudo apt install build-essential
sudo apt install -y libusb-1.0-0-dev libudev-dev
cargo install probe-run
Expected and observed behavior
Expected successful installation, got
os error 13
on hidapi-1.5.0 compilationconfig.toml
n/a
Probe details
n/a
Operating System:
Ubuntu 20.04 LTS running on Windows 10 WSL2
ELF file (attachment)
Additional context
I would love to give more details but I would need some guidance. I'm only getting started using Rust and Linux so I don't know where to look for the issue.
I checked mostly all things I found on os error 13 online. Most resources are here though its a MacOS related issue
The text was updated successfully, but these errors were encountered: