简体   繁体   English

libcjson.so:无法打开共享对象文件:没有这样的文件或目录

[英]libcjson.so: cannot open shared object file: No such file or directory

My OS is Centos 7我的操作系统是 Centos 7

when I run ldconfig -p , I can see that "libcjson.so.1.5.7 (libc6,x86-64) => /lib/libcjson.so.1.5.7"当我运行ldconfig -p ,我可以看到“libcjson.so.1.5.7 (libc6,x86-64) => /lib/libcjson.so.1.5.7”

then I run my program, it print that然后我运行我的程序,它打印出来

"libcjson.so: cannot open shared object file: No such file or directory"

At last , I found that ldconfig default path is /usr/lib , but my dynamic library is in /usr/local/lib .最后,我发现ldconfig默认路径是/usr/lib ,但我的动态库在/usr/local/lib So I add this path to ldconfig's config.所以我将此路径添加到 ldconfig 的配置中。

When we copy the library, we should get that some library just symbolic link.当我们复制库时,我们应该得到一些库只是符号链接。 After copy to somewhere, it can not work normally.复制到某处后,无法正常工作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 libarb.so:无法打开共享对象文件:没有这样的文件或目录 - libarb.so: cannot open shared object file: No such file or directory 加载共享库时出错:libclntsh.so.11.1:无法打开共享对象文件:没有这样的文件或目录 - error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory 加载共享库时出错:libcudart.so.4:无法打开共享对象文件:没有这样的文件或目录 - error while loading shared libraries: libcudart.so.4: cannot open shared object file: No such file or directory libsgx_capable.so:无法打开共享对象文件:没有这样的文件或目录 - libsgx_capable.so: cannot open shared object file: No such file or directory 无法打开共享对象文件:存在文件时,没有此类文件或目录错误 - cannot open shared object file: No such file or directory error while there is file ./a.out:加载共享库时出错:libgsl.so.23:无法打开共享对象文件:没有这样的文件或目录 - ./a.out: error while loading shared libraries: libgsl.so.23: cannot open shared object file: No such file or directory 加载的库无法打开共享库文件:没有这样的文件或目录 - Loaded Library cannot open shared object file: No such file or directory libSDL2-2.0.so.0:无法打开共享对象文件 - libSDL2-2.0.so.0: cannot open shared object file Lua liblua5.1.so无法打开共享库文件 - Lua liblua5.1.so cannot open shared object file Testprintenv:加载共享库时出错:libodbc.so.1:无法打开共享对象文件 - Testprintenv:error while loading shared libraries:libodbc.so.1: cannot open shared object file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM