Debian 12.1, cannot find libssl-dev
Good evening!
When running cargo build --release after following the prerequisites, I get "Failed to find OpenSSL development headers" after already having them installed at latest for Debian 12.1 XFCE
Greetings!
I've run into the same issue when running cargo build --release
Debian 12 (bookworm)
--- stderr
thread 'main' panicked at '
Header expansion error:
Error { kind: ToolExecError, message: "Command \"cc\" \"-O3\" \"-ffunction-sections\" \"-fdata-sections\" \"-fPIC\" \"-m64\" \"-I\" \"/usr/include\" \"-Wall\" \"-Wextra\" \"-E\" \"build/expando.c\" with args \"cc\" did not execute successfully (status code exit status: 1)." }
Failed to find OpenSSL development headers.
You can try fixing this setting the `OPENSSL_DIR` environment variable
pointing to your OpenSSL installation or installing OpenSSL headers package
specific to your distribution:
# On Ubuntu
sudo apt-get install libssl-dev
# On Arch Linux
sudo pacman -S openssl
# On Fedora
sudo dnf install openssl-devel
$ sudo apt-get install libssl-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libssl-dev is already the newest version (3.0.9-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hmm. I have not tried an install on Debian before, so could be some difference between (X)Ubuntu versus Debian...
As I don't have a machine with XFCE active at the moment, I have not used this plugin for some time, and will not have spare capacity to investigate issues here.
The OpenSSL package is needed for the RSS crate, which in turn uses the OpenSSL crate. As the OpenSSL crate still notes the same install step, my guess would be that the issues comes some version-mismatch.
If this is the case, it might be solved now that I have merged the dependabot PRs, including one about OpenSSL.
If that doesn't work, you can try to set the OPENSSL_DIR environment variable to point towards your install of OpenSSL