我所有人都在使用CentOs7,并且安装了contextBroker会遇到一些麻烦。我跟着安装了我的yum repo中添加了Fiware Repo。
以下是我的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,如果他/她做了我怎样才能解决这个问题?
答案 0 :(得分:1)
如你所说,目前没有官方支持CentOS 7。但是,您可以执行以下操作以在CentOS 7系统中使用contextBroker获取正在运行的二进制文件(实际上,这是基于build from sources procedure documented in the Orion manual的“快速且脏”的收据):
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
即可安装。