Moses-support Digest, Vol 135, Issue 6

Send Moses-support mailing list submissions to
moses-support@mit.edu

To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.mit.edu/mailman/listinfo/moses-support
or, via email, send a message with subject or body 'help' to
moses-support-request@mit.edu

You can reach the person managing the list at
moses-support-owner@mit.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Moses-support digest..."


Today's Topics:

1. Re: dyld: Library not loaded: libboost_thread.dylib
(Kelly Marchisio)
2. Re: dyld: Library not loaded: libboost_thread.dylib (Hieu Hoang)


----------------------------------------------------------------------

Message: 1
Date: Sun, 7 Jan 2018 16:57:54 -0500
From: Kelly Marchisio <kellymarchisio@gmail.com>
Subject: Re: [Moses-support] dyld: Library not loaded:
libboost_thread.dylib
To: Hieu Hoang <hieuhoang@gmail.com>
Cc: moses-support <moses-support@mit.edu>
Message-ID:
<CA++Yajmr_Du7GUQSc+3eQM2AcgMPpbsO4Y64f2jzkwLLTVGCuQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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 <hieuhoang@gmail.com> 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 <kellymarchisio@gmail.com>
> 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
>> Moses-support@mit.edu
>> http://mailman.mit.edu/mailman/listinfo/moses-support
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20180107/4ed57924/attachment-0001.html

------------------------------

Message: 2
Date: Sun, 7 Jan 2018 23:12:28 +0000
From: Hieu Hoang <hieuhoang@gmail.com>
Subject: Re: [Moses-support] dyld: Library not loaded:
libboost_thread.dylib
To: Kelly Marchisio <kellymarchisio@gmail.com>
Cc: moses-support <moses-support@mit.edu>
Message-ID:
<CAEKMkbiqibzWdu-Kmhr5WOF2==R7TsY_L+4j5MVxDwgoP3O5fg@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

the boost compile looks ok. Make sure the $PWD/lib directory only contains
lib*.a files, not lib*.so or lib*.dylib files.

I'm not sure what -sLDFLAGS does, I've never had to use it on OSX, or
link=static

You also don't need sudo for either commands

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


On 7 January 2018 at 21:57, Kelly Marchisio <kellymarchisio@gmail.com>
wrote:

> 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 <hieuhoang@gmail.com> 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 <kellymarchisio@gmail.com>
>> wrote:
>>
>>> Hi There,
>>>
>>> I am following the Baseline system guide, 'Training the translation
>>> system' section.
>>>
>>> I run:
>>>
>>>
>>> nohup nice -n 10 /Users/kellymarchisio/L101Fina
>>> l/programs/mosesdecoder/scripts/training/train-model.perl -root-dir
>>> train -corpus /Users/kellymarchisio/L101Fina
>>> l/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/script
>>> s/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/L101Fina
>>> l/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/L101Fina
>>> l/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
>>> Moses-support@mit.edu
>>> http://mailman.mit.edu/mailman/listinfo/moses-support
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/mailman/private/moses-support/attachments/20180107/dd491192/attachment.html

------------------------------

_______________________________________________
Moses-support mailing list
Moses-support@mit.edu
http://mailman.mit.edu/mailman/listinfo/moses-support


End of Moses-support Digest, Vol 135, Issue 6
*********************************************

0 Response to "Moses-support Digest, Vol 135, Issue 6"

Post a Comment