我试图获取与ContextBroker组件(https://github.com/telefonicaid/fiware-orion.git)关联的rpm,但在执行make rpm
后我收到了以下错误。
[ 98%] Building CXX object src/lib/mongoBackend/CMakeFiles/mongoBackend.dir/mongoNotifyContextAvailability.cpp.o
Linking CXX static library libmongoBackend.a
make[4]: Leaving directory `/home/develenv/app/jenkins/config-history/jobs/ContextBroker-Build/fiware-orion/rpm/BUILD/contextBroker-0.14.1_next/BUILD_RELEASE'
[ 98%] Built target mongoBackend
make[3]: Leaving directory `/home/develenv/app/jenkins/config-history/jobs/ContextBroker-Build/fiware-orion/rpm/BUILD/contextBroker-0.14.1_next/BUILD_RELEASE'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/develenv/app/jenkins/config-history/jobs/ContextBroker-Build/fiware-orion/rpm/BUILD/contextBroker-0.14.1_next/BUILD_RELEASE'
make[1]: *** [release] Error 2
make[1]: Leaving directory `/home/develenv/app/jenkins/config-history/jobs/ContextBroker-Build/fiware-orion/rpm/BUILD/contextBroker-0.14.1_next'
error: Bad exit status from /var/tmp/rpm-tmp.NPtnCN (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.NPtnCN (%build)
make: *** [rpm] Error 1
在此阶段之前,我编译并执行了单元测试以及功能测试,没有任何问题我正在使用repo / branch处理Red Hat 4.4.7-3:
https://github.com/telefonicaid/fiware-orion/tree/release/iotplatform-v1
感谢您的帮助
更新: 使用的linux发行版是CentOS 6.4
答案 0 :(得分:0)
如果您按照the Orion README.md file中的说明安装cantcoap和COAP客户端,则会解决此问题,然后执行make rpm
。
请注意,虽然COAP内容是可选的,可以使用make release
或make debug
构建代码本身,但RPM构建目标暂时需要它们(我们可能会在将来修复此问题)。
更新:此github.com问题正在处理RPM makefile目标的修复:https://github.com/telefonicaid/fiware-orion/issues/579