首页 文章

安装contextBroker

提问于
浏览
1

我在自己的服务器上安装contextBroker时遇到了一些问题 . 我有一个CentOS安装 . 我试图用yum安装contextBroker . 我按照(https://stackoverflow.com/a/24510985/4953537)的说明设置了回购

尝试安装时的输出:

yum install contextBroker
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: ftp.plusline.de
 * epel: mirror.proserve.nl
 * extras: mirror.softaculous.com
 * updates: mirror.netcologne.de
No package contextBroker available.
Error: Nothing to do

yum repolist的输出

yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.plusline.de
 * epel: mirror.proserve.nl
 * extras: mirror.softaculous.com
 * updates: mirror.netcologne.de
repo id                      repo name                                                 status
base                         CentOS-6 - Base                                           4926
epel                         Extra Packages for Enterprise Linux 6 - i386              9467
extras                       CentOS-6 - Extras                                           34
mongodb                      MongoDB Repository                                         269
testbed-fi-ware              Fiware Repository                                          108
updates                      CentOS-6 - Updates                                         864
repolist: 15668

我在这里失踪了什么?

更新:

cat /etc/yum.repos.d/testbed-fi-ware.repo
[testbed-fi-ware]
name=Fiware Repository
baseurl=http://repositories.testbed.fi-ware.org/repo/rpm/x86_64/
gpgcheck=0
enabled=1

“rpm -qa | grep contextBroker”不提供任何输出

更新:

我尝试手动安装软件包,并安装了https://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/Publish/Subscribe_Broker_-Orion_Context_Broker-_Installation_and_Administration_Guide#Installing上列出的所有依赖项

The contextBroker package (mandatory) depends on the following packages: boost-filesystem, boost-thread, libmicrohttpd (new requirement in 0.8.0), logrotate (new requirement in 0.13.0), libcurl (new requirement in 0.14.1) and boost-regex (new requirement in 0.22.0).

仍然,当安装RPM包(sudo rpm -i http://repositories.testbed.fiware.org/repo/rpm/x86_64/contextBroker-0.22.0-1.x86_64.rpm)时,我得到:

Failed dependencies:
        ld-linux-x86-64.so.2()(64bit) is needed by contextBroker-0.22.0-1.x86_64
        ld-linux-x86-64.so.2(GLIBC_2.3)(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libboost_filesystem-mt.so.5()(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libboost_regex-mt.so.5()(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libboost_system-mt.so.5()(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libboost_thread-mt.so.5()(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libc.so.6()(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libc.so.6(GLIBC_2.2.5)(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libc.so.6(GLIBC_2.3.2)(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libc.so.6(GLIBC_2.3.4)(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libcurl.so.4()(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libgcc_s.so.1()(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libgcc_s.so.1(GCC_3.0)(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libm.so.6()(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libm.so.6(GLIBC_2.2.5)(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libmicrohttpd.so.10()(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libpthread.so.0()(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libpthread.so.0(GLIBC_2.2.5)(64bit) is needed by contextBroker-0.22.0-1.x86_64
        librt.so.1()(64bit) is needed by contextBroker-0.22.0-1.x86_64
        librt.so.1(GLIBC_2.2.5)(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libstdc++.so.6()(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libstdc++.so.6(CXXABI_1.3)(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libstdc++.so.6(GLIBCXX_3.4)(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libstdc++.so.6(GLIBCXX_3.4.10)(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libstdc++.so.6(GLIBCXX_3.4.11)(64bit) is needed by contextBroker-0.22.0-1.x86_64
        libstdc++.so.6(GLIBCXX_3.4.9)(64bit) is needed by contextBroker-0.22.0-1.x86_64

为什么我会这样?

2 回答

  • 0

    有时yum不会检测存储库中的新包 . 在这种情况下,我发现以下命令用于帮助:

    yum clean all
    

    接下来,再试一次

    yum install contextBroker
    
  • 0

    另一种方法是使用 rpm 命令直接从存储库安装,例如:

    sudo rpm -i http://repositories.testbed.fiware.org/repo/rpm/x86_64/contextBroker-0.22.0-1.x86_64.rpm
    

    但是,在这种情况下,如果某些包依赖项失败,则需要手动处理它 .

    EDIT :在依赖项问题的情况下,您可以使用以下内容来了解哪个包提供了每个依赖项:

    yum whatprovides libboost_filesystem-mt.*
    yum whatprovides libstdc++.so.6
    

    但是,不确定这是否适用于你的情况,因为在最初的 yum install contextBroker 失败让我想到如果你的环境中的yum工作不正常...

相关问题