Open MikeSpreitzer opened 3 years ago
FYI, in the ubuntu:21.04 container:
root@dd80ba578ce3:~/git/src/github.com/puiterwijk/uefi-eventlog-rs# rustc --version
rustc 1.50.0
root@dd80ba578ce3:~/git/src/github.com/puiterwijk/uefi-eventlog-rs#
root@dd80ba578ce3:~/git/src/github.com/puiterwijk/uefi-eventlog-rs# dpkg -l | grep ssl
ii libssl1.1:amd64 1.1.1j-1ubuntu3 amd64 Secure Sockets Layer toolkit - shared libraries
ii libzstd1:amd64 1.4.8+dfsg-2build1 amd64 fast lossless compression algorithm
ii openssl 1.1.1j-1ubuntu3 amd64 Secure Sockets Layer toolkit - cryptographic utility
root@dd80ba578ce3:~/git/src/github.com/puiterwijk/uefi-eventlog-rs#
So installed libssl-dev on Ubuntu, and that still led to cargo build
failing --- but now it gives me the next clue:
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`.
My fedora:34 container already had pkg-config by the time cargo failed; adding dnf install openssl-devel
was enough to enable cargo build
to succeed.
In a fresh ubuntu:21.04 container, I installed rust and git, cloned this repo, and tried
cargo build
. It failed as follows.I also tried a fresh fedora:34 container. The build failed like this: