rust-cross / rust-musl-cross

Docker images for compiling static Rust binaries using musl-cross
MIT License
617 stars 68 forks source link

build with target x86_64-unknown-linux-musl, got error above #94

Closed ipconfiger closed 1 year ago

ipconfiger commented 1 year ago

run pkg_config fail: "Could not run \"pkg-config\" \"--libs\" \"--cflags\" \"openssl\"\nThe pkg-config command could not be found.\n\nMost likely, you need to install a pkg-config package for your OS.\nTry apt install pkg-config, or yum install pkg-config,\nor pkg install pkg-config, or apk add pkgconfig depending on your distribution.\n\nIf you've already installed it, ensure the pkg-config command is one of the\ndirectories in the PATH environment variable.\n\nIf you did not expect this build to link to a pre-installed system library,\nthen check documentation of the openssl-sys crate for an option to\nbuild the library from source, or disable features or dependencies\nthat require pkg-config."

messense commented 1 year ago

https://docs.rs/openssl/latest/openssl/#vendored