如何使用XMLRPC支持编译Moses?

时间:2014-12-29 05:47:06

标签: xml-rpc moses

我已经在/ opt / moses中安装了libxmlrpc-core-c3-dev软件包(使用aptitude)和irstlm

之后我跑

./bjam -j4 --with-irstlm=/opt/moses/irstlm --with-xmlrpc-c=/usr/ --prefix=/opt/moses > install.txt

看起来一切都安装成功,异常mosesserver二进制文件。在gret on install.txt之后我发现了这个:

gcc.compile.c++ contrib/server/bin/gcc-4.8/release/debug-symbols-on/link-static/threading-multi/mosesserver.o
contrib/server/mosesserver.cpp:16:29: fatal error: xmlrpc-c/base.hpp: No such file or directory
"g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -g -pthread -I/usr/include  -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_DLL -DKENLM_MAX_ORDER=6 -DLM_IRST -DMAX_NUM_FACTORS=4 -DNDEBUG -DTRACE_ENABLE=1 -DWITH_THREADS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -I"." -I"moses/TranslationModel/DynSAInclude" -I"util/double-conversion" -c -o "contrib/server/bin/gcc-4.8/release/debug-symbols-on/link-static/threading-multi/mosesserver.o" "contrib/server/mosesserver.cpp"
...failed gcc.compile.c++ contrib/server/bin/gcc-4.8/release/debug-symbols-on/link-static/threading-multi/mosesserver.o...
...skipped <pcontrib/server/bin/gcc-4.8/release/debug-symbols-on/link-static/threading-multi>mosesserver for lack of <pcontrib/server/bin/gcc-4.8/release/debug-symbols-on/link-static/threading-multi>mosesserver.o...
...skipped <p/opt/moses/bin>mosesserver for lack of <pcontrib/server/bin/gcc-4.8/release/debug-symbols-on/link-static/threading-multi>mosesserver.o...

我做错了什么?

2 个答案:

答案 0 :(得分:2)

我在挤压方面遇到了同样的问题。

sudo apt-get install libxmlrpc-c3-dev

解决了我的问题。

答案 1 :(得分:0)

我已成功在/ opt / libxmlrpc中手动编译libxmlrpc-c并将此文件夹设置为--with-xmlrpc -c = / opt / libxmlrpc

相关问题