Problem installling Hoard
mateolafalce opened this issue · 3 comments
mateolafalce commented
mateo@debian:~$ cargo install hoard-rs
Updating crates.io index
Downloaded hoard-rs v1.3.2
Downloaded 1 crate (3.2 MB) in 3.18s
Installing hoard-rs v1.3.2
Updating crates.io index
Downloaded cassowary v0.3.0
Downloaded termion v1.5.6
Downloaded tui v0.19.0
Downloaded term v0.7.0
Downloaded prettytable-rs v0.10.0
Downloaded webpki-roots v0.23.1
Downloaded h2 v0.3.20
Downloaded simple_logger v4.2.0
Downloaded clap_builder v4.3.19
Downloaded ipnet v2.8.0
Downloaded flate2 v1.0.26
Downloaded is-terminal v0.4.9
Downloaded ryu v1.0.15
Downloaded time v0.3.24
Downloaded num_cpus v1.16.0
Downloaded num_threads v0.1.6
Downloaded enum-iterator-derive v1.2.1
Downloaded utf8parse v0.2.1
Downloaded bitflags v2.3.3
Downloaded anstyle v1.0.1
Downloaded syn v2.0.28
Downloaded hyper v0.14.27
Downloaded time-macros v0.2.11
Downloaded linked-hash-map v0.5.6
Downloaded dirs-sys-next v0.1.2
Downloaded deranged v0.3.6
Downloaded console v0.15.7
Downloaded serde_json v1.0.104
Downloaded clap_derive v4.3.12
Downloaded rustls-webpki v0.101.2
Downloaded rustix v0.38.4
Downloaded serde_derive v1.0.180
Downloaded rustls v0.21.5
Downloaded linux-raw-sys v0.4.5
Downloaded tempfile v3.7.0
Downloaded csv v1.2.2
Downloaded clap_lex v0.5.0
Downloaded clap v4.3.19
Downloaded serde v1.0.180
Downloaded dirs-next v2.0.0
Downloaded crc32fast v1.3.2
Downloaded colorchoice v1.0.0
Downloaded strsim v0.10.0
Downloaded itoa v1.0.9
Downloaded anyhow v1.0.72
Downloaded anstyle-query v1.0.0
Downloaded heck v0.4.1
Downloaded dotenv v0.15.0
Downloaded anstream v0.3.2
Downloaded fastrand v2.0.0
Downloaded cc v1.0.80
Downloaded anstyle-parse v0.2.1
Downloaded enum-iterator v1.4.1
Downloaded encode_unicode v1.0.0
Downloaded crossterm v0.25.0
Downloaded ureq v2.7.1
Downloaded serde_yaml v0.8.26
Downloaded csv-core v0.1.10
Downloaded hyper-tls v0.5.0
Downloaded dirs-sys v0.3.7
Downloaded dirs v4.0.0
Downloaded zeroize v1.6.0
Downloaded chatgpt_blocking_rs v0.1.1
Downloaded array_tool v1.0.3
Downloaded shell-words v1.1.0
Downloaded colored v2.0.4
Downloaded dialoguer v0.10.4
Downloaded yaml-rust v0.4.5
Downloaded 68 crates (6.2 MB) in 1.91s (largest was `linux-raw-sys` at 1.3 MB)
Compiling libc v0.2.147
Compiling cfg-if v1.0.0
Compiling autocfg v1.1.0
Compiling proc-macro2 v1.0.66
Compiling unicode-ident v1.0.11
Compiling cc v1.0.80
Compiling once_cell v1.18.0
Compiling quote v1.0.32
Compiling syn v2.0.28
Compiling log v0.4.19
Compiling itoa v1.0.9
Compiling lock_api v0.4.10
Compiling parking_lot_core v0.9.8
Compiling signal-hook-registry v1.4.1
Compiling smallvec v1.11.0
Compiling scopeguard v1.2.0
Compiling mio v0.8.8
Compiling serde v1.0.180
Compiling rustix v0.38.4
Compiling memchr v2.5.0
Compiling pkg-config v0.3.27
Compiling pin-project-lite v0.2.10
Compiling openssl-sys v0.9.90
Compiling parking_lot v0.12.1
Compiling ring v0.16.20
Compiling bitflags v2.3.3
Compiling bytes v1.4.0
Compiling serde_derive v1.0.180
Compiling linux-raw-sys v0.4.5
Compiling futures-core v0.3.28
error: failed to run custom build command for `openssl-sys v0.9.90`
Caused by:
process didn't exit successfully: `/tmp/cargo-installf4YIiy/release/build/openssl-sys-55e20b2ad05ae7d8/build-script-main` (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR
X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR unset
cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
OPENSSL_LIB_DIR unset
cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR
X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR unset
cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
OPENSSL_INCLUDE_DIR unset
cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR
X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR unset
cargo:rerun-if-env-changed=OPENSSL_DIR
OPENSSL_DIR unset
cargo:rerun-if-env-changed=OPENSSL_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=OPENSSL_STATIC
cargo:rerun-if-env-changed=OPENSSL_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
cargo:rerun-if-env-changed=OPENSSL_STATIC
cargo:rerun-if-env-changed=OPENSSL_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
run pkg_config fail: Could not run `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" "pkg-config" "--libs" "--cflags" "openssl"`
The pkg-config command could not be found.
Most likely, you need to install a pkg-config package for your OS.
Try `apt install pkg-config`, or `yum install pkg-config`,
or `pkg install pkg-config`, or `apk add pkgconfig` depending on your distribution.
If you've already installed it, ensure the pkg-config command is one of the
directories in the PATH environment variable.
If you did not expect this build to link to a pre-installed system library,
then check documentation of the openssl-sys crate for an option to
build the library from source, or disable features or dependencies
that require pkg-config.
--- stderr
thread 'main' panicked at '
Could not find directory of OpenSSL installation, and this `-sys` crate cannot
proceed without this knowledge. If OpenSSL is installed and this crate had
trouble finding it, you can set the `OPENSSL_DIR` environment variable for the
compilation process.
Make sure you also have the development packages of openssl installed.
For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.
If you're in a situation where you think the directory *should* be found
automatically, please open a bug at https://github.com/sfackler/rust-openssl
and include information about your system as well as this message.
$HOST = x86_64-unknown-linux-gnu
$TARGET = x86_64-unknown-linux-gnu
openssl-sys = 0.9.90
It looks like you're compiling on Linux and also targeting Linux. Currently this
requires the `pkg-config` utility to find OpenSSL but unfortunately `pkg-config`
could not be found. If you have OpenSSL installed you can likely fix this by
installing `pkg-config`.
', /home/mateo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-sys-0.9.90/build/find_normal.rs:190:5
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 `hoard-rs v1.3.2`, intermediate artifacts can be found at `/tmp/cargo-installf4YIiy`
My OS && rust version
mateo@debian:~$ neofetch
_,met$$$$$gg. mateo@debian
,g$$$$$$$$$$$$$$$P. ------------
,g$$P" """Y$$.". OS: Debian GNU/Linux 12 (bookworm) x86_64
,$$P' `$$$. Host: MS-7721 7.0
',$$P ,ggs. `$$b: Kernel: 6.1.0-9-amd64
`d$$' ,$P"' . $$$ Uptime: 8 mins
$$P d$' , $$P Packages: 1658 (dpkg), 5 (flatpak)
$$: $$. - ,d$$' Shell: bash 5.2.15
$$; Y$b._ _,d$P' Resolution: 1366x768
Y$$. `.`"Y$$$$P"' DE: GNOME 43.6
`$$b "-.__ WM: Mutter
`Y$$ WM Theme: Adwaita
`Y$$. Theme: Adwaita [GTK2/3]
`$$b. Icons: Adwaita [GTK2/3]
`Y$$b. Terminal: gnome-terminal
`"Y$b._ CPU: AMD A4-4000 APU (2) @ 3.000GHz
`""" GPU: AMD ATI Radeon HD 7480D
Memory: 1530MiB / 7129MiB
rustc 1.71.0 (8ede3aae2 2023-07-12)
mateolafalce commented
I add pkg-config, but nothing happends, I wish you can help me with this!
mateo@debian:~$ cargo install hoard-rs
Updating crates.io index
Installing hoard-rs v1.3.2
Updating crates.io index
Compiling libc v0.2.147
Compiling cfg-if v1.0.0
Compiling autocfg v1.1.0
Compiling proc-macro2 v1.0.66
Compiling cc v1.0.80
Compiling unicode-ident v1.0.11
Compiling once_cell v1.18.0
Compiling quote v1.0.32
Compiling log v0.4.19
Compiling syn v2.0.28
Compiling itoa v1.0.9
Compiling lock_api v0.4.10
Compiling parking_lot_core v0.9.8
Compiling signal-hook-registry v1.4.1
Compiling scopeguard v1.2.0
Compiling smallvec v1.11.0
Compiling mio v0.8.8
Compiling serde v1.0.180
Compiling pkg-config v0.3.27
Compiling memchr v2.5.0
Compiling pin-project-lite v0.2.10
Compiling rustix v0.38.4
Compiling openssl-sys v0.9.90
Compiling parking_lot v0.12.1
Compiling ring v0.16.20
Compiling bitflags v2.3.3
Compiling linux-raw-sys v0.4.5
Compiling bytes v1.4.0
Compiling serde_derive v1.0.180
Compiling futures-core v0.3.28
error: failed to run custom build command for `openssl-sys v0.9.90`
Caused by:
process didn't exit successfully: `/tmp/cargo-installID4qQ1/release/build/openssl-sys-55e20b2ad05ae7d8/build-script-main` (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR
X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR unset
cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
OPENSSL_LIB_DIR unset
cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR
X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR unset
cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
OPENSSL_INCLUDE_DIR unset
cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR
X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR unset
cargo:rerun-if-env-changed=OPENSSL_DIR
OPENSSL_DIR unset
cargo:rerun-if-env-changed=OPENSSL_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=OPENSSL_STATIC
cargo:rerun-if-env-changed=OPENSSL_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
run pkg_config fail: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" "pkg-config" "--libs" "--cflags" "openssl"` did not exit successfully: exit status: 1
error: could not find system library 'openssl' required by the 'openssl-sys' crate
--- stderr
Package openssl was not found in the pkg-config search path.
Perhaps you should add the directory containing `openssl.pc'
to the PKG_CONFIG_PATH environment variable
Package 'openssl', required by 'virtual:world', not found
--- stderr
thread 'main' panicked at '
Could not find directory of OpenSSL installation, and this `-sys` crate cannot
proceed without this knowledge. If OpenSSL is installed and this crate had
trouble finding it, you can set the `OPENSSL_DIR` environment variable for the
compilation process.
Make sure you also have the development packages of openssl installed.
For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.
If you're in a situation where you think the directory *should* be found
automatically, please open a bug at https://github.com/sfackler/rust-openssl
and include information about your system as well as this message.
$HOST = x86_64-unknown-linux-gnu
$TARGET = x86_64-unknown-linux-gnu
openssl-sys = 0.9.90
', /home/mateo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-sys-0.9.90/build/find_normal.rs:190:5
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 `hoard-rs v1.3.2`, intermediate artifacts can be found at `/tmp/cargo-installID4qQ1
Hyde46 commented
Thanks for the thorough error log!
error: could not find system library 'openssl' required by the 'openssl-sys' crate
Looks like it might work if openssl
is installed on the target system
sudo apt-get -y install openssl
mateolafalce commented