在 Debian 8.7 (jessie) 中编译 Fiware-Orion 错误 make unit_test
Compilation Fiware-Orion in Debian 8.7 (jessie) error make unit_test
我在 Debian 8.7 中编译了 Fiware-orion,并使用了 MongoDB v2.4.10。 Fiware-orion 编译没有错误,但是 unit_test returns 有一些错误。我遵循了第 http://fiware-orion.readthedocs.io/en/master/admin/build_source/ 页上的步骤并使用了 apt 存储库中的现有库。
我安装了必要的构建工具:
apt install scons build-essential make cmake
我安装了必要的库:
apt install libboost-all-dev libcurl4-openssl-dev libgnutls28-dev libgcrypt20-dev libssl-dev uuid-dev
我按照 https://github.com/telefonicaid/fiware-orion/issues/1681#issuecomment-173003764 的推荐安装了 MongoDB 驱动程序的 Legacy C++ Driver 1.0.2 版本。
使unit_testreturns出现如下错误:
[----------] Global test environment tear-down
[=======] 899 tests from 135 test cases ran. (4440 ms total)
[ PASSED ] 895 tests.
[ FAILED ] 4 tests, listed below:
[ FAILED ] mongoQueryContextRequest_filters.outsideRange_n
[ FAILED ] mongoQueryContextGeoRequest.queryGeoCircleOut
[ FAILED ] mongoQueryContextGeoRequest.queryGeoPolygonOut1
[ FAILED ] mongoQueryContextGeoRequest.queryGeoPolygonOut2
我该如何解决这个问题?
需要考虑的两个注意事项:
您应该使用 Mongo C++ 遗留驱动程序版本 1.1.2(参见 building from sources documentation。这可能不是单元测试失败的原因,但无论如何都是可取的。
您至少应该使用 MongoDB 2.6(勾选 requiresments)。具体来说,您不应按照该文档中的警告使用 MongoDB 2.4:
The recommended MongoDB versions are 2.6/3.0/3.2. It is not recommended using MongoDB 2.4.x., as some geolocated queries may not work.
此外,您一般不应使用 MongoDB 2.4(不仅适用于 Orion),因为它已于 2016 年 3 月到期(检查 MongoDB official documentation)。
我在 Debian 8.7 中编译了 Fiware-orion,并使用了 MongoDB v2.4.10。 Fiware-orion 编译没有错误,但是 unit_test returns 有一些错误。我遵循了第 http://fiware-orion.readthedocs.io/en/master/admin/build_source/ 页上的步骤并使用了 apt 存储库中的现有库。
我安装了必要的构建工具:
apt install scons build-essential make cmake
我安装了必要的库:
apt install libboost-all-dev libcurl4-openssl-dev libgnutls28-dev libgcrypt20-dev libssl-dev uuid-dev
我按照 https://github.com/telefonicaid/fiware-orion/issues/1681#issuecomment-173003764 的推荐安装了 MongoDB 驱动程序的 Legacy C++ Driver 1.0.2 版本。
使unit_testreturns出现如下错误:
[----------] Global test environment tear-down
[=======] 899 tests from 135 test cases ran. (4440 ms total)
[ PASSED ] 895 tests.
[ FAILED ] 4 tests, listed below:
[ FAILED ] mongoQueryContextRequest_filters.outsideRange_n
[ FAILED ] mongoQueryContextGeoRequest.queryGeoCircleOut
[ FAILED ] mongoQueryContextGeoRequest.queryGeoPolygonOut1
[ FAILED ] mongoQueryContextGeoRequest.queryGeoPolygonOut2
我该如何解决这个问题?
需要考虑的两个注意事项:
您应该使用 Mongo C++ 遗留驱动程序版本 1.1.2(参见 building from sources documentation。这可能不是单元测试失败的原因,但无论如何都是可取的。
您至少应该使用 MongoDB 2.6(勾选 requiresments)。具体来说,您不应按照该文档中的警告使用 MongoDB 2.4:
The recommended MongoDB versions are 2.6/3.0/3.2. It is not recommended using MongoDB 2.4.x., as some geolocated queries may not work.
此外,您一般不应使用 MongoDB 2.4(不仅适用于 Orion),因为它已于 2016 年 3 月到期(检查 MongoDB official documentation)。