systemd / systemd-netlogd

Forwards messages from the journal to other hosts over the network using syslog format RFC 5424 and RFC 3164
GNU General Public License v2.0
69 stars 25 forks source link

CMakeDependency('OpenSSL', env, dict(kwargs, modules=['OpenSSL::Crypto', 'OpenSSL::SSL'])) / README.md needs a tweak #114

Open sscotter opened 2 months ago

sscotter commented 2 months ago

Hi,

When bulidling on a Debian 12 machine following the instructions in the README.md ...

sudo apt install build-essential gperf libcap-dev libsystemd-dev pkg-config meson python3-sphinx
make
sudo make install 

... I get the following error ...

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mesonbuild/dependencies/detect.py", line 113, in find_external_dependency
    d = c()
        ^^^
  File "/usr/lib/python3/dist-packages/mesonbuild/dependencies/misc.py", line 709, in <lambda>
    cmake_class=lambda name, env, kwargs: CMakeDependency('OpenSSL', env, dict(kwargs, modules=['OpenSSL::Crypto', 'OpenSSL::SSL'])),
                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/mesonbuild/dependencies/cmake.py", line 127, in __init__
    raise DependencyException(msg)
mesonbuild.dependencies.base.DependencyException: CMake binary for machine 1 not found. Giving up.

Installing the libssl-dev package allows the packages to build successfully.

TL;DR - tweak README.md from ...

sudo apt install build-essential gperf libcap-dev libsystemd-dev pkg-config meson python3-sphinx

... to ....

sudo apt install build-essential gperf libcap-dev libsystemd-dev pkg-config meson python3-sphinx libssl-dev