LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1392|回复: 13

mplayer安装的问题

[复制链接]
发表于 2008-2-21 22:52:46 | 显示全部楼层 |阅读模式
我刚开始接触LINUX,用的CENTOS5系统,想装一个MPLAYER,在官网上下了个MPlayer-1.0rc2,进入终端执行./configure --enable-gui --enable-largefiles --enable-menu --enable-freetype --prefix=/usr --codecsdir=/usr/lib/codecs/ --win32codecsdir=/usr/lib/wincodecs/ --confdir=/etc/mplayer --language=zh_CN提示信息为etected operating system: Linux
Detected host architecture: i386
Checking for cc version ... not found
Checking for gcc version ... not found
Checking for gcc-3.4 version ... not found
Checking for gcc-3.3 version ... not found
Checking for gcc-3.2 version ... not found
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 ... not found

*** Please downgrade/upgrade C compiler to version gcc-2.95, 3.x or 4.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-check but DO *NOT* REPORT BUGS
unless you can reproduce them after recompiling with a 2.95.x or 3/4.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 !


Error: Bad gcc version

Check "configure.log" if you do not understand why it failed.哪位大哥帮看下,感激不尽。
发表于 2008-2-21 23:09:08 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-2-22 08:39:41 | 显示全部楼层
我己照你的链接中去做,做到这时:
#rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm
没出现安全警告。做到这时:
.[root@localhost MPlayer-1.0pre8]# ./configure –enable-gui –with-codecsdir=/usr/lib/codecs/ –with-win32libdir=/usr/lib/wincodecs/
系统提示信息如下:
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... not found
Checking for gcc version ... not found
Checking for gcc-3.4 version ... not found
Checking for gcc-3.3 version ... not found
Checking for gcc-3.2 version ... not found
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 ... not found

*** 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/HTML/en/users-vs-dev.html ***


Error: Bad gcc version

Check "configure.log" if you do not understand why it failed.
谢谢你哦,有空的时候再帮我看下啊
回复 支持 反对

使用道具 举报

发表于 2008-2-22 15:50:01 | 显示全部楼层
可能你还没搞清楚YUM是搞什么的。
其实做到那一步接下来是不用编译了的。接下来
安装包

#rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
#yum install mplayer

接下来就从DAG下载编译好的RPM包安装MPLAYER了,不用编译了。
回复 支持 反对

使用道具 举报

发表于 2008-2-22 20:56:59 | 显示全部楼层
如果要编译安装,那么就需要有包支持,看信息楼主的gcc版本太低,或者没有装,所以报错了
*** Please downgrade/upgrade C compiler to version gcc-2.95, 3.x or 4.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-check but DO *NOT* REPORT BUGS
unless you can reproduce them after recompiling with a 2.95.x or 3/4.x version!

chinabiue的方法是用yum直接安装mplayer,而无需你自己编译


如果想继续编译安装,可以试试

su
#yum install gcc* cc
然后再尝试编译
另外看看mplayer解压后包里的install文件
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-2-23 02:55:31 | 显示全部楼层
谢谢两位啊,今天又前进了一步,前进了一步又出问题了:
[root@localhost MPlayer-1.0pre8]# make
Makefile:7: config.mak: 没有那个文件或目录
make: *** 没有规则可以创建目标“config.mak”。 停止。
烦请再帮看下哈。先谢了。
回复 支持 反对

使用道具 举报

发表于 2008-2-23 09:18:46 | 显示全部楼层
我以前编译安装的时候也出现过这个问题,可能是你下载的那个mplayer不支持fedora8自带的gcc版本。可以换个gcc版本或者直接添加livna源然后yum install mplayer-gui -y安装mplayer,安装后添加解码器就可以了。

其实yum起来更方便。
回复 支持 反对

使用道具 举报

发表于 2008-2-23 12:45:57 | 显示全部楼层
...无语了...都说了用yum...
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-2-23 13:30:14 | 显示全部楼层
呵呵,搞好了。谢谢大哥
回复 支持 反对

使用道具 举报

发表于 2008-2-23 16:27:03 | 显示全部楼层
哈哈 你要多多学习知识
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表