TALP-UPC / FreeLing

FreeLing project source code
Other
252 stars 96 forks source link

libboost version error on Debian 10 (buster) #92

Closed torce closed 4 years ago

torce commented 4 years ago

Installed from buster deb package in 4.1 release.

Executing:

FREELINGSHARE=/usr/share/freeling analyzer -f /usr/share/freeling/config/fr.cfg --output xml --server --port 5001

Causes:

analyzer: error while loading shared libraries: libboost_thread.so.1.62.0: cannot open shared object file: No such file or directory

libboost version in debian 10 seems to be 1.67:

> sudo apt list --installed | grep libboost-thread

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libboost-thread1.67.0/stable,now 1.67.0-13 amd64 [instalado]

As workaround I have created two symlinks with a different version name. It worked and I was able to send text to the analyzer server:

sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.67.0 /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.62.0
sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_date_time.so.1.67.0 /usr/lib/x86_64-linux-gnu/libboost_date_time.so.1.62.0
lluisp commented 4 years ago

The boost version in buster may have changed since it was testing.. The symlink hack may work, but it is risky... The safe way would be compiling FreeLing in your buster so it lins to the right versions.