问题:
在编译的时候,系统其实已经安装了systemd-libs软件包,但是报这个错误,网上好多说的是ubuntu的解决方式,centos的安装不一样。
configure: error: Package requirements (libsystemd >= 209) were not met:
No package 'libsystemd' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables SYSTEMD_CFLAGS
and SYSTEMD_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
解决方式:
安装centos上边的软件版本
yum -y install systemd-devel