摘要:
最近在用LINUX下的CRF++,需要编译后运行,但运行时报错:crf_test: error while loading shared libraries: libcrfpp.so.0: cannot open shared object file: No such file or directory 初步认为是找不到libcrfpp.so.0,但是看到这个文件已经存在于/usr/local/lib目录中,因此想到把该目录加到类似JAVA的CLASSPATH中。下面是解决方法:1.修改/etc/ld.so.conf文件2.加入 include /usr/local/lib3.执行/sbin/ 阅读全文