首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

libstdc++.so.五: cannot open shared object file: No such file or directory

2013-11-22 
libstdc++.so.5: cannot open shared object file: No such file or directory项目中要用到分词系统,最后

libstdc++.so.5: cannot open shared object file: No such file or directory
项目中要用到分词系统,最后采用中国科学院研制的汉语词法分析系统ICTCLAS:官网:
http://ictclas.org/index.html

环境:Fedora + jdk1.6

测试的时候报错:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no ICTCLAS50 in java.library.path
这个简单,没找到ICTCLAS50动态库文件
代码修改为:
System.load(System.getProperty("user.dir") + System.getProperty("file.separator") +"libICTCLAS50.so");

运行报错:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/stevelee/workspace/fenci/libICTCLAS50.so: libstdc++.so.5: cannot open shared object file: No such file or directory

执行

sudo yum search compat-libstdc++

因为我是64位的,故
执行
sudo yum install compat-libstdc++-33.x86_64

热点排行