检查-mk 安装。失败的依赖项(Mariadb、Python-reportlab、libgsf)
Check-mk installation. Failed dependencies (Mariadb, Python-reportlab, libgsf)
我在 amazon-ec2 上安装 check_mk 时遇到问题。
我已经成功安装了 nagios 核心,我现在尝试通过 rpm 安装 check_mk 插件:
rpm -ivh check-mk-raw-1.2.8p17-el7-40.x86_64.rpm
Rpm 停止和 return 安装所需的依赖项列表。我安装了 Most 个,但其余部分有问题。
error: Failed dependencies:
mariadb-server is needed by check-mk-raw-1.2.8p17-el7-40.x86_64
python-reportlab is needed by check-mk-raw-1.2.8p17-el7-40.x86_64
libgsf is needed by check-mk-raw-1.2.8p17-el7-40.x86_64
Mariadb
我按照网站的说明进行操作 https://downloads.mariadb.org/mariadb/repositories/
接下来我在 /etc/yum.repos.d/ 目录中创建了 MariaDB.repo 文件,内容为:
# MariaDB 10.1 RedHat repository list - created 2017-02-28 11:57 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/rhel7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
之后我尝试通过命令安装 MariaDB:
sudo yum install MariaDB-server MariaDB-client
结果我得到了后续错误
Error: Package: MariaDB-server-10.1.21-1.el7.centos.x86_64 (mariadb)
Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)
Error: Package: MariaDB-server-10.1.21-1.el7.centos.x86_64 (mariadb)
Requires: libsystemd.so.0()(64bit)
所以我尝试安装 systemd,结果我得到:
configure: error: *** libmount support required but libraries not found
当我尝试通过 yum 安装它时,我收到:
Package libmount-2.23.2-26.27.amzn1.x86_64 already installed and latest version
Nothing to do
Python-reportlab
rpm -Uvh python-reportlab-3.1.8-5.fc23.x86_64.rpm
warning: python-reportlab-3.1.8-5.fc23.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 34ec9cba: NOKEY
error: Failed dependencies:
python-pillow is needed by python-reportlab-3.1.8-5.fc23.x86_64
rpm -Uvh python-pillow-3.0.0-1.fc23.i686.rpm
warning: python-pillow-3.0.0-1.fc23.i686.rpm: Header V3 RSA/SHA256 Signature, key ID 34ec9cba: NOKEY
error: Failed dependencies:
libc.so.6 is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.0) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.1) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.1.3) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.11) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.3) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.3.4) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.4) is needed by python-pillow-3.0.0-1.fc23.i686
libfreetype.so.6 is needed by python-pillow-3.0.0-1.fc23.i686
libjpeg.so.62 is needed by python-pillow-3.0.0-1.fc23.i686
libjpeg.so.62(LIBJPEG_6.2) is needed by python-pillow-3.0.0-1.fc23.i686
liblcms2.so.2 is needed by python-pillow-3.0.0-1.fc23.i686
libopenjp2.so.7 is needed by python-pillow-3.0.0-1.fc23.i686
libpthread.so.0 is needed by python-pillow-3.0.0-1.fc23.i686
libpthread.so.0(GLIBC_2.0) is needed by python-pillow-3.0.0-1.fc23.i686
libpthread.so.0(GLIBC_2.1) is needed by python-pillow-3.0.0-1.fc23.i686
libpthread.so.0(GLIBC_2.2) is needed by python-pillow-3.0.0-1.fc23.i686
libpthread.so.0(GLIBC_2.3.2) is needed by python-pillow-3.0.0-1.fc23.i686
libpython2.7.so.1.0 is needed by python-pillow-3.0.0-1.fc23.i686
libtiff.so.5 is needed by python-pillow-3.0.0-1.fc23.i686
libtiff.so.5(LIBTIFF_4.0) is needed by python-pillow-3.0.0-1.fc23.i686
libwebp.so.5 is needed by python-pillow-3.0.0-1.fc23.i686
libwebpdemux.so.1 is needed by python-pillow-3.0.0-1.fc23.i686
libwebpmux.so.1 is needed by python-pillow-3.0.0-1.fc23.i686
libz.so.1 is needed by python-pillow-3.0.0-1.fc23.i686
rpm -Uvh glibc-2.24-3.fc25.i686.rpm
warning: glibc-2.24-3.fc25.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fdb19c98: NOKEY
error: Failed dependencies:
glibc-common = 2.24-3.fc25 is needed by glibc-2.24-3.fc25.i686
glibc-langpack = 2.24-3.fc25 is needed by glibc-2.24-3.fc25.i686
rpm -ivh glibc-common-2.25-1.fc26.x86_64.rpm
warning: glibc-common-2.25-1.fc26.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 64dab85d: NOKEY
error: Failed dependencies:
/usr/bin/bash is needed by glibc-common-2.25-1.fc26.x86_64
glibc = 2.25-1.fc26 is needed by glibc-common-2.25-1.fc26.x86_64
libgsf
我成功地从源代码 (libgsf-1.14.0) 安装了它,但是当我尝试使用 rpm check-mk 安装命令时,我在失败的依赖项中看到它。我能以某种方式手动将它添加到 rpm 列表吗?
如有任何线索,我将不胜感激。纠结太久没有进展。
os-发布:
NAME="Amazon Linux AMI"
VERSION="2016.09"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2016.09"
PRETTY_NAME="Amazon Linux AMI 2016.09"
Architecture: x86_64
28.02.2017 编辑:
我成功安装了 MariaDB:
Package MariaDB-server-10.1.21-1.el6.x86_64 already installed and latest version
Package MariaDB-client-10.1.21-1.el6.x86_64 already installed and latest version
但我仍然遇到失败的依赖关系:
rpm -Uvh check-mk-raw-1.2.8p17-el7-40.x86_64.rpm
error: Failed dependencies:
mariadb-server is needed by check-mk-raw-1.2.8p17-el7-40.x86_64
python-reportlab is needed by check-mk-raw-1.2.8p17-el7-40.x86_64
libgsf is needed by check-mk-raw-1.2.8p17-el7-40.x86_64 how resolve it?
01.03.2017 编辑:
我终于安装了 rhel6 版本,现在可以使用了。
我想我可以帮助 MariaDB,今天我遇到了同样的问题。
我正在尝试安装最新的 MariaDB 10.1,但遇到了与您相同的错误。 Docker 社区前段时间遇到过这个问题,他们刚刚将 RHEL 7.1 升级到更新版本,所有问题都消失了。
众所周知,亚马逊 Linux 没那么简单。
所以我按照这些步骤安装了 MariaDB 5.5(对我来说没问题)
用这个内容修改你的MariaDB.repo文件(实际上,只有baseurl改变):
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
清理存储库元数据
sudo yum clean metadata
最后,尝试安装MariaDB服务器和客户端
sudo yum install -y MariaDB-server MariaDB-client
它对我来说效果很好。祝你好运。
我在 amazon-ec2 上安装 check_mk 时遇到问题。
我已经成功安装了 nagios 核心,我现在尝试通过 rpm 安装 check_mk 插件:
rpm -ivh check-mk-raw-1.2.8p17-el7-40.x86_64.rpm
Rpm 停止和 return 安装所需的依赖项列表。我安装了 Most 个,但其余部分有问题。
error: Failed dependencies:
mariadb-server is needed by check-mk-raw-1.2.8p17-el7-40.x86_64
python-reportlab is needed by check-mk-raw-1.2.8p17-el7-40.x86_64
libgsf is needed by check-mk-raw-1.2.8p17-el7-40.x86_64
Mariadb
我按照网站的说明进行操作 https://downloads.mariadb.org/mariadb/repositories/
接下来我在 /etc/yum.repos.d/ 目录中创建了 MariaDB.repo 文件,内容为:
# MariaDB 10.1 RedHat repository list - created 2017-02-28 11:57 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/rhel7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
之后我尝试通过命令安装 MariaDB:
sudo yum install MariaDB-server MariaDB-client
结果我得到了后续错误
Error: Package: MariaDB-server-10.1.21-1.el7.centos.x86_64 (mariadb)
Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)
Error: Package: MariaDB-server-10.1.21-1.el7.centos.x86_64 (mariadb)
Requires: libsystemd.so.0()(64bit)
所以我尝试安装 systemd,结果我得到:
configure: error: *** libmount support required but libraries not found
当我尝试通过 yum 安装它时,我收到:
Package libmount-2.23.2-26.27.amzn1.x86_64 already installed and latest version
Nothing to do
Python-reportlab
rpm -Uvh python-reportlab-3.1.8-5.fc23.x86_64.rpm
warning: python-reportlab-3.1.8-5.fc23.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 34ec9cba: NOKEY
error: Failed dependencies:
python-pillow is needed by python-reportlab-3.1.8-5.fc23.x86_64
rpm -Uvh python-pillow-3.0.0-1.fc23.i686.rpm
warning: python-pillow-3.0.0-1.fc23.i686.rpm: Header V3 RSA/SHA256 Signature, key ID 34ec9cba: NOKEY
error: Failed dependencies:
libc.so.6 is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.0) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.1) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.1.3) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.11) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.3) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.3.4) is needed by python-pillow-3.0.0-1.fc23.i686
libc.so.6(GLIBC_2.4) is needed by python-pillow-3.0.0-1.fc23.i686
libfreetype.so.6 is needed by python-pillow-3.0.0-1.fc23.i686
libjpeg.so.62 is needed by python-pillow-3.0.0-1.fc23.i686
libjpeg.so.62(LIBJPEG_6.2) is needed by python-pillow-3.0.0-1.fc23.i686
liblcms2.so.2 is needed by python-pillow-3.0.0-1.fc23.i686
libopenjp2.so.7 is needed by python-pillow-3.0.0-1.fc23.i686
libpthread.so.0 is needed by python-pillow-3.0.0-1.fc23.i686
libpthread.so.0(GLIBC_2.0) is needed by python-pillow-3.0.0-1.fc23.i686
libpthread.so.0(GLIBC_2.1) is needed by python-pillow-3.0.0-1.fc23.i686
libpthread.so.0(GLIBC_2.2) is needed by python-pillow-3.0.0-1.fc23.i686
libpthread.so.0(GLIBC_2.3.2) is needed by python-pillow-3.0.0-1.fc23.i686
libpython2.7.so.1.0 is needed by python-pillow-3.0.0-1.fc23.i686
libtiff.so.5 is needed by python-pillow-3.0.0-1.fc23.i686
libtiff.so.5(LIBTIFF_4.0) is needed by python-pillow-3.0.0-1.fc23.i686
libwebp.so.5 is needed by python-pillow-3.0.0-1.fc23.i686
libwebpdemux.so.1 is needed by python-pillow-3.0.0-1.fc23.i686
libwebpmux.so.1 is needed by python-pillow-3.0.0-1.fc23.i686
libz.so.1 is needed by python-pillow-3.0.0-1.fc23.i686
rpm -Uvh glibc-2.24-3.fc25.i686.rpm
warning: glibc-2.24-3.fc25.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fdb19c98: NOKEY
error: Failed dependencies:
glibc-common = 2.24-3.fc25 is needed by glibc-2.24-3.fc25.i686
glibc-langpack = 2.24-3.fc25 is needed by glibc-2.24-3.fc25.i686
rpm -ivh glibc-common-2.25-1.fc26.x86_64.rpm
warning: glibc-common-2.25-1.fc26.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 64dab85d: NOKEY
error: Failed dependencies:
/usr/bin/bash is needed by glibc-common-2.25-1.fc26.x86_64
glibc = 2.25-1.fc26 is needed by glibc-common-2.25-1.fc26.x86_64
libgsf
我成功地从源代码 (libgsf-1.14.0) 安装了它,但是当我尝试使用 rpm check-mk 安装命令时,我在失败的依赖项中看到它。我能以某种方式手动将它添加到 rpm 列表吗?
如有任何线索,我将不胜感激。纠结太久没有进展。
os-发布:
NAME="Amazon Linux AMI"
VERSION="2016.09"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2016.09"
PRETTY_NAME="Amazon Linux AMI 2016.09"
Architecture: x86_64
28.02.2017 编辑:
我成功安装了 MariaDB:
Package MariaDB-server-10.1.21-1.el6.x86_64 already installed and latest version
Package MariaDB-client-10.1.21-1.el6.x86_64 already installed and latest version
但我仍然遇到失败的依赖关系:
rpm -Uvh check-mk-raw-1.2.8p17-el7-40.x86_64.rpm
error: Failed dependencies:
mariadb-server is needed by check-mk-raw-1.2.8p17-el7-40.x86_64
python-reportlab is needed by check-mk-raw-1.2.8p17-el7-40.x86_64
libgsf is needed by check-mk-raw-1.2.8p17-el7-40.x86_64 how resolve it?
01.03.2017 编辑:
我终于安装了 rhel6 版本,现在可以使用了。
我想我可以帮助 MariaDB,今天我遇到了同样的问题。
我正在尝试安装最新的 MariaDB 10.1,但遇到了与您相同的错误。 Docker 社区前段时间遇到过这个问题,他们刚刚将 RHEL 7.1 升级到更新版本,所有问题都消失了。
众所周知,亚马逊 Linux 没那么简单。
所以我按照这些步骤安装了 MariaDB 5.5(对我来说没问题)
用这个内容修改你的MariaDB.repo文件(实际上,只有baseurl改变):
[mariadb] name = MariaDB baseurl = http://yum.mariadb.org/5.5/centos6-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
清理存储库元数据
sudo yum clean metadata
最后,尝试安装MariaDB服务器和客户端
sudo yum install -y MariaDB-server MariaDB-client
它对我来说效果很好。祝你好运。