【问题标题】:cannot compile moses(undefined reference to boost:: ...)无法编译 moses(未定义对 boost:: ... 的引用)
【发布时间】:2014-10-18 14:55:02
【问题描述】:

我正在尝试编译 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**)'

出了什么问题?

【问题讨论】:

  • 你解决了这个问题吗?
  • 对不起,我还没有解决这个问题。
  • 我解决了这个问题,我创建了一个 docker hub 镜像来帮助其他人使用 moses 服务器,而不用担心它的安装。 hub.docker.com/repository/docker/alaahamoudah/…

标签: c++ boost moses


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-02-10
    • 1970-01-01
    • 2013-05-13
    • 2021-05-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-05
    相关资源
    最近更新 更多