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