Error on compiling Freeling 4.0

Submitted by FABIO AFFÈ on Wed, 11/11/2020 - 12:27

I am trying to install Freeling 4.0 on Ubuntu 18.04.4 LTS.
I downloaded the 4.0 version available at this link

While compiling (make command) I get the following error:

libtool: link: g++ -I../../src/include -I../../src/libtreeler -I../../src/libfoma -O3 -Wall -fPIC -std=gnu++0x -Wall -fPIC -o .libs/analyzer sample_analyzer/main.o -L../../src/libfreeling /home/fabioaffe/FreeLing-4.0/src/libfreeling/.libs/ -lboost_regex -lboost_system -lz -lboost_program_options -lpthread
/home/fabioaffe/FreeLing-4.0/src/libfreeling/.libs/ undefined reference to `boost::re_detail_106501::icu_regex_traits_implementation::do_transform(int const*, int const*, icu_65::Collator const*) const'
/home/fabioaffe/FreeLing-4.0/src/libfreeling/.libs/ undefined reference to `u_tolower_65'
collect2: error: ld returned 1 exit status
Makefile:457: recipe for target 'analyzer' failed
make[2]: *** [analyzer] Error 1
make[2]: Leaving directory '/home/fabioaffe/FreeLing-4.0/src/main'
Makefile:356: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/fabioaffe/FreeLing-4.0/src'
Makefile:439: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

I think all dependencies are ok.
Any ideas? Has anyone else encountered this problem?

Probably some mismatch with boost or icu versions

FL 4.0 is a bit outdated.  You can download binary packages for more recent FL4.2 for recent ubuntu versions. so you don't need to compile it.

If you want to compile it, it is ok, but I recommend to upgrade to 4.2 anyway