首页 > 其他分享 >解决:error while loading shared libraries:lib***.so.*: cannot open shared object file: No such file or

解决:error while loading shared libraries:lib***.so.*: cannot open shared object file: No such file or

时间:2024-10-21 09:10:11浏览次数:6  
标签:loading lib so file such shared open

问题描述

运行编译后的可执行程序时报错 error while loading shared libraries: lib***.so.: cannot open shared object file: No such file or directory.

原因分析

从错误信息提示中,可以知道是在指定的路径找不到或者缺乏这个动态链接库。

解决方案

//在动态链接库的配置里,加入了库文件的位置
echo "/usr/local/lib" >> /etc/ld.so.conf
//更新/etc/ld.so.cache文件
ldconfig

gdalinfo: error while loading shared libraries: libgdal.so.30: cannot open shared object file
解决:error while loading shared libraries:lib**.so.: cannot open shared object file

标签:loading,lib,so,file,such,shared,open
From: https://www.cnblogs.com/echohye/p/18488326

相关文章