首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装contextBroker

安装contextBroker
EN

Stack Overflow用户
提问于 2015-06-03 18:23:17
回答 2查看 871关注 0票数 1

我在自己的服务器上安装contextBroker时遇到了一些问题。我安装了一个CentOS。我正在尝试用yum安装contextBroker。我已按照(https://stackoverflow.com/a/24510985/4953537)中的说明设置了存储库

尝试安装时的输出:

代码语言:javascript
复制
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的输出

代码语言:javascript
复制
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

这里我漏掉了什么?

更新:

代码语言:javascript
复制
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上列出的所有依赖项

代码语言:javascript
复制
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)时,我得到:

代码语言:javascript
复制
 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

为什么我会得到这个?

EN

回答 2

Stack Overflow用户

发布于 2015-06-04 00:12:40

有时,yum不会在存储库中检测到新的包。在这种情况下,我发现可以使用以下命令来帮助您:

代码语言:javascript
复制
yum clean all

接下来,再试一次

代码语言:javascript
复制
yum install contextBroker
票数 0
EN

Stack Overflow用户

发布于 2015-06-05 03:15:37

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

代码语言:javascript
复制
sudo rpm -i http://repositories.testbed.fiware.org/repo/rpm/x86_64/contextBroker-0.22.0-1.x86_64.rpm

然而,在这种情况下,如果某些包依赖失败,您将需要手动处理它。

编辑:在依赖关系出现问题的情况下,您可以使用以下命令来了解哪个包提供了每个依赖关系:

代码语言:javascript
复制
yum whatprovides libboost_filesystem-mt.*
yum whatprovides libstdc++.so.6

但是,不确定这在您的情况下是否有效,因为一开始yum install contextBroker中的失败让我认为如果yum在您的环境中不能很好地工作……

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30617387

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档