kpu / kenlm

KenLM: Faster and Smaller Language Model Queries
http://kheafield.com/code/kenlm/
Other
2.5k stars 513 forks source link

error when loading shared library #287

Closed raviolli closed 4 years ago

raviolli commented 4 years ago

I'm getting this error when using kenlm. I have it working on other systems.

_error while loading shared libraries: libboost_programoptions.so.1.58.0

I also installed this:

sudo apt-get install build-essential libboost-all-dev cmake zlib1g-dev libbz2-dev liblzma-dev

Is there some weird issue with dependency at compile time for kenlm?

kpu commented 4 years ago

Smells like you compiled with an older boost, upgraded boost, and now it's missing the version the binary was compiled with. Recompile.

raviolli commented 4 years ago

Hi Ken, thanks for helping me out with this... I recompiled it and it just can't seem to locate the library. Are how you search for the library.. is there a default path or something I should know of?

_./lmplz: error while loading shared libraries: libboost_programoptions.so.1.72.0: cannot open shared object file: No such file or directory

kpu commented 4 years ago

How is boost installed? If I had to guess, it's in your home directory or something. In which case, you need to set LD_LIBRARY_PATH to the directory that file is found.

raviolli commented 4 years ago

Thanks,

I have it installed in the lower level of the File system and have soft links to it through my environment.

Thanks it was the LD_LIBRARY_PATH.

I set the PATH but it didn't work..