ffmpeg: error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directory
ffmpeg默认安装目录为“/usr/local/lib”,有些64位系统下软件目录则为“/usr/lib64”,编译过程中可能会出现“ffmpeg: error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directory”等类似的错误,解决办法是建立软链接或者移动库文件到相应的目录:
解决办法:ln -s /usr/local/lib/libmp3lame.so.0.0.0 /usr/lib64/libmp3lame.so.0
mv /usr/local/lib/libmp3lame.so.0.0.0 /usr/lib64/libmp3lame.so.0
ffmpeg: error while loading shared libraries: libx264.so.155: cannot open shared object file: No such file or directory
解决方法:编辑ld.so.conf添加/usr/local/x264/lib
vi /etc/ld.so.conf
输入i进入编辑
插入/usr/local/x264/lib
再按esc再按:wq保存退出
执行 ldconfig是配置生效
这时候问题解决
转载请注明:本文转载自在线助手|在线工具博客,原文链接:https://www.it399.com/blog/ffmpeg/201807011707