linux编译mmplay,linux 下安装 mplayer 出现的编译错误 (急求解决!!)

~本人刚接触linux  遇到了下面的 问题

一时不 知道怎么解决  望高手赐教

GNOME界面

[root@localhost MPlayer-1.0rc2]# lsb_release -a

LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch

Distributor ID: RedHatEnterpriseServer

Description:    Red Hat Enterprise Linux Server release 5.1 (Tikanga)

Release:        5.1

Codename:       Tikanga

[root@localhost MPlayer-1.0rc2]# ./configure

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, 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.

[root@localhost MPlayer-1.0rc2]#

是不 是向网上所说的安装没完全!!

请指点时详细些     新手来着。。

|

没有安装 gcc 啊

先用你的 dist 的包管理器安装 gcc

|

我现在用的linux上网,安装很简单,读readme,

look

localhost 纳兰容若]$ mplayer

MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team

CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-52 (Family: 15, Model: 72, Stepping: 2)

CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1

Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

Usage:   mplayer [options] [url|path/]filename

Basic options: (complete list in the man page)

-vo         select video output driver ('-vo help' for a list)

-ao         select audio output driver ('-ao help' for a list)

vcd://  play (S)VCD (Super Video CD) track (raw device, no mount)

dvd://  play DVD title from device instead of plain file

-alang/-slang    select DVD audio/subtitle language (by 2-char country code)

-ss    seek to given (seconds or hh:mm:ss) position

-nosound         do not play sound

-fs              fullscreen playback (or -vm, -zoom, details in the man page)

-x  -y     set display resolution (for use with -vm or -zoom)

-sub       specify subtitle file to use (also see -subfps, -subdelay)

-playlist  specify playlist file

-vid x -aid y    select video (x) and audio (y) stream to play

-fps x -srate y  change video (x fps) and audio (y Hz) rate

-pp     enable postprocessing filter (details in the man page)

-framedrop       enable frame dropping (for slow machines)

Basic keys: (complete list in the man page, also check input.conf)

seek backward/forward 10 seconds

down or up       seek backward/forward  1 minute

pgdown or pgup   seek backward/forward 10 minutes

step backward/forward in playlist

p or SPACE       pause movie (press any key to continue)

q or ESC         stop playing and quit program

+ or -           adjust audio delay by +/- 0.1 second

o                cycle OSD mode:  none / seekbar / seekbar + timer

* or /           increase or decrease PCM volume

x or z           adjust subtitle delay by +/- 0.1 second

r or t           adjust subtitle position up/down, also see -vf expand

* * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *

|

最好使用像yum或者是apt_get之类的命令来安装比较好,可以自动解决依赖问题和验证问题

|

这是安装ubuntu下

C标准库文件的命令

sudo apt-get install build-essential

linux内核头文件

sudo apt-get install linux-headers-`uname -r`

如果不是ubuntu 把apt-get换成yum试试

|

下载源码,

readme

./configure && make && make install && make    clean

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值