簡體   English   中英

無法編譯摩西(對 boost:: ... 的未定義引用)

[英]cannot compile moses(undefined reference to boost:: …)

我正在嘗試編譯摩西(機器翻譯工具)。 我編譯時指定了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 鏡像來幫助安裝 moses 服務器及其所有依賴項,構建需要一些時間,但最終成功,您只需擔心使用它並部署您的模型。

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM