I have already followed these steps. Nevertheless, I continued getting
the same error on 2 targets:
/share/apps/boost_1_54_0/lib64/libboost_iostreams-mt.a(bzip2.o): In
function `boost::iostreams::detail::bzip2_base::compress(int)':
bzip2.cpp:(.text+0x85): undefined reference to `BZ2_bzCompress'
Manually installing bzip2-1.0.6 (instead of the default bzip2-1.0.5 on
my system) solved the compilation issues. I am now running a full
experiment to check if everything else works as expected.
Best,
Dimitris
On 03/07/2013 04:16 μμ, Hieu Hoang wrote:
hmm. This is the exact commands I ran:
Boost:
1. download boost 1.54 from boost.org <http://boost.org> and unpack
2. ./bootstrap.sh
3. ./b2 --prefix=/home/hieu/workspace/boost/boost_1_54_0
--libdir=/home/hieu/workspace/boost/boost_1_54_0/lib64 --layout=tagged
link=static threading=multi,single install -j6 || echo FAILURE
Moses:
1. nice ./bjam
--with-boost=/home/hieu/workspace/boost/boost_1_54_0 -j6 -a
On 3 July 2013 13:44, Dimitris Mavroeidis <[email protected]
<mailto:[email protected]>> wrote:
Thanks Hieu,
On 02/07/2013 02:21 μμ, Hieu Hoang wrote:
Did you compile moses on the same machine as you're running on?
Yes.
What was the exact command you used to compile? If you included
the argument
--with-boost=....
then it would have linked to the boost library in that path,
instead of the 1 in the system directory.
I didn't use "--with-boost=...". This is my bjam command:
./bjam --with-srilm=/share/apps/srilm
--with-irstlm=/share/apps/irstlm -j10 -q
There's 2 solutions.
1. recompile, but statically link to the boost library in the
--with-boost path. To do this:
a. add --static when running bjam
b. delete all the .so files in your --with-boost directory
I manually installed a later version of boost (1.53) and followed
your instructions, but now moses doesn't compile at all. There are
some dependency issues of newer libraries that must exist. The
same version of boost (installed manually) gives me the initial
error.
2. if you have the header files and libraries in your systems
directory, don't use --with-boost argument when running bjam,
If you are sure you have the boost library and header files
installed in the system paths
I don't use the "--with-boost" argument. What do you suggest?
Best regards,
Dimitris
On 2 July 2013 10:29, Dimitris Mavroeidis <[email protected]
<mailto:[email protected]>> wrote:
Hi all,
I have succesfully compiled moses' latest version from
github, but came
accross this error when running "symal" through "ems":
*****************************************************************************************************************
Executing:
/share/apps/mosesdecoder/scripts/training/giza2bal.pl
<http://giza2bal.pl> -d
"gzip -cd
/data/dmavroeidis/work/76/training/giza.1/en-el.A3.final.gz"
-i "gzip -cd
/data/dmavroeidis/work/76/training/giza-inverse.1/el-en.A3.final.gz"
|
/share/apps/mosesdecoder/scripts/../bin/symal -alignment="grow"
-diagonal="yes" -final="yes" -both="yes" >
/data/dmavroeidis/work/76/model/aligned.3.grow-diag-final-and
/share/apps/mosesdecoder/scripts/../bin/symal: error while
loading
shared libraries: libboost_system-mt.so.5: cannot open shared
object
file: No such file or directory
Exit code: 127
ERROR: Can't generate symmetrized alignment file
*****************************************************************************************************************
I have checked some common causes found in many online resources:
- The library exists in /usr/lib64 (not symlinked).
- $LD_LIBRARY_PATH includes the path above.
These are my system's os and libraries versions:
OS: CentOS 6
Boost library version: 1.41.0-17
gcc version: 4.4.7-3
I would appreciate some insight on this!
Best regards,
Dimitris
_______________________________________________
Moses-support mailing list
[email protected] <mailto:[email protected]>
http://mailman.mit.edu/mailman/listinfo/moses-support
--
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu
--
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support