首页 > 其他 > 详细

ffmpeg: error while loading shared libraries: libavdevice.so.58: cannot open shared object file: No such file or directory

时间:2019-12-30 11:26:30      阅读:77      评论:0      收藏:0      [点我收藏+]

参考链接:https://blog.csdn.net/weixin_43166958/article/details/89335679

原因:源码安装软件未进行环境变量配置,找不到启动路径

解决:vi /etc/ld.so.conf

在文件中添加路径:
/usr/local/ffmpeg/lib
#usr/local/ffmpeg 目录是ffmpeg的安装目录,根据个人不同安装目录修改。
更新环境变量:ldconfig

加入全局环境变量路径:vi /etc/profile

在文件中加入以下内容:
export PATH="/usr/local/ffmpeg/bin:$PATH"

然后保存并运行:source /etc/profile

ffmpeg: error while loading shared libraries: libavdevice.so.58: cannot open shared object file: No such file or directory

原文:https://www.cnblogs.com/xiesx/p/12118231.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!