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

问题描述

运行编译后的可执行程序时报错 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

posted @   槑孒  阅读(3999)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· PowerShell开发游戏 · 打蜜蜂
· 在鹅厂做java开发是什么体验
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
点击右上角即可分享
微信分享提示