ffmpeg: error while loading shared libraries: libavdevice.so.57

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

[email protected]:/usr/local/lib$ sudo vi /etc/ld.so.conf

修改如下

include ld.so.conf.d/*.conf
/usr/local/ffmpeg/lib       ///usr/local/ffmpeg 目录是我ffmpeg安装目录,根据你的安装目录改吧
[email protected]:/usr/local/lib$ 
[email protected]:/usr/local/lib$ 
[email protected]:/usr/local/lib$ 
[email protected]:/usr/local/lib$ ldconfig
/sbin/ldconfig.real: Can‘t create temporary cache file /etc/ld.so.cache~: Permission denied
[email protected]:/usr/local/lib$ sudo ldconfig

为 Ffmpeg 加入环境变量
vi /etc/profile
加入以下内容:
export PATH="/usr/local/ffmpeg/bin:$PATH"

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

[email protected]:/usr/local/lib$ ffmpeg -version
ffmpeg version 3.1.3 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration: --enable-shared --disable-yasm --prefix=/usr/local/ffmpeg
libavutil      55. 28.100 / 55. 28.100
libavcodec     57. 48.101 / 57. 48.101
libavformat    57. 41.100 / 57. 41.100
libavdevice    57.  0.101 / 57.  0.101
libavfilter     6. 47.100 /  6. 47.100
libswscale      4.  1.100 /  4.  1.100
libswresample   2.  1.100 /  2.  1.100
[email protected]:/usr/local/lib$

原文地址:https://www.cnblogs.com/blackhumour2018/p/9427836.html

时间: 2024-11-09 01:45:37

ffmpeg: error while loading shared libraries: libavdevice.so.57的相关文章

ffmpeg: error while loading shared libraries: libavdevice.so.52

今天在编译安装ffmpeg的时候出现了题目中的问题,最终解决方案如下: errors: ffmpeg正常安装后执行ffmpeg时出现如下错误:ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory 解决办法:vi /etc/ld.so.conf加入:/usr/local/lib 注:这里必须用vi进行编辑,直

解决ffmpeg执行报错“ffmpeg: error while loading shared libraries: libavdevice.so.58: cannot open shared object file: No such file or directory”的问题

问题现象: 执行ffmpeg命令后报错: ffmpeg: error while loading shared libraries: libavdevice.so.58: cannot open shared object file: No such file or directory 出问题的环境信息为: Fedora release 31 (Thirty One) ffmpeg-4.2.1 官方源码编译 看下需要哪些依赖: ldd ffmpeg 可以看到缺失的依赖 我们找下这些文件在哪里 f

Nginx 启动出错 error while loading shared libraries: libpcre.so.1

在 centos 6.5  64位上编译安装nginx1.63语法检查出错[root @localhost conf]# /usr/local/nginx/sbin/nginx -t /usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 从错误看出是缺少lib文件导致,进一步

sqlplus: error while loading shared libraries解决方法

dbca建库后sqlplus提示如下 $ sqlplus / as sysdba sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied 解决方法 将selinux功能关掉 root用户 将/etc/selinux/c

error while loading shared libraries: libluajit-5.1.so.2: cannot open shared 解决办法

一般我们在Linux下执行某些外部程序的时候可能会提示找不到共享库的错误, 比如: tmux: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory 原因一般有两个, 一个是操作系统里确实没有包含该共享库(lib*.so.*文件)或者共享库版本不对, 遇到这种情况那就去网上下载并安装上即可. 另外一个原因就是已经安装了该共

/bin/gnugk: error while loading shared libraries: libcrypto.so.0.9.8:

[[email protected] ~]# /bin/gnugk -c /etc/gnugk/gnugk.ini -ttttt -o /var/log/gnugk.log/bin/gnugk: error while loading shared libraries: libcrypto.so.0.9.8: cannot open shared object file: No such file or directory 解决方法: [[email protected] ~]# yum -y

安装了libevent和memcached之后却发现在执行的时候出现了 error while loading shared libraries问题

今天晚上心血来潮装libevent和memcached,可是却出现了奇葩的问题,结果一看越来是引导文件的路径不对! 我遇到  error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory 这样的问题是在安装memcached的时候遇到的. 我按别人的攻略安装了libevent和memcached之后却发现在执行的时候出现了. er

linux下报错:error while loading shared libraries

linux执行bin程序报: error while loading shared libraries:libncurses.so.5: cannot open shared object file: No such file or directory 解决方法: yum -y install libncurses.so.5 安装这个库之后有可能报: error while loading shared libraries:libstdc++so.6: cannot open shared ob

Linux下error while loading shared libraries的解决方法

1. 出现error while loading shared libraries的原因 1-1. 不存在该共享库,如果是这个原因,需要下载或者编译该共享库先了. 1-2. 存在该共享库,但是找不到或者共享库的不对 如果是第二种情况,请继续往下看. 2.原因分析 系统查看共享库的过程:首先查找 /etc/ld.so.cache文件,如果找不到就查找环境变量里的LD_LIBRARY_PATH的值,如果找到了就到对应的目录加载该共享库,如果找不到就报error while loading share