问题:调用动态库报 cannot open shared object file: No such file or directory
解决:
ldd xxx
查看依赖缺失- 修改共享库配置文件 /etc/ld.so.conf
2.1 添加include /etc/ld.so.conf.d/*.conf
2.2 在 *.conf 中编写/home/xxx/sopath
- 立即生效 sudo ldconfig
问题:调用动态库报 cannot open shared object file: No such file or directory
解决:
ldd xxx
查看依赖缺失include /etc/ld.so.conf.d/*.conf
/home/xxx/sopath