Hi Barry, Yes, you are right, the problem is the version of boost, I reinstall the latest version of boost"1.52", delete and compile the latest Moses again. And the second problem I have asked about the argument "-external-bin-dir" also had been solved with the latest version of Moses. It works! Thank you very much^^
Best regards, Shawn 2012/11/20 Barry Haddow <[email protected]> > Hi Shawn > > It looks like you're hitting this boost bug > https://svn.boost.org/trac/boost/ticket/6141 > Ubuntu 12.04 also includes boost 1.46, so could you try building Moses > against that? > > Could you give the command line and error message for the release > version? It should work. > > cheers - Barry > > On 20/11/12 09:13, Shuo Li wrote: > > Hi Barry, > > My OS is Ubuntu Server 12.04 LTS (64-bits), and it is already > > installthe following package/library: > > - gcc (4:4.6.3-1ubuntu5) > > - g++ (4:4.6.3-1ubuntu5) > > - make (3.81-8.1ubuntu1) > > - git-core (1:1.7.9.5-1) > > - libboost1.48-dev (1.48.0-3) > > > > For the release version, I had use the ‘-- external-bin-dir’ argument > > and this does not work. > > > > Best regards, > > Shawn > > > > > > > > 2012/11/20 Barry Haddow <[email protected] > > <mailto:[email protected]>> > > > > 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> > > <http://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 > > <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 > > < > 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 �const FValue& > > Moses::FVector::getBackoff( const Moses::FName&, float) const? > > moses/FeatureVector.cpp:284: 17: warning: reference to local > > variable �backoff?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 > > �boost::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 �move(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 > > �boost::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 �move(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 > > > > da39cff26f3107f26c08164bc39676 2d665db6aa > > > > > > > > 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] <mailto:[email protected]> > > http://mailman.mit.edu/ mailman/listinfo/moses-support > > <http://mailman.mit.edu/mailman/listinfo/moses-support> > > > > > > > > -- > > The University of Edinburgh is a charitable body, registered in > > Scotland, with registration number SC005336. > > > > > > > > > > -- > > 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) > > > > > > > The University of Edinburgh is a charitable body, registered in > Scotland, with registration number SC005336. > > -- 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
