【问题标题】:How to compile Moses with XMLRPC support?如何使用 XMLRPC 支持编译 Moses?
【发布时间】:2014-12-29 05:47:05
【问题描述】:

我已经在 /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 二进制文件。在对 install.txt 进行 grepping 之后,我发现了这一点:

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...

我做错了什么?

【问题讨论】:

    标签: xml-rpc moses


    【解决方案1】:

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

    sudo apt-get install libxmlrpc-c3-dev
    

    解决了我的问题。

    【讨论】:

      【解决方案2】:

      我已经设法在 /opt/libxmlrpc 中手动编译 libxmlrpc-c 并将这个文件夹设置在 --with-xmlrpc-c=/opt/libxmlrpc 中

      【讨论】:

        猜你喜欢
        • 2012-06-23
        • 1970-01-01
        • 2013-02-26
        • 2016-07-04
        • 2011-11-30
        • 2010-12-01
        • 1970-01-01
        • 2020-09-22
        • 1970-01-01
        相关资源
        最近更新 更多