servicer-labs / servicer

A CLI to simplify service management on systemd
https://servicer.dev
MIT License
427 stars 9 forks source link

arm64 build failure: could not find system library 'openssl' required by the 'openssl-sys' crate #7

Closed secretshardul closed 1 year ago

secretshardul commented 1 year ago

https://github.com/servicer-labs/servicer/actions/runs/6064765510/job/16453515976#step:4:724

A package update introduced a dependency on openssl-sys. This fails to build on the Github action for an arm64 release.

   Compiling openssl-sys v0.9.92
   Compiling futures-util v0.3.28
error: failed to run custom build command for `openssl-sys v0.9.92`

Caused by:
  process didn't exit successfully: `/target/release/build/openssl-sys-39820fd7b4b38d98/build-script-main` (exit status: 101)

--- 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
  No package 'openssl' 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 = aarch64-unknown-linux-gnu
  openssl-sys = 0.9.92
secretshardul commented 1 year ago

Fixed by uninstalling checker crate. This one was mistakenly installed.