nuance1979 / srilm-python

Python binding for SRI Language Modeling Toolkit implemented in Cython
MIT License
29 stars 7 forks source link

undefined symbol: lbfgs #8

Open yhifny opened 1 year ago

yhifny commented 1 year ago

Hello, When I ran make, I got this error on ubuntu:
ImportError: /home/root/miniconda2/envs/tf_gpu/lib/python3.8/site-packages/srilm.cpython-38-x86_64-linux-gnu.so: undefined symbol: lbfgs

the lib lbfgs is listed in setup.py and I am not sure what the problem is.

Thanks, Yasser

drtonyr commented 1 year ago

I had the same problem. This fixed it: sudo apt install liblbfgs0 liblbfgs-dev