Hi, Hieu. Thank you very much for your advice. First, I made sure if
my CentOS has libz.a and librt.a and it did. Kenneth (Heafiled) taught
me that Boost 1.41 might be too old for the latest Moses building.
(Thank you, Kenneth) So, I installed Boost 1.54 to my home. Then, I
read the build log of Moses once again and inspected the linker
command options and re-installed all the -lxx static libraries. Then I
made it. I also built static version of Rel.1.0 successfully and it
seems to work nicely. The command I used last was:

./bjam -d2 --with-boost=/home/kuya/boost/boost_1_54_0/stage -j5
--static -a variant=release debug-symbols=off

Thank you, again.

Best regards,
Tak Kuya

On Sat, Jan 11, 2014 at 5:23 AM, Hieu Hoang <[email protected]> wrote:
> double check that libz.a and librt.a exist in
>    /usr/lib
> or
>    /usr/lib64
> I statically compiled on Suse Linux and it was ok. My bjam command was:
>
> ./bjam --with-boost=/home/s0565741/workspace/boost/boost_1_54_0/
> --with-irstlm=/home/s0565741/workspace/irstlm/
> --with-cmph=/home/s0565741/workspace/cmph-2.0
> --with-dalm=/home/s0565741/workspace/github/DALM  -j16   -static -a
>
>
>
>
>
> On 10/01/2014 09:56, Tak Kuya wrote:
>
> Hi. How do you build mosesdecoder using static libraries like
> http://www.statmt.org/moses/RELEASE-1.0/binaries/ ? To make things
> simple, I use the master branch instead of Rel.1.0 and edit
> mosesdecoder/Jamroot a little and build the decoder only.
>
> I can build the normal "shared" version of moses without any problems
> and usually use it (on CentOS 6.5 with boost 1.41). But I failed to
> build moses with --static option. So I installed boost 1.41 to my home
> directory. But I still couldn't build moses. It said "cannot find -lz
> and -lrt" so I installed zlib-static and glibc-static with yum.
>
> And... It failed again. Here are build.log and Jamroot I used. Could
> anyone teach me how to solve the problem? Thank you.
>
> Best regards,
> Tak Kuya
>
>
>
> _______________________________________________
> 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