linux 找不到lib怎么办
时间:2023-02-28 09:59
linux找不到lib的解决办法:1、将程序中的lib库复制到“/lib”或者“/usr/local/lib”目录下,然后执行“ldconfig”;2、在“ld.so.conf”中加入库文件所在目录,然后更新“ld.so.cache”文件即可。 本教程操作环境:linux5.9.8系统、Dell G3电脑。 linux 找不到lib怎么办? Linux 下运行程序找不到Lib库解决方法 1、例如 方法一: 1、将程序中的lib库copy到 /lib或者 /usr/local/lib目录下 2、执行ldconfig ldconfig命令的用途, 主要是在默认搜寻目录(/lib和/usr/lib)以及动态库配置文件/etc/ld.so.conf内所列的目录下 方法二: 推荐学习:《Linux视频教程》 以上就是linux 找不到lib怎么办的详细内容,更多请关注gxlsystem.com其它相关文章!error while loading shared libraries: xxx: cannot open shared object file: No such file or directory
# vim /etc/ld.so.conf //在新的一行中加入库文件所在目录
/xx//xxxxx
# ldconfig //更新/etc/ld.so.cache文件