redpony / cdec

Decoder, aligner, and model optimizer for statistical machine translation and other structured prediction models based on (mostly) context-free formalisms
http://cdec-decoder.org/
Apache License 2.0
183 stars 77 forks source link

Compiling Error #57

Open vudoanbt3 opened 10 years ago

vudoanbt3 commented 10 years ago

I have boost 1.55 installed, moses system and i tried to install cdec but while i'm trying to compile i get this error:

reconstruct_weights.o: In function boost::program_options::basic_command_line_parser<char>::run()': /home/chloe/tools/boost_1_55_0/include/boost/program_options/detail/parsers.hpp:107: undefined reference toboost::program_options::detail::cmdline::get_canonical_option_prefix()' collect2: ld returned 1 exit status make[2]: * [reconstruct_weights] Error 1 make[2]: * Waiting for unfinished jobs.... atools.o: In function boost::program_options::basic_command_line_parser<char>::run()': /home/chloe/tools/boost_1_55_0/include/boost/program_options/detail/parsers.hpp:107: undefined reference toboost::program_options::detail::cmdline::get_canonical_option_prefix()' collect2: ld returned 1 exit status make[2]: * [atools] Error 1 make[2]: Leaving directory `/home/chloe/tools/cdec-2014-10-12/utils' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory`/home/chloe/tools/cdec-2014-10-12' make: *\ [all] Error 2

This this my command:

sudo ./configure --with-boost=/home/chloe/tools/boost_1_55_0 sudo make -j 4

Please help me !

Thank all .

vudoanbt3 commented 10 years ago

PS: I use ubuntu 12.04 x64 and i refered http://www.cdec-decoder.org/guide/compiling.html but nothing works

BramVanroy commented 6 years ago

You seem to have the same issue as posed here https://github.com/redpony/cdec/issues/86#issuecomment-422563938. You'll need boost.