From da6d358f9fee7cb7302f082f179c45f581e681d3 Mon Sep 17 00:00:00 2001 From: Timofey Turenko Date: Tue, 29 Jan 2019 14:14:46 +0200 Subject: [PATCH] add systemd-dev package to the build env --- BUILD/install_build_deps.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/BUILD/install_build_deps.sh b/BUILD/install_build_deps.sh index df67add78..e64fa50b6 100755 --- a/BUILD/install_build_deps.sh +++ b/BUILD/install_build_deps.sh @@ -18,6 +18,11 @@ then uuid-dev libsqlite3-dev liblzma-dev libpam0g-dev pkg-config \ libedit-dev + # One of these will work, older systems use libsystemd-daemon-dev + sudo apt-get install -y libsystemd-dev || \ + sudo apt-get install -y libsystemd-daemon-dev + + ## separatelibgnutls installation process for Ubuntu Trusty cat /etc/*release | grep -E "Trusty|wheezy" if [ $? == 0 ] @@ -68,9 +73,14 @@ else sqlite sqlite-devel pkgconfig lua lua-devel rpm-build createrepo yum-utils \ gnutls-devel libgcrypt-devel pam-devel + # Attempt to install libasan, it'll only work on CentOS 7 sudo yum install -y --nogpgcheck libasan + + # Attempt to install systemd-devel, doesn't work on CentOS 6 + sudo yum install -y systemd-devel + cat /etc/redhat-release | grep "release 5" if [ $? == 0 ] then