5

我正在尝试编译 moses(机器翻译工具)。我在编译时指定了 boost 的位置,如下所示。

./bjam --with-boost=/home/xhotsuki/bin/boost_1_56_0 -j8

但是我遇到了很多这样的错误。

...failed gcc.link mert/bin/gcc-4.4.6/release/debug-symbols-on/link-static/threading-multi/timer_test...
...skipped <pmert/bin/gcc-4.4.6/release/debug-symbols-on/link-static/threading-multi>timer_test.passed for lack of <pmert/bin/gcc-4.4.6/release/debug-symbols-on/link-static/threading-multi>timer_test...
gcc.link mert/bin/gcc-4.4.6/release/debug-symbols-on/link-static/threading-multi/util_test
mert/bin/gcc-4.4.6/release/debug-symbols-on/link-static/threading-multi/UtilTest.o: In function 'main':<br>
/home/xhotsuki/bin/boost_1_56_0/include/boost/test/unit_test.hpp:59: undefined reference to `boost::unit_test::unit_test_main(bool (*)(), int, char**)'

出了什么问题?

4

1 回答 1

0

我和我的同事创建了一个 docker 镜像来帮助安装 moses 服务器及其所有依赖项,它需要一些时间来构建,但最终它会成功,你只能担心使用它并部署你的模型。

https://hub.docker.com/repository/docker/alaahamoudah/dockerized_moses_server

于 2021-04-29T12:04:01.607 回答