检查-mk安装.依赖项失败(Mariadb,Python-reportlab,libgsf) [英] Check-mk installation. Failed dependencies (Mariadb, Python-reportlab, libgsf)

查看:347
本文介绍了检查-mk安装.依赖项失败(Mariadb,Python-reportlab,libgsf)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Amazon EC2上安装check_mk时遇到问题.

I have problem with installation check_mk on amazon-ec2.

我已经成功安装了nagios core,现在尝试通过rpm安装check_mk插件:

I have already installed nagios core successfully and I try now install check_mk plugin by rpm:

rpm -ivh check-mk-raw-1.2.8p17-el7-40.x86_64.rpm

RPM停止并返回安装所需依赖项的列表.其中大多数我安装成功,但其余部分却有问题.

Rpm stop and return list of needed dependencies for installation. Most of them I installed successfully but I have problem with rest of it.

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文件,内容为:

Next I created MariaDB.repo file in /etc/yum.repos.d/ directory with content:

# 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:

After that I tried install MariaDB by command:

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,结果得到了:

So I tried install systemd, in result I got:

configure: error: *** libmount support required but libraries not found

当我尝试通过yum安装它时,我收到了:

when I tried install it by yum I received:

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列表吗?

I installed it from source (libgsf-1.14.0) successfully, nevertheless when I trying use rpm check-mk installation command I see it in failed dependencies. Can I somehow add it to rpm list manually?

我将不胜感激.我为此奋斗了很长时间而没有进步.

I will be grateful for any clue. I struggle with it too long without progress.

操作系统版本:

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

28.02.2017

我成功安装了MariaDB:

Successfully I installed 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?

2017年3月1日

最后,我为rhel6安装了版本,并且现在可以正常使用了.

Finally I installed version for rhel6 and it's working now.

推荐答案

我认为我可以为 MariaDB 提供帮助,今天遇到了同样的问题.

I think I can help with MariaDB, today I encountered with the same issue.

我正在尝试安装最新的 MariaDB 10.1 ,但在您那里却遇到了同样的错误. Docker 社区在不久前遇到了这个问题,他们刚刚将 RHEL 7.1 升级到了新版本,所有问题都消失了.

I was trying to install the latest MariaDB 10.1 and I got the same error as you there. Docker community had this issue some time ago and they just upgraded RHEL 7.1 to newer version and all the problems were gone.

众所周知,使用 Amazon Linux 并非如此简单.

As we all know, with Amazon Linux it's not so simple.

所以我按照这些步骤操作,我能够安装 MariaDB 5.5 (出于我的目的,可以)

So I followed these steps and I was able to install MariaDB 5.5 (for my purposes it was OK)

  • 使用以下内容修改您的 MariaDB.repo 文件(实际上,只有 baseurl 更改):

  • Modify your MariaDB.repo file with this content (actually, only baseurl changes):

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

  • 清理存储库元数据

  • Clean repos metadata

    sudo yum clean metadata 
    

  • 最后,尝试安装 MariaDB 服务器和客户端

  • Finally, try to install MariaDB server and client

    sudo yum install -y MariaDB-server MariaDB-client
    

  • 对我来说效果很好.祝你好运.

    It worked very well for me. Good luck.

    这篇关于检查-mk安装.依赖项失败(Mariadb,Python-reportlab,libgsf)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆