Hi Shuo For the build errors with the current version, which platform are you using? Did you install boost yourself? There are some boost/g++ version incompatibilities so it's better to go with the distro default if you can.
For the release version, you need to specify the path to GIZA++, snt2cooc.out, mkcls in the -external-bin-dir argument. i.e., you need to pass something like -external-bin-dir ~/giza-pp/bin cheers - Barry On 19/11/12 09:57, Shuo Li wrote: > Hi, list > I am trying to install the moses with latest version(19/11/2012, > cloned from github by using git clone > git://github.com/moses-smt/mosesdecoder.git > <http://github.com/moses-smt/mosesdecoder.git>) on a 64bit Linux > server. I think I have met the same problem as this guy's case: > http://www.mail-archive.com/[email protected]/msg06589.html , the > Moses I got is the latest version, I do not know how this problems comes. > > By the way, I also try to download a folder named "RELEASE-0.91.zip" > from the github, the problems above has fixed, but a new problem > comes: when training the command: ./train-model.perl as usual and I > have add a additional argument followed by the toural: > -external-bin-dir $HOME/bin > It seems that Moses can not regonize the 3 files which are in the > ~/gizz-pp/bin (GIZA++, snt2cooc.out, mkcls) > I don't know this is my errors or the lates version of Moses. > > Here is the information: > lishuo@lobo:~/mosesdecoder$ bjam --with-srilm=/home/lishuo/srilm > --with-irstlm=/home/lishuo/irstlm --with-giza=/home/lishuo/giza-pp/bin > --with-xmlrpc-c=/usr > > warning: No toolsets are configured. > > warning: Configuring default toolset "gcc". > > warning: If the default is wrong, your build may not work correctly. > > warning: Use the "toolset=xxxxx" option to override our guess. > > warning: For more configuration options, please consult > > warning: > http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > > > !!! You are linking the IRSTLM library; be sure the release is >= > 5.70.02 !!! > > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > > > ...patience... > ...found 3212 targets... > ...updating 28 targets... > gcc.compile.c++ > moses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/FeatureVector.o > > > moses/FeatureVector.cpp: In member function 鈉onst FValue& > Moses::FVector::getBackoff(const Moses::FName&, float) const? > moses/FeatureVector.cpp:284:17: warning: reference to local variable > 鈈ackoff?returned [enabled by default] > In file included from /usr/include/boost/thread/pthread/mutex.hpp:12:0, > from /usr/include/boost/thread/mutex.hpp:16, > from /usr/include/boost/thread/pthread/shared_mutex.hpp:12, > from /usr/include/boost/thread/shared_mutex.hpp:16, > from moses/FeatureVector.h:44, > from moses/FeatureVector.cpp:28: > /usr/include/boost/thread/locks.hpp: In constructor > 鈈oost::upgrade_to_unique_lock<Mutex>::upgrade_to_unique_lock(boost::upgrade_lock<Mutex>&) > > [with Mutex = boost::shared_mutex]? > > moses/FeatureVector.cpp:100:80: instantiated from here > > /usr/include/boost/thread/locks.hpp:926:48: error: call of overloaded > 鈓ove(boost::upgrade_lock<boost::shared_mutex>&)?is ambiguous > > /usr/include/boost/thread/locks.hpp:926:48: note: candidates are: > > /usr/include/boost/move/move.hpp:294:86: note: typename > boost::move_detail::disable_if<boost::has_move_emulation_enabled<T>, > T&>::type boost::move(T&) [with T = > boost::upgrade_lock<boost::shared_mutex>, typename > boost::move_detail::disable_if<boost::has_move_emulation_enabled<T>, > T&>::type = boost::upgrade_lock<boost::shared_mutex>&] > > /usr/include/boost/thread/detail/move.hpp:44:110: note: typename > boost::enable_if<boost::is_convertible<T&, > boost::detail::thread_move_t<T> >, boost::detail::thread_move_t<T> > >::type boost::move(T&) [with T = > boost::upgrade_lock<boost::shared_mutex>, typename > boost::enable_if<boost::is_convertible<T&, > boost::detail::thread_move_t<T> >, boost::detail::thread_move_t<T> > >::type = > boost::detail::thread_move_t<boost::upgrade_lock<boost::shared_mutex> >] > > /usr/include/boost/thread/locks.hpp: In destructor > 鈈oost::upgrade_to_unique_lock<Mutex>::~upgrade_to_unique_lock() [with > Mutex = boost::shared_mutex]? > > moses/FeatureVector.cpp:100:80: instantiated from here > > /usr/include/boost/thread/locks.hpp:932:17: error: call of overloaded > 鈓ove(boost::unique_lock<boost::shared_mutex>&)?is ambiguous > > /usr/include/boost/thread/locks.hpp:932:17: note: candidates are: > > /usr/include/boost/move/move.hpp:294:86: note: typename > boost::move_detail::disable_if<boost::has_move_emulation_enabled<T>, > T&>::type boost::move(T&) [with T = > boost::unique_lock<boost::shared_mutex>, typename > boost::move_detail::disable_if<boost::has_move_emulation_enabled<T>, > T&>::type = boost::unique_lock<boost::shared_mutex>&] > > /usr/include/boost/thread/detail/move.hpp:44:110: note: typename > boost::enable_if<boost::is_convertible<T&, > boost::detail::thread_move_t<T> >, boost::detail::thread_move_t<T> > >::type boost::move(T&) [with T = > boost::unique_lock<boost::shared_mutex>, typename > boost::enable_if<boost::is_convertible<T&, > boost::detail::thread_move_t<T> >, boost::detail::thread_move_t<T> > >::type = > boost::detail::thread_move_t<boost::unique_lock<boost::shared_mutex> >] > > "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -g > -pthread -DBOOST_SYSTEM_DYN_LINK -DBOOST_THREAD_DYN_DLL > -DKENLM_MAX_ORDER=6 -DLM_IRST -DLM_SRI -DMAX_NUM_FACTORS=4 -DNDEBUG > -DTRACE_ENABLE=1 -DWITH_THREADS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES > -I"." -I"moses/DynSAInclude" -I"util/double-conversion" -c -o > "moses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/FeatureVector.o" > > "moses/FeatureVector.cpp" > > ...failed gcc.compile.c++ > moses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi/FeatureVector.o... > > > > ...skipped > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a(clean) > > for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>FeatureVector.o... > > > > ...skipped > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a > > for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>FeatureVector.o... > > > > ...skipped > <pmoses-chart-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>moses_chart > > for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped > <pmoses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>moses > > for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped > <pmoses-cmd/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>lmbrgrid > > for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped > <pOnDiskPt/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>CreateOnDiskPt > > for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped > <pOnDiskPt/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>queryOnDiskPt > > for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped > <pmisc/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>processPhraseTable > > for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped > <pmisc/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>processLexicalTable > > for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped > <pmisc/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>queryPhraseTable > > for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped > <pmisc/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>queryLexicalTable > > for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped > <pmira/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>mira > for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped > <pcontrib/server/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>mosesserver > > for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped <p/home/lishuo/mosesdecoder/bin>moses_chart for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped <p/home/lishuo/mosesdecoder/bin>moses for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped <p/home/lishuo/mosesdecoder/bin>lmbrgrid for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped <p/home/lishuo/mosesdecoder/bin>CreateOnDiskPt for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped <p/home/lishuo/mosesdecoder/bin>queryOnDiskPt for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped <p/home/lishuo/mosesdecoder/bin>processPhraseTable for lack > of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped <p/home/lishuo/mosesdecoder/bin>processLexicalTable for > lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped <p/home/lishuo/mosesdecoder/bin>queryPhraseTable for lack > of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped <p/home/lishuo/mosesdecoder/bin>queryLexicalTable for lack > of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped <p/home/lishuo/mosesdecoder/bin>mira for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped <p/home/lishuo/mosesdecoder/bin>mosesserver for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped <p/home/lishuo/mosesdecoder/lib>libmoses.a for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>moses_test > > for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>libmoses.a... > > > > ...skipped > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>moses_test.passed > > for lack of > <pmoses/bin/gcc-4.6/release/debug-symbols-on/link-static/threading-multi>moses_test... > > > > ...failed updating 1 target... > > ...skipped 27 targets... > > lishuo@lobo:~/mosesdecoder$ git rev-parse --verify HEAD > > da39cff26f3107f26c08164bc396762d665db6aa > > > > Best regards, > Shawn > > -- > Department of Computer and Information Science > Faculty of Science and Technology, University of Macau > Tel: (853) 8397 8051 > Natural Language Processing and Portuguese-Chinese > Machine Translation Research Group (NLP2CT) > > > > > _______________________________________________ > Moses-support mailing list > [email protected] > http://mailman.mit.edu/mailman/listinfo/moses-support -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
