mplayer: error while loading shared libraries:libavcodec.so.53

问题: mplayer: error while loading shared libraries: libavcodec.so.53 


问题分析:运行mplayer时不能出现如上的错误,原因时因为没有找到对应的动态库文件,mplayer播放的时候只有声音没有画面;


解决办法:

在终端运行:

which mplayer

打印出

/usr/bin/mplayer



再运行:

ldd /usr/bin/mplayer

打印出:

linux-vdso.so.1 =>  (0x00007fff483ef000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f8517ca6000)
	libsmbclient.so.0 => /usr/lib/x86_64-linux-gnu/libsmbclient.so.0 (0x00007f851748f000)
	libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f8517266000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f851704f000)
	libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f8516dff000)
	libgif.so.4 => /usr/lib/x86_64-linux-gnu/libgif.so.4 (0x00007f8516bf5000)
	libasound.so.2 => /usr/lib/x86_64-linux-gnu/libasound.so.2 (0x00007f8516908000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8516704000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f85164e6000)
	libbluray.so.1 => /usr/lib/x86_64-linux-gnu/libbluray.so.1 (0x00007f85162b7000)
	libdvdread.so.4 => /usr/lib/libdvdread.so.4 (0x00007f8516092000)
	libcdda_interface.so.0 => /usr/lib/x86_64-linux-gnu/libcdda_interface.so.0 (0x00007f8515e80000)
	libcdda_paranoia.so.0 => /usr/lib/x86_64-linux-gnu/libcdda_paranoia.so.0 (0x00007f8515c77000)
	libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f85159da000)
	libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f85157a3000)
	libass.so.4 => /usr/lib/x86_64-linux-gnu/libass.so.4 (0x00007f851557f000)
	libfribidi.so.0 => /usr/lib/libfribidi.so.0 (0x00007f8515369000)
	libenca.so.0 => /usr/lib/libenca.so.0 (0x00007f8515135000)
	libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f8514f09000)
	libogg.so.0 => /usr/lib/x86_64-linux-gnu/libogg.so.0 (0x00007f8514d02000)
	libspeex.so.1 => /usr/lib/x86_64-linux-gnu/libspeex.so.1 (0x00007f8514ae8000)
	libtheora.so.0 => /usr/lib/x86_64-linux-gnu/libtheora.so.0 (0x00007f851489c000)
	libdca.so.0 => /usr/lib/libdca.so.0 (0x00007f8514673000)
	libfaad.so.2 => /usr/lib/libfaad.so.2 (0x00007f8514430000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8514130000)
	libavutil.so.51 => /usr/lib/x86_64-linux-gnu/libavutil.so.51 (0x00007f8513f10000)
	libavcodec.so.53 => /usr/lib/x86_64-linux-gnu/libavcodec.so.53 (0x00007f85130fd000)
	libavformat.so.53 => /usr/lib/x86_64-linux-gnu/libavformat.so.53 (0x00007f8512dfd000)
	libswscale.so.2 => /usr/lib/x86_64-linux-gnu/libswscale.so.2 (0x00007f8512bb7000)
	libpostproc.so.52 => /usr/lib/x86_64-linux-gnu/libpostproc.so.52 (0x00007f851298f000)
	libxvidcore.so.4 => /usr/lib/x86_64-linux-gnu/libxvidcore.so.4 (0x00007f8512658000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f851235c000)
	libdvdnavmini.so.4 => /usr/lib/libdvdnavmini.so.4 (0x00007f8512141000)
	libdirectfb-1.2.so.9 => /usr/lib/libdirectfb-1.2.so.9 (0x00007f8511ebc000)
	libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f8511cab000)
	libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f8511975000)
	libXv.so.1 => /usr/lib/x86_64-linux-gnu/libXv.so.1 (0x00007f851176f000)
	libvdpau.so.1 => /usr/lib/x86_64-linux-gnu/libvdpau.so.1 (0x00007f851156b000)
	libXinerama.so.1 => /usr/lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007f8511367000)
	libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f8511162000)
	libXxf86dga.so.1 => /usr/lib/libXxf86dga.so.1 (0x00007f8510f5c000)
	libaa.so.1 => /usr/lib/x86_64-linux-gnu/libaa.so.1 (0x00007f8510d3c000)
	libcaca.so.0 => /usr/lib/x86_64-linux-gnu/libcaca.so.0 (0x00007f8510a71000)
	libSDL-1.2.so.0 => /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0 (0x00007f85107d7000)
	libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f8510576000)
	libesd.so.0 => /usr/lib/x86_64-linux-gnu/libesd.so.0 (0x00007f851036b000)
	libaudio.so.2 => /usr/lib/x86_64-linux-gnu/libaudio.so.2 (0x00007f8510153000)
	libpulse.so.0 => /usr/lib/x86_64-linux-gnu/libpulse.so.0 (0x00007f850ff0a000)
	libjack.so.0 => /usr/lib/x86_64-linux-gnu/libjack.so.0 (0x00007f850fcc6000)
	liblirc_client.so.0 => /usr/lib/liblirc_client.so.0 (0x00007f850fabf000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f850f8a8000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f850f4ea000)
	libtalloc.so.2 => /usr/lib/x86_64-linux-gnu/libtalloc.so.2 (0x00007f850f2de000)
	libtdb.so.1 => /usr/lib/x86_64-linux-gnu/libtdb.so.1 (0x00007f850f0cc000)
	libwbclient.so.0 => /usr/lib/x86_64-linux-gnu/libwbclient.so.0 (0x00007f850eebe000)
	libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f850ecb9000)
	libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f850ea9c000)
	libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f850e882000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f850e67a000)
	libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f850e43a000)
	libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f850e16c000)
	libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f850df44000)
	libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f850dd3f000)
	libldap_r-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 (0x00007f850daf0000)
	liblber-2.4.so.2 => /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 (0x00007f850d8e2000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f8517ef8000)
	libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f850d6b7000)
	libvpx.so.1 => /usr/lib/x86_64-linux-gnu/libvpx.so.1 (0x00007f850d41b000)
	libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f850cf4b000)
	libtheoraenc.so.1 => /usr/lib/x86_64-linux-gnu/libtheoraenc.so.1 (0x00007f850cd0e000)
	libtheoradec.so.1 => /usr/lib/x86_64-linux-gnu/libtheoradec.so.1 (0x00007f850caf3000)
	libschroedinger-1.0.so.0 => /usr/lib/libschroedinger-1.0.so.0 (0x00007f850c83f000)
	libgsm.so.1 => /usr/lib/libgsm.so.1 (0x00007f850c631000)
	libva.so.1 => /usr/lib/x86_64-linux-gnu/libva.so.1 (0x00007f850c41b000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f850c20a000)
	libdirect-1.2.so.9 => /usr/lib/libdirect-1.2.so.9 (0x00007f850bff1000)
	libfusion-1.2.so.9 => /usr/lib/libfusion-1.2.so.9 (0x00007f850bde6000)
	libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f850bbc8000)
	libncurses.so.5 => /lib/x86_64-linux-gnu/libncurses.so.5 (0x00007f850b9a6000)
	libslang.so.2 => /lib/x86_64-linux-gnu/libslang.so.2 (0x00007f850b635000)
	libgpm.so.2 => /usr/lib/x86_64-linux-gnu/libgpm.so.2 (0x00007f850b42f000)
	libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007f850b201000)
	libpulse-simple.so.0 => /usr/lib/x86_64-linux-gnu/libpulse-simple.so.0 (0x00007f850affd000)
	libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f850add7000)
	libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f850abd3000)
	libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f850a9cd000)
	libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f850a7cb000)
	libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f850a5b3000)
	libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f850a3ae000)
	libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f850a1a3000)
	libaudiofile.so.1 => /usr/lib/x86_64-linux-gnu/libaudiofile.so.1 (0x00007f8509f70000)
	libXt.so.6 => /usr/lib/x86_64-linux-gnu/libXt.so.6 (0x00007f8509d0a000)
	libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f8509b07000)
	libjson.so.0 => /usr/lib/x86_64-linux-gnu/libjson.so.0 (0x00007f85098fe000)
	libpulsecommon-1.1.so => /usr/lib/x86_64-linux-gnu/libpulsecommon-1.1.so (0x00007f85096a0000)
	libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f850945c000)
	libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f8509253000)
	libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f850904f000)
	libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f8508e33000)
	libgssapi.so.3 => /usr/lib/x86_64-linux-gnu/libgssapi.so.3 (0x00007f8508bf5000)
	libgnutls.so.26 => /usr/lib/x86_64-linux-gnu/libgnutls.so.26 (0x00007f8508939000)
	libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11 (0x00007f85086b9000)
	liborc-0.4.so.0 => /usr/lib/x86_64-linux-gnu/liborc-0.4.so.0 (0x00007f8508434000)
	libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f850822d000)
	libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007f8508025000)
	libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007f8507e0a000)
	libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007f8507c01000)
	libsndfile.so.1 => /usr/lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007f850799b000)
	libasyncns.so.0 => /usr/lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007f8507794000)
	libheimntlm.so.0 => /usr/lib/x86_64-linux-gnu/libheimntlm.so.0 (0x00007f850758d000)
	libkrb5.so.26 => /usr/lib/x86_64-linux-gnu/libkrb5.so.26 (0x00007f8507306000)
	libasn1.so.8 => /usr/lib/x86_64-linux-gnu/libasn1.so.8 (0x00007f8507066000)
	libhcrypto.so.4 => /usr/lib/x86_64-linux-gnu/libhcrypto.so.4 (0x00007f8506e32000)
	libroken.so.18 => /usr/lib/x86_64-linux-gnu/libroken.so.18 (0x00007f8506c1d000)
	libtasn1.so.3 => /usr/lib/x86_64-linux-gnu/libtasn1.so.3 (0x00007f8506a0b000)
	libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f85067f9000)
	libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f85065f5000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f85063ef000)
	libFLAC.so.8 => /usr/lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007f85061a5000)
	libwind.so.0 => /usr/lib/x86_64-linux-gnu/libwind.so.0 (0x00007f8505f7b000)
	libheimbase.so.1 => /usr/lib/x86_64-linux-gnu/libheimbase.so.1 (0x00007f8505d6c000)
	libhx509.so.5 => /usr/lib/x86_64-linux-gnu/libhx509.so.5 (0x00007f8505b22000)
	libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f850587e000)
	libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f8505645000)


发现其中有三个库没有找到(上面的命令是在我修复好之后执行的,所以并没有出现缺少动态库的情况):

	libavcodec.so.53 => not found
	libavutil.so.51 => not found
	libswscale.so.2 => not found




在终端运行下面的命令安装对应的动态库文件:

sudo apt-get install libavcodec53 libavutil51

再次执行ldd命令就会发现没有缺少的动态库文件了,可以愉快的玩耍了!


补充:

当出现

libswscale.so.2 => not found
安装:

sudo apt-get install libswscale-extra-2
解决!


参考:http://blog.csdn.net/lwj103862095/article/details/8201668

你可能感兴趣的:(Linux)