looking at the errors again, the gcc version may be a bit old. Try
commenting out the C++11 tests in ScoreFeatureTest.cpp and compile again

I don't think Moses uses too many C++11 features, but I can't guarantee
that going forward

Hieu Hoang
http://moses-smt.org/


On 26 June 2017 at 20:41, Hieu Hoang <[email protected]> wrote:

> Apologies, boost 1.55 is getting a bit old. The error you see are tests
> for C++11 compatitbility. I've updated the website to use a more recent
> boost lib. This is the exact command I used to successfully compile moses
>
> *Boost:*
>       wget https://dl.bintray.com/boostorg/release/1.64.0/
> source/boost_1_64_0.tar.gz
>    tar zxvf boost_1_64_0.tar.gz
>    cd boost_1_64_0/
>    ./bootstrap.sh
>    ./b2 -j4 --prefix=$PWD --libdir=$PWD/lib64 --layout=system link=static
> install || echo FAILURE
>
>
> *Moses:*
>  git clone [email protected]:moses-smt/mosesdecoder.git
>  cd mosesdecoder/
>  ./bjam -j 12 --with-boost=/home/hieu/workspace/boost/boost_1_64_0
>
>
>
>
> Hieu Hoang
> http://moses-smt.org/
>
>
> On 26 June 2017 at 20:19, Jan Tore L|nning <[email protected]> wrote:
>
>> I am (still) struggling with installing Moses and how to get the boost
>> right
>>
>>
>> I tried
>> bash-4.1$ /usit/abel/u1/jtl/mosesdecoder/bjam
>> --with-boost=/usit/abel/u1/jtl/boost_1_55_0 -j8
>>
>> with an absolute path also to bjam. The installation didn't succeed, but
>> it looks like it managed a litle bit better this time. At least, the log
>> file build_A.log.gz contains more information than last time. Maybe,
>> somebody can help me dechiphering it? I had built the boost after the
>> recipe at
>> http://www.statmt.org/moses/?n=Development.GetStarted
>>
>>
>> Then, I found out I could instead try to load a boost module already
>> available.
>> I loaded boost/1.60.0 which again loaded 1) gcc/5.1.0    2)
>> openmpi.gnu/1.8.8   3) icu/49.1.2
>>
>> I then ran the command
>> bash-4.1$ /usit/abel/u1/jtl/mosesdecoder/bjam  -j8
>>
>> This didn' succeed either. And I got the log-file build_B.log.gz
>>
>>
>> Any advice is welcome,
>>
>> Jan Tore
>>
>>
>>
>> On 06/12/2017 12:15 PM, Jan Tore Lønning wrote:
>>
>>> (I apologize for the reposting. There are some problems with the mail
>>> client. I just try to get the linebreaks through)
>>>
>>> Thanks for the advice.
>>> But this does not seem to solve the problem
>>>
>>> None of the following 4 attempts work
>>> ./bjam --with-boost=/cluster/home/jtl/boost_1_55_0 -j8
>>>
>>> ./bjam --with-boost=/usit/abel/u1/jtl/boost_1_55_0 -j8
>>>
>>> ./bjam --with-boost=~/boost_1_55_0 -j8
>>>
>>> ./bjam --with-boost=../boost_1_55_0 -j8
>>>
>>> They all produce the same log-file.
>>>
>>> ./bjam --with-boost=~/boost_1_55_0 -j8
>>>
>>> ~ Is a little different from the other 3.
>>> It stops immediately with the message
>>>
>>> You have Boost 104100. This package requires Boost at least 104400 (and
>>> preferably newer).
>>>
>>> The other 3 start the process and do some work before they stop with an
>>> EROOR message.
>>>
>>> Jan Tore
>>>
>>> -----Original Message-----
>>> From: Hieu Hoang [mailto:[email protected]]
>>> Sent: Saturday, June 10, 2017 10:00 PM
>>> To: Jan Tore Lønning <[email protected]>
>>> Cc: moses-support <[email protected]>
>>> Subject: Re: [Moses-support] problem installing Moses
>>>
>>> Use absolute paths
>>>
>>> On 10 Jun 2017 11:51 a.m., "Jan Tore Lønning" <[email protected] <mailto:
>>> [email protected]> > wrote:
>>>
>>>
>>>         Hi
>>>
>>>         I try to install Moses, but have problems with the boost.
>>>         I tried to follow the instructions at
>>>         http://www.statmt.org/moses/?n=Development.GetStarted <
>>> http://www.statmt.org/moses/?n=Development.GetStarted>
>>>
>>>         I followed the recipe for manually installing boost, installing
>>> it to ~/boost_1_55_0
>>>         Then I tried to install moses from within ~/mosesdecoder with
>>> the command
>>>
>>>         bash-4.1$ ./bjam --with-boost=../boost_1_55_0 -j8
>>>
>>>         This failed.
>>>         The log-file says
>>>
>>>         Unable to load Boost.Build: could not find "boost-build.jam"
>>>         ---------------------------------------------------------------
>>>         Attempted search from /cluster/home/jtl/mosesdecoder up to the
>>> root
>>>         at /cluster/home/jtl/mosesdecoder/share/boost-build
>>>         and in these directories from BOOST_BUILD_PATH and BOOST_ROOT:
>>> /usr/share/boost-build.
>>>         ++++++++++
>>>
>>>         Boost-build.jam is in boost_1_55_0. The problem seems to be to
>>> locate boost_1_55_0
>>>
>>>         Kind regards,  Jan Tore
>>>
>>>         _______________________________________________
>>>         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>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to