在linux centos7 下面安装nginx执行到./configure --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/local/src/pcre-8.35
这步发生的错误
报错:
Error: libselinux conflicts with fakesystemd-1-17.el7.centos.noarch
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
fakesystemd-1-17.el7.centos.noarch has installed conflicts systemd: fakesystemd-1-17.el7.centos.noarch
大致意思是libselinux与fakesystemd-1-17.el7.centos.noarch冲突您可以尝试使用–skip-broken来解决问题。
解决办法依次执行以下命令
yum swap -y fakesystemd systemd && yum clean all
yum update -y && yum clean all
如果还不能解决请移步原文地址:https://qiita.com/trewanek/items/ed4a636423e300600ea1