are you using the latest moses code from github, or something else? The latest compiles ok for me on centos 7:
[hieu@localhost mosesdecoder]$ cat /proc/version Linux version 3.10.0-514.16.1.el7.x86_64 (buil...@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Wed Apr 12 15:04:24 UTC 2017 [hieu@localhost mosesdecoder]$ gcc --version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * Looking for MT/NLP opportunities * Hieu Hoang http://moses-smt.org/ On 1 June 2017 at 17:59, jian.zh...@adaptcentre.ie < jian.zh...@adaptcentre.ie> wrote: > Hi, > > I got some errors when compiling moses on centos7, for example > > ...failed gcc.link mert/bin/gcc-4.8.5/release/link-static/threading-multi/ > sentence-bleu-nbest... > gcc.link mert/bin/gcc-4.8.5/release/link-static/threading-multi/hgdecode > mert/bin/gcc-4.8.5/release/link-static/threading-multi/libmert_lib.a( > PreProcessFilter.o):(.rodata._ZTVN9__gnu_cxx13stdio_ > filebufIcSt11char_traitsIcEEE[_ZTVN9__gnu_cxx13stdio_ > filebufIcSt11char_traitsIcEEE]+0x30): undefined reference to > `std::basic_filebuf<char, std::char_traits<char> >::seekoff(long long, > std::_Ios_Seekdir, std::_Ios_Openmode)' > collect2: error: ld returned 1 exit status > > I am using boost boost_1_57_0, there is no error when the boost was > compiled. > > The command I am using to compile moses is: > > ./bjam -a --with-boost=/user/tools/boost_1_57_0 -j24 > > Thanks, > > Jian > > _______________________________________________ > Moses-support mailing list > Moses-support@mit.edu > http://mailman.mit.edu/mailman/listinfo/moses-support > >
_______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support