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

want to install a software by cargo but failed. it shows error about openssl-sys #292

Open
znqi opened this issue May 9, 2024 · 3 comments

Comments

@znqi
Copy link

znqi commented May 9, 2024

I want to install a software by cargo(rust). But it shows an error when compiling.
error: failed to run custom build command for openssl-sys v0.9.102 Caused by: process didn't exit successfully: /tmp/cargo-installbsjyy2/release/build/openssl-sys-327281312bed1980/build-script-main(exit status: 101) --- stdout cargo:rerun-if-env-changed=AARCH64_UNKNOWN_LINUX_GNU_OPENSSL_NO_VENDOR AARCH64_UNKNOWN_LINUX_GNU_OPENSSL_NO_VENDOR unset cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR OPENSSL_NO_VENDOR unset cargo:rerun-if-env-changed=CC_aarch64-unknown-linux-gnu CC_aarch64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_aarch64_unknown_linux_gnu CC_aarch64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("false") CARGO_CFG_TARGET_FEATURE = Some("neon") cargo:rerun-if-env-changed=CFLAGS_aarch64-unknown-linux-gnu CFLAGS_aarch64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_aarch64_unknown_linux_gnu CFLAGS_aarch64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:rerun-if-env-changed=AR_aarch64-unknown-linux-gnu AR_aarch64-unknown-linux-gnu = None cargo:rerun-if-env-changed=AR_aarch64_unknown_linux_gnu AR_aarch64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_AR HOST_AR = None cargo:rerun-if-env-changed=AR AR = None cargo:rerun-if-env-changed=ARFLAGS_aarch64-unknown-linux-gnu ARFLAGS_aarch64-unknown-linux-gnu = None cargo:rerun-if-env-changed=ARFLAGS_aarch64_unknown_linux_gnu ARFLAGS_aarch64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_ARFLAGS HOST_ARFLAGS = None cargo:rerun-if-env-changed=ARFLAGS ARFLAGS = None cargo:rerun-if-env-changed=RANLIB_aarch64-unknown-linux-gnu RANLIB_aarch64-unknown-linux-gnu = None cargo:rerun-if-env-changed=RANLIB_aarch64_unknown_linux_gnu RANLIB_aarch64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_RANLIB HOST_RANLIB = None cargo:rerun-if-env-changed=RANLIB RANLIB = None cargo:rerun-if-env-changed=RANLIBFLAGS_aarch64-unknown-linux-gnu RANLIBFLAGS_aarch64-unknown-linux-gnu = None cargo:rerun-if-env-changed=RANLIBFLAGS_aarch64_unknown_linux_gnu RANLIBFLAGS_aarch64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_RANLIBFLAGS HOST_RANLIBFLAGS = None cargo:rerun-if-env-changed=RANLIBFLAGS RANLIBFLAGS = None running cd "/tmp/cargo-installbsjyy2/release/build/openssl-sys-82ded2315f725a16/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="cc" RANLIB="ranlib" "perl" "./Configure" "--prefix=/tmp/cargo-installbsjyy2/release/build/openssl-sys-82ded2315f725a16/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-aarch64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" --- stderr Can't locate FindBin.pm in @INC (you may need to install the FindBin module) (@INC entries checked: /usr/local/lib64/perl5/5.38 /usr/local/share/perl5/5.38 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ./Configure line 15. BEGIN failed--compilation aborted at ./Configure line 15. thread 'main' panicked at /home/chris/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-src-300.2.3+3.2.1/src/lib.rs:611:9: Error configuring OpenSSL build: Command: cd "/tmp/cargo-installbsjyy2/release/build/openssl-sys-82ded2315f725a16/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="cc" RANLIB="ranlib" "perl" "./Configure" "--prefix=/tmp/cargo-installbsjyy2/release/build/openssl-sys-82ded2315f725a16/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-aarch64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" Exit status: exit status: 2 note: run withRUST_BACKTRACE=1` environment variable to display a backtrace

@znqi
Copy link
Author

znqi commented May 9, 2024

error: failed to run custom build command for openssl-sys v0.9.102

Caused by:
process didn't exit successfully: /tmp/cargo-installbsjyy2/release/build/openssl-sys-327281312bed1980/build-script-main (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=AARCH64_UNKNOWN_LINUX_GNU_OPENSSL_NO_VENDOR
AARCH64_UNKNOWN_LINUX_GNU_OPENSSL_NO_VENDOR unset
cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR
OPENSSL_NO_VENDOR unset
cargo:rerun-if-env-changed=CC_aarch64-unknown-linux-gnu
CC_aarch64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=CC_aarch64_unknown_linux_gnu
CC_aarch64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
CARGO_CFG_TARGET_FEATURE = Some("neon")
cargo:rerun-if-env-changed=CFLAGS_aarch64-unknown-linux-gnu
CFLAGS_aarch64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=CFLAGS_aarch64_unknown_linux_gnu
CFLAGS_aarch64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:rerun-if-env-changed=AR_aarch64-unknown-linux-gnu
AR_aarch64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=AR_aarch64_unknown_linux_gnu
AR_aarch64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_AR
HOST_AR = None
cargo:rerun-if-env-changed=AR
AR = None
cargo:rerun-if-env-changed=ARFLAGS_aarch64-unknown-linux-gnu
ARFLAGS_aarch64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=ARFLAGS_aarch64_unknown_linux_gnu
ARFLAGS_aarch64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_ARFLAGS
HOST_ARFLAGS = None
cargo:rerun-if-env-changed=ARFLAGS
ARFLAGS = None
cargo:rerun-if-env-changed=RANLIB_aarch64-unknown-linux-gnu
RANLIB_aarch64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=RANLIB_aarch64_unknown_linux_gnu
RANLIB_aarch64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_RANLIB
HOST_RANLIB = None
cargo:rerun-if-env-changed=RANLIB
RANLIB = None
cargo:rerun-if-env-changed=RANLIBFLAGS_aarch64-unknown-linux-gnu
RANLIBFLAGS_aarch64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=RANLIBFLAGS_aarch64_unknown_linux_gnu
RANLIBFLAGS_aarch64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_RANLIBFLAGS
HOST_RANLIBFLAGS = None
cargo:rerun-if-env-changed=RANLIBFLAGS
RANLIBFLAGS = None
running cd "/tmp/cargo-installbsjyy2/release/build/openssl-sys-82ded2315f725a16/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="cc" RANLIB="ranlib" "perl" "./Configure" "--prefix=/tmp/cargo-installbsjyy2/release/build/openssl-sys-82ded2315f725a16/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-aarch64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC"

--- stderr
Can't locate FindBin.pm in @inc (you may need to install the FindBin module) (@inc entries checked: /usr/local/lib64/perl5/5.38 /usr/local/share/perl5/5.38 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at ./Configure line 15.
BEGIN failed--compilation aborted at ./Configure line 15.
thread 'main' panicked at /home/chris/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-src-300.2.3+3.2.1/src/lib.rs:611:9:

Error configuring OpenSSL build:
Command: cd "/tmp/cargo-installbsjyy2/release/build/openssl-sys-82ded2315f725a16/out/openssl-build/build/src" && env -u CROSS_COMPILE AR="ar" CC="cc" RANLIB="ranlib" "perl" "./Configure" "--prefix=/tmp/cargo-installbsjyy2/release/build/openssl-sys-82ded2315f725a16/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-aarch64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC"
Exit status: exit status: 2

note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

@m8dotpie
Copy link

m8dotpie commented May 29, 2024

@znqi I think error is not directly related to the asahi. The error log indicates the missing perl core package. Did you install perl? Check here

@znqi
Copy link
Author

znqi commented May 29, 2024

@znqi I think error is not directly related to the asahi. The error log indicates the missing perl core package. Did you install perl? Check here

@m8dotpie thanks a lot!It‘s solved

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