当前位置: 技术问答>linux和unix
redhat7.3安装MPlayer的问题
来源: 互联网 发布时间:2014-12-19
本文导语: 先运行 ./configure --prefix=/usr/MPlayer 然后就显示 Detected operating system: Linux Detected host architecture: i386 Checking for gcc version ... 2.96, bad Checking for gcc-3.1 version ... not found Checking for gcc3 version ... not found Checkin...
先运行 ./configure --prefix=/usr/MPlayer
然后就显示
Detected operating system: Linux
Detected host architecture: i386
Checking for gcc version ... 2.96, bad
Checking for gcc-3.1 version ... not found
Checking for gcc3 version ... not found
Checking for gcc-3.0 version ... not found
Checking for cc version ... 2.96, bad
*** Please downgrade/upgrade C compiler to version gcc-2.95.x or gcc-3.x! ***
You are not using a supported compiler. We do not have the time to make sure
everything works with compilers other than the ones we use. Use either the
same compiler as we do, or use --disable-gcc-checking but DO *NOT* REPORT BUGS
unless you can reproduce them after recompiling with a 2.95.x or 3.x version!
Note for gcc 2.96 users: Some versions of this compiler are known to miscompile
mplayer and lame (which is used for mencoder). If you get compile errors,
first upgrade to the latest 2.96 release (minimum 2.96-85) and try again.
If the problem still exists, try with gcc 3.x (or 2.95.x) *BEFORE* reporting
bugs!
GCC 2.96 IS NOT AND WILL NOT BE SUPPORTED BY US !
*** For details please read DOCS/users_against_developers.html ***
Error: Bad gcc version
Check configure.log if you do not understand why it failed.
要怎么解决?
然后就显示
Detected operating system: Linux
Detected host architecture: i386
Checking for gcc version ... 2.96, bad
Checking for gcc-3.1 version ... not found
Checking for gcc3 version ... not found
Checking for gcc-3.0 version ... not found
Checking for cc version ... 2.96, bad
*** Please downgrade/upgrade C compiler to version gcc-2.95.x or gcc-3.x! ***
You are not using a supported compiler. We do not have the time to make sure
everything works with compilers other than the ones we use. Use either the
same compiler as we do, or use --disable-gcc-checking but DO *NOT* REPORT BUGS
unless you can reproduce them after recompiling with a 2.95.x or 3.x version!
Note for gcc 2.96 users: Some versions of this compiler are known to miscompile
mplayer and lame (which is used for mencoder). If you get compile errors,
first upgrade to the latest 2.96 release (minimum 2.96-85) and try again.
If the problem still exists, try with gcc 3.x (or 2.95.x) *BEFORE* reporting
bugs!
GCC 2.96 IS NOT AND WILL NOT BE SUPPORTED BY US !
*** For details please read DOCS/users_against_developers.html ***
Error: Bad gcc version
Check configure.log if you do not understand why it failed.
要怎么解决?
|
不能使用 gcc 2.96 编译!!! 具体的看下面:
---------------------------------------------------------------------------------------------------
mplayer 解决方案---改进版
一定要注意我的目录,你可根据需要进行修改。下面的操作我在RedHat Linux 7.3,SUSE linux 8.0通过。
1、先到这下载这五个文件(最后两个分别是用来支持播放avi及rm格式的影音文件,如果你不需这方面的功能,也可不下载)
(1)主程序: http://ftp.lug.udel.edu/MPlayer/rel....90pre6.tar.bz2
(2)字体文件:http://ftp.lug.udel.edu/MPlayer/rel...-iso-8859-1.zip
(3)Skin文件:ftp://ftp.lug.udel.edu/MPlayer/Skin/plastic.tar.bz2
(4)w32支持库(播放avi必需):http://ftp.lug.udel.edu/MPlayer/rel...ec-0.60.tar.bz2
(5)RealPlay支持库(播放realplay文件所需):http://www.linuxsir.com.cn/software/real/real.tar.bz2
2、把这五个文件均拷入/root下,并分别用bunzip2 与tar 解开。如:
[root@localhost root]# bunzip2 -d MPlayer-0.90pre6.tar.bz2 plastic.tar.bz2 w32codec-0.60.tar.bz2 real.tar.bz2
[root@localhost root]# tar vfx MPlayer-0.90pre6.tar
[root@localhost root]# tar vfx plastic.tar
[root@localhost root]# tar vfx w32codec-0.60.tar
[root@localhost root]# tar vfx real.tar
[root@localhost root]# unzip mp-arial-iso-8859-1.zip
3、拷贝w32codec支持库及realplay支持库(一定要先执行这一步,而且拷入的目录一定要注意!如果你以安装了realplay8或realplay9也可不需拷入realplay的支持库,只是下面运行configure时要注意它所在的目录!!!):
[root@localhost root]# mkdir /usr/lib/win32
[root@localhost root]# cp /root/w32codec/* /usr/lib/win32
[root@localhost root]# cp -r /root/real /usr/lib
4、进入mplayer安装目录并执行(一定要注意我的参数!!!)
[root@localhost root]# cd MPlayer-0.90pre6/
[root@localhost MPlayer-0.90pre6]# ./configure --enable-gui --disable-gcc-checking --with-reallibdir=/usr/lib/real
#说明:--enable-gui是用来支持图形界面的播入器,--disable-gcc-checking是用来跳过对gcc版本的检查(但不保证在所有的linux下都能通过下面的操作。如有这种情况,请说明),--with-reallibdir=/usr/lib/real是用来指定realplay支持库所在的目录。如果你已安装了realplay 8那这个选项应该为:--with-reallibdir=/usr/lib/RealPlay8/codecs 如果你已安装了realplay 9(你可根据实际修改):--with-reallibdir=/root/Real/codecs
5、依次执行:
[root@localhost MPlayer-0.90pre6]# make
[root@localhost MPlayer-0.90pre6]# make install
6、拷入字体:
[root@localhost MPlayer-0.90pre6]# cp /root/iso-8859-1/arial-14/* /usr/local/share/mplayer/font/
7、拷入Skin:
[root@localhost MPlayer-0.90pre6]# cp -r /root/plastic /usr/local/share/mplayer/Skin/default
8、拷入input.conf文件:
[root@localhost MPlayer-0.90pre6]# cp /root/MPlayer-0.90pre6/etc/input.conf /usr/local/share/mplayer/
9、修改/root/.mplayer/config文件,使之内容与下面基本相同:
vo=xv
ao=oss
fs=yes
zoom=yes
gui = yes
skin = default
cache = 16384
10、在X下运行:gmplayer 可启动图形界面播入模式,运行:mplayer可以启动字符播放模式。
---------------------------------------------------------------------------------------------------
mplayer 解决方案---改进版
一定要注意我的目录,你可根据需要进行修改。下面的操作我在RedHat Linux 7.3,SUSE linux 8.0通过。
1、先到这下载这五个文件(最后两个分别是用来支持播放avi及rm格式的影音文件,如果你不需这方面的功能,也可不下载)
(1)主程序: http://ftp.lug.udel.edu/MPlayer/rel....90pre6.tar.bz2
(2)字体文件:http://ftp.lug.udel.edu/MPlayer/rel...-iso-8859-1.zip
(3)Skin文件:ftp://ftp.lug.udel.edu/MPlayer/Skin/plastic.tar.bz2
(4)w32支持库(播放avi必需):http://ftp.lug.udel.edu/MPlayer/rel...ec-0.60.tar.bz2
(5)RealPlay支持库(播放realplay文件所需):http://www.linuxsir.com.cn/software/real/real.tar.bz2
2、把这五个文件均拷入/root下,并分别用bunzip2 与tar 解开。如:
[root@localhost root]# bunzip2 -d MPlayer-0.90pre6.tar.bz2 plastic.tar.bz2 w32codec-0.60.tar.bz2 real.tar.bz2
[root@localhost root]# tar vfx MPlayer-0.90pre6.tar
[root@localhost root]# tar vfx plastic.tar
[root@localhost root]# tar vfx w32codec-0.60.tar
[root@localhost root]# tar vfx real.tar
[root@localhost root]# unzip mp-arial-iso-8859-1.zip
3、拷贝w32codec支持库及realplay支持库(一定要先执行这一步,而且拷入的目录一定要注意!如果你以安装了realplay8或realplay9也可不需拷入realplay的支持库,只是下面运行configure时要注意它所在的目录!!!):
[root@localhost root]# mkdir /usr/lib/win32
[root@localhost root]# cp /root/w32codec/* /usr/lib/win32
[root@localhost root]# cp -r /root/real /usr/lib
4、进入mplayer安装目录并执行(一定要注意我的参数!!!)
[root@localhost root]# cd MPlayer-0.90pre6/
[root@localhost MPlayer-0.90pre6]# ./configure --enable-gui --disable-gcc-checking --with-reallibdir=/usr/lib/real
#说明:--enable-gui是用来支持图形界面的播入器,--disable-gcc-checking是用来跳过对gcc版本的检查(但不保证在所有的linux下都能通过下面的操作。如有这种情况,请说明),--with-reallibdir=/usr/lib/real是用来指定realplay支持库所在的目录。如果你已安装了realplay 8那这个选项应该为:--with-reallibdir=/usr/lib/RealPlay8/codecs 如果你已安装了realplay 9(你可根据实际修改):--with-reallibdir=/root/Real/codecs
5、依次执行:
[root@localhost MPlayer-0.90pre6]# make
[root@localhost MPlayer-0.90pre6]# make install
6、拷入字体:
[root@localhost MPlayer-0.90pre6]# cp /root/iso-8859-1/arial-14/* /usr/local/share/mplayer/font/
7、拷入Skin:
[root@localhost MPlayer-0.90pre6]# cp -r /root/plastic /usr/local/share/mplayer/Skin/default
8、拷入input.conf文件:
[root@localhost MPlayer-0.90pre6]# cp /root/MPlayer-0.90pre6/etc/input.conf /usr/local/share/mplayer/
9、修改/root/.mplayer/config文件,使之内容与下面基本相同:
vo=xv
ao=oss
fs=yes
zoom=yes
gui = yes
skin = default
cache = 16384
10、在X下运行:gmplayer 可启动图形界面播入模式,运行:mplayer可以启动字符播放模式。
|
--disable-gcc-checking是用来跳过对gcc版本的检查(但不保证在所有的linux下都能通过下面的操作。如有这种情况,请说明)
这一个就够了。
这一个就够了。