kpu / kenlm

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

Installation error #282

Closed SaintLogos1234 closed 4 years ago

SaintLogos1234 commented 4 years ago

I install kenlm according to the following command: mkdir build cd build cmake .. make python setup.py install the compilation is successful, but I run python setup.py install,the following error appears, what is going on: image How to resolve the above errors

kpu commented 4 years ago

Please post full output as text, not a limited screenshot. Nonetheless, it looks like your bzip2 wasn't compiled with -fPIC. Based on the path it looks like you compiled bzip2 yourself?

If you don't care about bzip2 support, comment out lines 41-43 of setup.py.

SaintLogos1234 commented 4 years ago

Thank you very much. It seems that your suggestion is correct. After installing your suggestion, the modification has been successfully installed. At the same time, commenting out lines 41 to 43 to install, does it have a great impact on subsequent use? Finally, I am very sorry for the confusion caused by my non-standard questions