cargo fails to detect liblzma when building lzma-rust on Opensuse Leap 15.4 #221
Unanswered
ChaosNicro
asked this question in
Q&A
Replies: 1 comment
-
Sorry for the inconvenience. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
console log
cargo install --locked rdedup
Updating crates.io index
Downloaded rdedup v3.2.1
Downloaded 1 crate (23.8 KB) in 0.29s
Installing rdedup v3.2.1
warning: package
crossbeam-utils v0.8.5
in Cargo.lock is yanked in registrycrates-io
, consider running without --lockedwarning: package
jobserver v0.1.23
in Cargo.lock is yanked in registrycrates-io
, consider running without --lockedDownloaded dtoa v0.4.8
Downloaded hashbrown v0.11.2
Downloaded generic-array v0.14.4
Downloaded flate2 v1.0.20
Downloaded getrandom v0.1.16
Downloaded typenum v1.13.0
Downloaded tinyvec_macros v0.1.0
Downloaded unicode-width v0.1.8
Downloaded libc v0.2.98
Downloaded url v1.7.2
Downloaded lazy_static v1.4.0
Downloaded adler v1.0.2
Downloaded log v0.4.14
Downloaded itoa v0.4.7
Downloaded crossbeam-channel v0.4.4
Downloaded ppv-lite86 v0.2.10
Downloaded sha2 v0.9.5
Downloaded slog-term v2.8.0
Downloaded miniz_oxide v0.4.4
Downloaded unicode-bidi v0.3.5
Downloaded strsim v0.10.0
Downloaded num-traits v0.2.14
Downloaded percent-encoding v1.0.1
Downloaded matches v0.1.8
Downloaded pkg-config v0.3.19
Downloaded owning_ref v0.4.1
Downloaded quote v1.0.9
Downloaded ryu v1.0.5
Downloaded rand_chacha v0.2.2
Downloaded rpassword v4.0.5
Downloaded rand_core v0.5.1
Downloaded serde_derive v1.0.127
Downloaded serde v1.0.127
Downloaded signature v1.3.1
Downloaded serde_json v1.0.66
Downloaded serde_yaml v0.8.17
Downloaded termcolor v1.1.2
Downloaded stable_deref_trait v1.2.0
Downloaded term v0.7.0
Downloaded tinyvec v1.3.1
Downloaded block-buffer v0.9.0
Downloaded cfg-if v0.1.10
Downloaded autocfg v1.0.1
Downloaded cc v1.0.69
Downloaded cpufeatures v0.1.5
Downloaded crc32fast v1.2.1
Downloaded clap_derive v3.0.0-beta.4
Downloaded crossbeam-deque v0.7.4
Downloaded crossbeam-epoch v0.8.2
Downloaded hex v0.4.3
Downloaded same-file v1.0.6
Downloaded proc-macro-error-attr v1.0.4
Downloaded cfg-if v1.0.0
Downloaded scopeguard v1.1.0
Downloaded crossbeam-utils v0.7.2
Downloaded crypto-mac v0.8.0
Downloaded crossbeam-utils v0.8.5
Downloaded fs2 v0.4.3
Downloaded once_cell v1.8.0
Downloaded slog-async v2.7.0
Downloaded slog v2.7.0
Downloaded time v0.1.43
Downloaded ed25519 v1.2.0
Downloaded syn v1.0.74
Downloaded crossbeam-queue v0.2.3
Downloaded base64 v0.12.3
Downloaded crossbeam-channel v0.5.1
Downloaded digest v0.9.0
Downloaded indexmap v1.7.0
Downloaded idna v0.1.5
Downloaded maybe-uninit v2.0.0
Downloaded proc-macro2 v1.0.28
Downloaded num_cpus v1.13.0
Downloaded unicode-segmentation v1.8.0
Downloaded unicode-normalization v0.1.19
Downloaded textwrap v0.14.2
Downloaded vec_map v0.8.2
Downloaded yaml-rust v0.4.5
Downloaded sgdata v0.2.0
Downloaded unicode-xid v0.2.2
Downloaded proc-macro-error v1.0.4
Downloaded subtle v2.4.1
Downloaded bitflags v1.2.1
Downloaded bzip2 v0.4.3
Downloaded opaque-debug v0.3.0
Downloaded atty v0.2.14
Downloaded chrono v0.4.19
Downloaded memoffset v0.5.6
Downloaded clap v3.0.0-beta.4
Downloaded version_check v0.9.3
Downloaded take_mut v0.2.2
Downloaded walkdir v2.3.2
Downloaded heck v0.3.3
Downloaded dirs-sys-next v0.1.2
Downloaded dirs-next v2.0.0
Downloaded linked-hash-map v0.5.4
Downloaded crossbeam v0.7.3
Downloaded bytevec v0.2.0
Downloaded num-integer v0.1.44
Downloaded slog-perf v0.2.0
Downloaded rdedup-lib v3.2.0
Downloaded rdedup-cdc v0.1.0
Downloaded zstd-safe v4.1.1+zstd.1.5.0
Downloaded thread_local v1.1.3
Downloaded dangerous_option v0.2.0
Downloaded jobserver v0.1.23
Downloaded os_str_bytes v3.1.0
Downloaded zstd v0.9.0+zstd.1.5.0
Downloaded rand v0.7.3
Downloaded blake2 v0.9.1
Downloaded rust-lzma v0.5.1
Downloaded bzip2-sys v0.1.11+1.0.8
Downloaded zstd-sys v1.6.1+zstd.1.5.0
Downloaded sodiumoxide v0.2.7
Downloaded libsodium-sys v0.2.7
Downloaded 115 crates (12.4 MB) in 2.00s (largest was
libsodium-sys
at 4.6 MB)Compiling libc v0.2.98
Compiling autocfg v1.0.1
Compiling version_check v0.9.3
Compiling proc-macro2 v1.0.28
Compiling unicode-xid v0.2.2
Compiling cfg-if v1.0.0
Compiling syn v1.0.74
Compiling pkg-config v0.3.19
Compiling lazy_static v1.4.0
Compiling typenum v1.13.0
Compiling serde_derive v1.0.127
Compiling maybe-uninit v2.0.0
Compiling serde v1.0.127
Compiling cfg-if v0.1.10
Compiling same-file v1.0.6
Compiling slog v2.7.0
Compiling getrandom v0.1.16
Compiling tinyvec_macros v0.1.0
Compiling matches v0.1.8
Compiling scopeguard v1.1.0
Compiling crossbeam-utils v0.8.5
Compiling crc32fast v1.2.1
Compiling zstd-safe v4.1.1+zstd.1.5.0
Compiling ryu v1.0.5
Compiling opaque-debug v0.3.0
Compiling linked-hash-map v0.5.4
Compiling adler v1.0.2
Compiling ppv-lite86 v0.2.10
Compiling bitflags v1.2.1
Compiling once_cell v1.8.0
Compiling serde_json v1.0.66
Compiling unicode-segmentation v1.8.0
Compiling stable_deref_trait v1.2.0
Compiling signature v1.3.1
Compiling subtle v2.4.1
Compiling itoa v0.4.7
Compiling dtoa v0.4.8
Compiling hashbrown v0.11.2
Compiling percent-encoding v1.0.1
Compiling slog-async v2.7.0
Compiling unicode-width v0.1.8
Compiling cpufeatures v0.1.5
Compiling log v0.4.14
Compiling os_str_bytes v3.1.0
Compiling bytevec v0.2.0
Compiling vec_map v0.8.2
Compiling base64 v0.12.3
Compiling rdedup-cdc v0.1.0
Compiling take_mut v0.2.2
Compiling strsim v0.10.0
Compiling termcolor v1.1.2
Compiling dangerous_option v0.2.0
Compiling hex v0.4.3
Compiling walkdir v2.3.2
Compiling tinyvec v1.3.1
Compiling unicode-bidi v0.3.5
Compiling owning_ref v0.4.1
Compiling ed25519 v1.2.0
Compiling yaml-rust v0.4.5
Compiling thread_local v1.1.3
Compiling generic-array v0.14.4
Compiling proc-macro-error-attr v1.0.4
Compiling proc-macro-error v1.0.4
Compiling textwrap v0.14.2
Compiling crossbeam-utils v0.7.2
Compiling num-traits v0.2.14
Compiling memoffset v0.5.6
Compiling crossbeam-epoch v0.8.2
Compiling num-integer v0.1.44
Compiling miniz_oxide v0.4.4
Compiling indexmap v1.7.0
Compiling heck v0.3.3
Compiling sgdata v0.2.0
Compiling rust-lzma v0.5.1
Compiling crossbeam-channel v0.5.1
Compiling slog-perf v0.2.0
error: failed to run custom build command for
rust-lzma v0.5.1
Caused by:
process didn't exit successfully:
/tmp/cargo-installZpP9P3/release/build/rust-lzma-7ac5c53de7315122/build-script-build
(exit status: 101)--- stdout
cargo:rerun-if-env-changed=LIBLZMA_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=LIBLZMA_STATIC
cargo:rerun-if-env-changed=LIBLZMA_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 'Could not find liblzma using pkg-config', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/rust-lzma-0.5.1/build.rs:10:9
note: run with
RUST_BACKTRACE=1
environment variable to display a backtracewarning: build failed, waiting for other jobs to finish...
error: failed to compile
rdedup v3.2.1
, intermediate artifacts can be found at/tmp/cargo-installZpP9P3
liblzma 5.2.3 is present as a .so in /usr/lib and should be detectable.
I'm new to cargo and rust, can I maybe set the path explicitly?
I will gladly provide more info as necessary.
Thanks for providing the project.
Beta Was this translation helpful? Give feedback.
All reactions