2016-07-27 100 views
2

嗨,大家好,我正在使用CentOs7,並在安裝contextBroker時遇到了一些麻煩。我跟隨安裝在我的yum回購中添加了Fiware Repo。無法在CentOs7上通過yum安裝contextBroker

這裏是我的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下,但unfort一個這不起作用。在註釋部分有是說,有一個與CentOs7一個問題,不過這不`噸解決我的問題

順便說一句的條目:這也沒有工作Boost-Libboost is needed in Centos7 (ContexBroker)

所以我的問題是,是否有人安裝contextBroker在CentOs7上通過yum,如果他/她做了我該如何解決這個問題?

+0

ps:是的,我知道獵戶座支持,直到6.x,但我相信你們有一些解決方案,歡呼 – Mchoeti

回答

1

正如你所說,目前還沒有官方支持CentOS 7。但是,你可以做到以下幾點,以獲得與contextBroker運行的二進制在你的CentOS 7系統(實際上,這是一個「快速和骯髒的」收據基礎上,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

+1

謝謝fgalan,它工作..但我不知道它是如何看起來像進一步發展。所以我真的建議使用6.8版本的centos。這對我的想法來說已經足夠了。謝謝 – Mchoeti

+0

http://repositories.testbed.fiware.org/repo/rpm/6/x86_64/的官方RPM應該適用於CentOS 6.x,其中包括6.8。 – fgalan