0

我试图获取与 ContextBroker 组件关联的 rpm ( https://github.com/telefonicaid/fiware-orion.git ),但执行后出现以下错误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

4

1 回答 1

0

如果按照 Orion README.md 文件中的说明安装 cantcoap 和 COAP 客户端,则此问题得到解决,然后执行make rpm.

请注意,尽管 COAP 的东西对于构建代码本身是可选的,make release或者make debugRPM 构建目标暂时需要它们(我们将来可能会修复这个问题)。

更新:这个 Github.com 问题正在处理 RPM makefile 目标的修复:https ://github.com/telefonicaid/fiware-orion/issues/579

于 2014-10-16T09:58:21.373 回答