如何加载正确的libavcodec.so共享库版本? (53) [英] How to load correct libavcodec.so shared library version? (53)
问题描述
加载共享库时出错:libavcodec.so.53:无法打开共享对象文件:没有这样的文件或目录
我使用libav安装ffmpeg并尝试以下命令:
sudo apt-get install ffmpeg libavcodec- dev libavformat-dev
sudo apt-get install ffmpeg libavcodec-extra-53
sudo apt-get install libav-tools
当我在同一台机器上构建二进制文件时,不会显示该错误,但是在第二台机器上编译会更快。
UDPATE:我也运行 sudo apt-get install update
和 sudo apt-get安装pkg-config
而不会改变输出。 (OS = 12.04)
https://sites.google.com/site/linuxencoding/builds
尝试从ffmpeg安装linux二进制文件
只是为了让每个用户受益于这个答案,我添加了可用于不同平台的ffmpeg二进制文件的链接
for centOS http://pkgs.repoforge.org/ffmpeg/
安装教程:
http://www.rackspace.com/knowledge_center/article/centos-installing-ffmpeg
for Windows < a href =http://ffmpeg.zeranoe.com/builds/ =nofollow> http://ffmpeg.zeranoe.c om / builds /
我还制作了一个视频教程来安装二进制文件。但这是在mac。但是我假设它对于linux是一样的。
https://www.youtube.com/watch?v=wiLNqg2IOAQ
希望这有助于
I am using libavcodec and libavformat in my project but when I execute a binary which was built on another machine, I get the following error:
error while loading shared libraries: libavcodec.so.53: cannot open shared object file: No such file or directory
I installed ffmpeg with libav and trying the following commands:
sudo apt-get install ffmpeg libavcodec-dev libavformat-dev
sudo apt-get install ffmpeg libavcodec-extra-53
sudo apt-get install libav-tools
The error doesnt show up when I build the binary on the same machine, but it would be much faster to compile on a second machine.
UDPATE: I also ran sudo apt-get install update
and sudo apt-get install pkg-config
without any change in the output. (OS = 12.04)
https://sites.google.com/site/linuxencoding/builds
try installing the linux binary for ffmpeg from the above website.
just so that every user benefits from this answer i am adding links to ffmpeg binaries available for different platforms
for centOS http://pkgs.repoforge.org/ffmpeg/
Tutorial for installation :
http://www.rackspace.com/knowledge_center/article/centos-installing-ffmpeg
for mac http://ffmpegmac.net/
for windows http://ffmpeg.zeranoe.com/builds/
also i have made a video tutorial to install a binary. but this is on mac. but i assume its the same for linux to.
https://www.youtube.com/watch?v=wiLNqg2IOAQ
hope this helps
这篇关于如何加载正确的libavcodec.so共享库版本? (53)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!