you probably have the xmlrpc-c library on your system, but it's not the right version. If you don't need the server, you can exclude it using: ./bjam ... --no-xmlrpc-c
Hieu Hoang http://www.hoang.co.uk/hieu On 29 November 2015 at 15:22, 李洪政 <[email protected]> wrote: > > Hello, > > We're building Moses on the CentOS according to the website > http://www.statmt.org/moses/?n=Development.GetStarted . We first manually > installing Boost with the following commands: > > *./bootstrap.sh ./b2 -j4 --prefix=/home/lhz/boost_1_50_0 > --libdir=/home/lhz/boost_1_50_0/lib64/lib64 --layout=system link=static > install || echo FAILURE* > then compile the Moses with the command *./bjam > --with-boost=/home/lhz/boost_1_50_0 -j8, *but compiling failed,here is > the error results: > ERROR > make[2]: *** [external/Stamp/moses_external/moses_external-build] Error 1 > make[1]: *** [CMakeFiles/moses_external.dir/all] Error 2 > make: *** [all] Error 2 > > We then tried to install Boost with the following commands: > > *./bootstrap.sh ./b2 --prefix=/home/lhz/boost_1_50_0 > --libdir=/home/lhz/boost_1_50_0/lib64 --layout=tagged link=static,shared > threading=multi,single install || echo FAILURE* > and compile the Moses again with the same command, but it failed again. We > received the same error resulst, And the build.log was the same with the > former one. > > Here are some contents from the log: > gcc.compile.c++ > moses/bin/gcc-4.4.7/release/link-static/threading-multi/server/Server.o > > "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall > -pthread -I/usr/local/include -DBOOST_PROGRAM_OPTIONS_DYN_LINK > -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_DLL -DHAVE_XMLRPC_C > -DKENLM_MAX_ORDER=6 -DMAX_NUM_FACTORS=4 -DNDEBUG -DTRACE_ENABLE=1 > -DWITH_THREADS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I"." > -I"/home/lhz/boost_1_50_0/include" -I"util/double-conversion" -c -o > "moses/bin/gcc-4.4.7/release/link-static/threading-multi/server/Server.o" > "moses/server/Server.cpp" > > moses/server/Server.cpp: In member function ‘int > MosesServer::Server::run()’: > moses/server/Server.cpp:29: error: ‘class > xmlrpc_c::serverAbyss::constrOpt’ has no member named ‘maxConn’ > /home/lhz/boost_1_50_0/include/boost/system/error_code.hpp: At global > scope: > /home/lhz/boost_1_50_0/include/boost/system/error_code.hpp:214: warning: > ‘boost::system::posix_category’ defined but not used > /home/lhz/boost_1_50_0/include/boost/system/error_code.hpp:215: warning: > ‘boost::system::errno_ecat’ defined but not used > /home/lhz/boost_1_50_0/include/boost/system/error_code.hpp:216: warning: > ‘boost::system::native_ecat’ defined but not used > *...failed gcc.compile.c++ > moses/bin/gcc-4.4.7/release/link-static/threading-multi/server/Server.o... * > > Attached is the build.log, please check it. > > Looking forward to your rapid response, thank you! > > Best, > > Hongzheng Li > Institute of Chinese Information Processing, > Beijing Normal University > > > _______________________________________________ > Moses-support mailing list > [email protected] > http://mailman.mit.edu/mailman/listinfo/moses-support > >
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
