taku910 / crfpp

CRF++: Yet Another CRF toolkit
Other
505 stars 192 forks source link

build with python error #32

Open cdj0311 opened 8 years ago

cdj0311 commented 8 years ago

In python, I run python test.py, but there has an error: import _CRFPP ImportError: libcrfpp.so.0: cannot open shared object file: No such file or directory

jinluyang commented 8 years ago

I got the same error on centos6.5 python2.7

melgor commented 7 years ago

sudo ldconfig should resolve this problem. It just update links to library.

zhugw commented 7 years ago
sudo vim /etc/ld.so.conf
# add this line
include /usr/local/lib
# then execute below command
sudo /sbin/ldconfig -v

If still has the problem , execute below command

ln -s /usr/local/lib/libcrfpp.so.* /usr/lib64/ 

The resolve method is from http://blog.csdn.net/u013378306/article/details/54604056