无法在 CentOs7 上通过 yum 安装 contextBroker

not able to install contextBroker via yum on CentOs7

大家好,我正在使用 CentOs7,在安装 contextBroker 时遇到了一些麻烦。我按照安装在我的 yum 仓库中添加了 Fiware 仓库。

这是我的 yum 存储库列表:

repo id               repo name                                           status
base/7/x86_64         CentOS-7 - Base                                      9,007
epel/x86_64           Extra Packages for Enterprise Linux 7 - x86_64      10,368
extras/7/x86_64       CentOS-7 - Extras                                      356
fiware                Fiware Repository                                      176
mongodb               MongoDB repo                                           279
updates/7/x86_64      CentOS-7 - Updates                                   2,070
repolist: 22,256

我总是收到一条错误消息,指出有一些失败的依赖项

libboost_filesystem-mt.so.5()(64bit) is needed by contextBroker-0.15.0-1.x86_64
libboost_system-mt.so.5()(64bit) is needed by contextBroker-0.15.0-1.x86_64
libboost_thread-mt.so.5()(64bit) is needed by contextBroker-0.15.0-1.x86_64

这是我的 fiware.repo

配置文件的输出
[fiware]
name=Fiware Repository
#baseurl=http://repositories.lab.fiware.org/repo/rpm/$releasever
baseurl=http://repositories.lab.fiware.org/repo/rpm/x86_64/
gpgcheck=0
enabled=1

我在 this link 下找到了一个可能的解决方案,但遗憾的是这不起作用。在评论部分有一个条目说 CentOs7 有问题,但这并不能解决我的问题

顺便说一句:这也不起作用 Boost-Libboost is needed in Centos7 (ContexBroker)

所以我的问题是,是否有人通过 yum 在 CentOs7 上安装了 contextBroker,如果 he/she 做了,我该如何解决这个问题?

正如您所说,目前没有对 CentOS 7 的官方支持。但是,您可以执行以下操作以在 CentOS 7 系统中使用 contextBroker 获取 运行 二进制文件(实际上,这是基于 build from sources procedure documented in the Orion manual 的 "quick and dirty" 收据):

sudo yum install git wget
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -i epel-release-latest-7.noarch.rpm
sudo yum install make cmake gcc-c++ scons
sudo yum install boost-devel libcurl-devel gnutls-devel libgcrypt-devel libuuid-devel
# Install mongoDB driver as described in the documentation
# Install rapidjson as described in the documentation
# Install libmicrohttpd as described in the documentation
mkdir ~/src
cd ~/src
git clone https://github.com/telefonicaid/fiware-orion.git
cd fiware-orion
# optionally, you can set an specific version with a checkout command
# e.g. 'git checkout 1.2.1'. Otherwise, you will build the latest
# code from develop branch
make
BUILD_RELEASE/src/app/contextBroker/contextBroker --version

此外,您可以使用以下方法生成RPM文件:

sudo yum install rpm-build
make rpm
# The RPM is generated in rpm/RPMS/x86_64/contextBroker-1.2.0_next-dev.x86_64.rpm
# (version number may vary)

该 RPM 文件应该可以在其他 CentOS 7 系统中运行,您可以使用 sudo yum install /path/to/contextBroker-1.2.0_next-dev.x86_64.rpm.

安装