I manually compiled boost myself from the /Users/kellymarchisio/
L101Final/programs/boost_1_66_0 directory with:

./bootstrap.sh

sudo ./b2 -j8 --prefix=$PWD --libdir=$PWD/lib64 --layout=system link=static
toolset=clang  install || echo FAILURE


I then compiled moses from
/Users/kellymarchisio/L101Final/programs/mosesdecoder
with:

sudo ./bjam
--with-boost=/Users/kellymarchisio/L101Final/programs/boost_1_66_0 -j2
-sLDFLAGS="-liconv -lboost_program_options" link=static install





On Sun, Jan 7, 2018 at 3:04 PM, Hieu Hoang <[email protected]> wrote:

> what is the exact command you used to compile moses? Did you compile boost
> yourself or was it installed by a package manager?
>
> If the boost library is not in the default directory, you have to tell the
> program where they are by setting the environment variable LD_LIBRARY_PATH
> or DYLD_LIBRARY_PATH
>
>
> Hieu Hoang
> http://moses-smt.org/
>
>
> On 7 January 2018 at 19:12, Kelly Marchisio <[email protected]>
> wrote:
>
>> Hi There,
>>
>> I am following the Baseline system guide, 'Training the translation
>> system' section.
>>
>> I run:
>>
>>
>> nohup nice -n 10 /Users/kellymarchisio/L101Final/programs/mosesdecoder/
>> scripts/training/train-model.perl -root-dir train -corpus
>> /Users/kellymarchisio/L101Final/programs/corpus/news-
>> commentary-v8.fr-en-SHORT.clean -f fr -e en -alignment
>> grow-diag-final-and -reordering msd-bidirectional-fe -lm
>> 0:3:/Users/kellymarchisio/L101Final/programs/lm/news-commentary-v8.fr-en.blm.en:8
>> -external-bin-dir 
>> /Users/kellymarchisio/L101Final/programs/mosesdecoder/tools/
>> -cores 8 >& training.out &
>>
>>
>> But receive the following error
>>
>> Executing: rm -f /Users/kellymarchisio/L101Fina
>> l/programs/working/train/giza.en-fr/en-fr.A3.final.gz
>> Executing: gzip /Users/kellymarchisio/L101Fina
>> l/programs/working/train/giza.en-fr/en-fr.A3.final
>> (3) generate word alignment @ Sun Jan  7 13:22:48 EST 2018
>> Combining forward and inverted alignment from files:
>>   /Users/kellymarchisio/L101Final/programs/working/train/giza.
>> fr-en/fr-en.A3.final.{bz2,gz}
>>   /Users/kellymarchisio/L101Final/programs/working/train/giza.
>> en-fr/en-fr.A3.final.{bz2,gz}
>> Executing: mkdir -p /Users/kellymarchisio/L101Fina
>> l/programs/working/train/model
>> Executing: /Users/kellymarchisio/L101Final/programs/mosesdecoder/
>> scripts/training/giza2bal.pl -d "gzip -cd /Users/kellymarchisio/L101Fina
>> l/programs/working/train/giza.en-fr/en-fr.A3.final.gz" -i "gzip -cd
>> /Users/kellymarchisio/L101Final/programs/working/train/giza.fr-en/fr-en.A3.final.gz"
>> |/Users/kellymarchisio/L101Final/programs/mosesdecoder/scripts/../bin/symal
>> -alignment="grow" -diagonal="yes" -final="yes" -both="yes" >
>> /Users/kellymarchisio/L101Final/programs/working/train/
>> model/aligned.grow-diag-final-and
>> dyld: Library not loaded: libboost_thread.dylib
>>   Referenced from: /Users/kellymarchisio/L101Final/programs/mosesdecoder/
>> scripts/../bin/symal
>>   Reason: image not found
>> sh: line 1: 53122 Broken pipe: 13         /Users/kellymarchisio/L101Fin
>> al/programs/mosesdecoder/scripts/training/giza2bal.pl -d "gzip -cd
>> /Users/kellymarchisio/L101Final/programs/working/train/giza.en-fr/en-fr.A3.final.gz"
>> -i "gzip -cd /Users/kellymarchisio/L101Final/programs/working/train/giza.
>> fr-en/fr-en.A3.final.gz"
>>      53123 Abort trap: 6           | /Users/kellymarchisio/L101Fina
>> l/programs/mosesdecoder/scripts/../bin/symal -alignment="grow"
>> -diagonal="yes" -final="yes" -both="yes" > /Users/kellymarchisio/L101Fina
>> l/programs/working/train/model/aligned.grow-diag-final-and
>> Exit code: 134
>> ERROR: Can't generate symmetrized alignment file
>>
>>
>> Does anyone know why the script is unable to find libboost_thread.dylib,
>> and how I can fix?
>>
>> Thanks,
>> Kelly
>>
>> _______________________________________________
>> 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