android-rs-glue icon indicating copy to clipboard operation
android-rs-glue copied to clipboard

Installing cargo-apk crate results in `failed to run custom build command for `openssl v0.9.24``

Open agorgl opened this issue 5 years ago • 3 comments

Using rust stable installed from rustup today on a fully updated Arch Linux system when trying to cargo install cargo-apk, gives:

error: failed to run custom build command for `openssl v0.9.24`
process didn't exit successfully: `/tmp/cargo-installw66uL0/release/build/openssl-700208eb71c8ae94/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to detect OpenSSL version', /home/theartist/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.9.24/build.rs:16:14
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-apk v0.4.0`, intermediate artifacts can be found at `/tmp/cargo-installw66uL0`

Caused by:
  build failed

agorgl avatar Oct 05 '18 01:10 agorgl

Check https://github.com/sfackler/rust-openssl#linux - do you have the correct version of system OpenSSL installed?

ozkriff avatar Oct 05 '18 13:10 ozkriff

Yep, openssl version gives: OpenSSL 1.1.1 11 Sep 2018. The problem resides with version 0.4.0 in crates.io . I built it from the current master and it works good, it would be nice if you updated the repository package with the latest version!

agorgl avatar Oct 06 '18 10:10 agorgl

This is related to #221

philip-alldredge avatar Jul 30 '19 22:07 philip-alldredge