libstdc++.so.5: cannot open shared object file: No such file or directory
程序员文章站
2022-06-09 17:03:09
...
项目中要用到分词系统,最后采用中国科学院研制的汉语词法分析系统ICTCLAS:官网:
[url]http://ictclas.org/index.html[/url]
环境: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
执行
因为我是64位的,故
执行
[url]http://ictclas.org/index.html[/url]
环境: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
上一篇: linuxdeployqt ldd ERROR: ldd outputLine: .../libQt5Core.so.5: version `Qt_5' not found (required by
下一篇: js手动实现new方法
推荐阅读
-
解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:
-
linux系统安装VMware(详细解决"Cannot open /dev/vmmon: No such file or directory"问题)
-
mdadm: cannot open /dev/sdb: No such file or directory
-
Tensorflow:ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory
-
libiconv.so.2 cannot open shared object file: No such file or directory
-
libmatio.so.2: cannot open shared object file: No such file or directory
-
libevent-2.0.so.5: cannot open shared object file: No such file or directory
-
报错:libmysqlclient.so.18: cannot open shared object file: No such file or directory.
-
libcudart.so.9.2: cannot open shared object file: No such file or directory
-
解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file