For CentOS 7 which already install with following packages (p.s. YAJL installed from CentOS 8 due to too old from CentOS 7):
yum install -y \
autoconf \
automake \
cmake \
gcc \
gettext \
glibc-static \
libcap-devel \
libseccomp-devel \
libtool \
make \
systemd-devel
wget http://mirror.centos.org/centos/8/AppStream/x86_64/os/Packages/yajl-2.1.0-10.el8.x86_64.rpm
wget http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/yajl-devel-2.1.0-10.el8.x86_64.rpm
rpm -iv yajl*.rpm
After that try to compile crun with:
git clone https://github.com/containers/crun.git
cd crun
./autogen.sh
./configure
But result with following error message:
checking systemd/sd-bus.h usability... no
checking systemd/sd-bus.h presence... no
checking for systemd/sd-bus.h... no
configure: error: *** Missing libsystemd headers
P.S. other OS such as CentOS 8 or Fedora 32 or Debian 10 or Ubuntu 18.04/19.10/20.04 are all working fine ;-)
Understand that missing systemd/sd-bus.h due to legacy systemd 219 (see systemd/pystemd#4); BTW may I confirm:
- Do crun support CentOS/RHEL 7?
- Beside upgrade YAJL from CentOS 7 2.0.4 to CentOS 8 2.1.0, any else suggested workaround for YAJL?
- Beside upgrade systemd to 231 with https://copr.fedorainfracloud.org/coprs/jsynacek/systemd-backports-for-centos-7/, shall I compile crun with
./configure --disable-systemd?
- Shall we automatically skip and silent error message for missing
systemd/sd-bus.h and so compile without it if platform not supported?
For CentOS 7 which already install with following packages (p.s. YAJL installed from CentOS 8 due to too old from CentOS 7):
After that try to compile crun with:
But result with following error message:
P.S. other OS such as CentOS 8 or Fedora 32 or Debian 10 or Ubuntu 18.04/19.10/20.04 are all working fine ;-)
Understand that missing
systemd/sd-bus.hdue to legacy systemd 219 (see systemd/pystemd#4); BTW may I confirm:./configure --disable-systemd?systemd/sd-bus.hand so compile without it if platform not supported?