http://www.mplayerhq.hu/MPlayer/releases/
[root@ok MPlayer-1.2.1]# pwd
/root/MPlayer-1.2.1
http://www.mplayerhq.hu/MPlayer/releases/codecs/
[root@ok Desktop]# ls
all-20061022 all-20061022.tar.bz2
[root@ok Desktop]# mkdir /usr/local/lib/codec
[root@ok Desktop]# mv -f all-20061022/* /usr/local/lib/codecs/
[root@ok MPlayer-1.2.]# yum install *alsa*
#先装这个在安装MPlayer不然没声音

[root@ok MPlayer-1.2.1]# pwd
/root/MPlayer-1.2.1
[root@ok MPlayer-1.2.1]# ./configure --codecsdir=/usr/local/lib/codecs --enable-gui
make && make install
原地址:http://www.xitongzhijia.net/xtjc/20150228/39477.html
http://www.centoscn.com/image-text/install/2014/0419/2815.html

卸载原有的播放器:

root     15481     1  0 22:39 ?        00:00:00 totem /home/iptables/15-企业实战案例1-部署企业上网网关实战讲解01_rec.mp4
[root@ok MPlayer-1.2.1]# which totem
/usr/bin/totem
[root@ok MPlayer-1.2.1]# rpm -qf /usr/bin/totem
totem-2.28.6-4.el6.x86_64
[root@ok MPlayer-1.2.1]# yum remove totem

-------------------------------------------

configure时报错:

Checking for yasm ...
Error: yasm not found, use --yasm='' if you really want to compile without
[root@ok Software]# git clone git://github.com/yasm/yasm.git
Initialized empty Git repository in /data/Software/yasm/.git/
remote: Counting objects: , done.
remote: Total (delta ), reused (delta ), pack-reused
Receiving objects: % (/), 27.20 MiB | KiB/s, done.
Resolving deltas: % (/), done.
[root@ok yasm]# ./autogen.sh
[root@ok yasm]# ./configure
[root@ok yasm]# make && make install 再次编译成功!!

====================================

安装成功了,但学是报错如下图:

http://www.mplayerhq.hu/MPlayer/skins/ 下载

Blue-small-1.9.tar.bz2 
[root@ok Software]# cp -rf Blue-small /usr/local/share/mplayer/skins/
[root@ok Software]# cd /usr/local/share/mplayer/skins/
[root@ok skins]# ls
Blue-small
[root@ok skins]# mv Blue-small/ default
[root@ok skins]# ls
default

问题解决!!

========================

如果没有声音:

[root@ok MPlayer-1.2.1]# yum install *alsa*

再重新装一下,问题解决!!!

===============================2016.11.12-安装问题=========================

[root@NB MPlayer-1.2.]# ./configure --codecsdir=/usr/local/lib/codec --enable-gui
Checking for ffmpeg/libavcodec/allcodecs.c ... found
Checking for ffmpeg/libavformat/allformats.c ... found
Checking for ffmpeg/libavfilter/allfilters.c ... found
Checking for working compiler ...
Error: Compiler is not functioning correctly. Check your installation and custom CFLAGS . Check "config.log" if you do not understand why it failed.
[root@NB MPlayer-1.2.]# tail config.log 

============ Checking for working compiler ============

int main(void) { return ; }

cc    /tmp/mplayer-configure--/tmp.c      -o /tmp/mplayer-configure--/tmp
./configure: line : cc: command not found
[root@NB MPlayer-1.2.]# yum install gcc
是因为gcc没安装

又报错:

Error: The GUI requires X11.

Check "config.log" if you do not understand why it failed.
[root@NB MPlayer-1.2.]# yum install -y xorg-x11*
不过再 次configure 还是报错
Checking for GTK+ version ... no Error: GTK+ version devel packages were not found (required for GUI). Check "config.log" if you do not understand why it failed.
[root@NB MPlayer-1.2.1]# tail config.
config.h    config.log  
[root@NB MPlayer-1.2.1]# tail config.log
cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-configure-8753-17123/tmp.c  -fpie -DPIC -D_REENTRANT    -ffast-math -fpie -pie   -lrt   -lXext -lX11 -lpthread -lXxf86vm -lGL -ldl  -o /tmp/mplayer-configure-8753-17123/tmp -lXext -lm Result is: yes
########################################## ============ Checking for GTK+ version ============
Result is: no
##########################################
[root@NB MPlayer-1.2.]# yum install gtk* -y

重新编译成功!!!这个是完美的(全屏问题解决)

Checking for yasm ...
Error: yasm not found, use --yasm='' if you really want to compile without Check "config.log" if you do not understand why it failed.
Error: GTK+ version  devel packages were not found (required for GUI).

yum install gtk2-devel

CentOS下源码安装mplayer播放器的更多相关文章

  1. CentOS下源码安装Apache2.4+PHP5.4+MySQL5.5

    一.准备(把所有的源文件放在‘/home/yuanjun’目录下) apr http://mirror.bjtu.edu.cn/apache/apr/apr-1.4.6.tar.gz apr-util ...

  2. CentOS下源码安装vsftpd-3.0.0,并设置指定用户访问指定目录(附带完整配置文件)

    1.卸载系统已经存在的ftp服务器 因为是源码安装,所以不能通过rpm -qa的方式查看是否已经安装ftp服务器,可以通过find / | grep vsftp*方式查看系统中存在哪些与vsftpd相 ...

  3. 在 CentOS 下源码安装 Xen

    http://www.vpsee.com/2010/04/install-xen-on-centos-from-source/ 在 CentOS 源码编译安装 Xen 的过程和在 Debian 上编译 ...

  4. Centos下源码安装git

    1.centos下git版本太久了,才1.8几,而官方更新的还是很活跃的,于是我就想源码安装一个新版本. 2.首先到: https://github.com/git/git/releases 下载最新 ...

  5. CentOS下源码安装MySQL

    一.创建mysql用户与组,相关目录 useradd mysql -s /sbin/nologin mkdir /usr/local/mysql chown -R mysql.mysql mkdir ...

  6. CentOS 下源码安装LAMP环境

    一.简介 什么是LAMP    LAMP是一种Web网络应用和开发环境,是Linux, Apache, MySQL, Php/Perl的缩写,每一个字母代表了一个组件,每个组件就其本身而言都是在它所代 ...

  7. ubuntu14.0 (arm平台)源码安装 VLC播放器

    环境 ubuntu14.0  arm开发板 源 deb http://mirrors.ustc.edu.cn/ubuntu-ports/ trusty main multiverse restrict ...

  8. 在CentOS下源码安装 Xen并搭建Windows虚拟机

    前言 首先要感谢xing的帮助,在他的指导之下才完成环境的搭建,本文档的部分内容来自他的文档.另外,还要感谢——互联网. 1.       环境介绍 Linux: CentOS 6.3 Xen: Xe ...

  9. centos 6x系统下源码安装mysql操作记录

    在运维工作中经常部署各种运维环境,涉及mysql数据库的安装也是时常需要的.mysql数据库安装可以选择yum在线安装,但是这种安装的mysql一般是系统自带的,版本方面可能跟需求不太匹配.可以通过源 ...

随机推荐

  1. Android模拟器端口被占用问题的解决办法

    一.问题描述 今天在Eclipse中运行Android项目时遇到"The connection to adb is down, and a severe error has occured& ...

  2. Ubuntu14.04编译安装mysql5.6.26

    Ubuntu14.04编译安装mysql5.6.26 (1)安装编译源码需要的包 sudo apt-get install make cmake gcc g++ bison libncurses5-d ...

  3. GIT本地操作

    01. GIT简介(PPT) ================================================================================ 02. ...

  4. 使用注解实现IOC

    在biz业务处理类实现类中 /** * 用户业务类,实现对User功能的业务管理 */ @Service("userBiz") public class UserBiz imple ...

  5. TreeSet里面放对象,如果同时放入了父类和子类的实例对象,那比较时使用的是父类的compareTo方法,还是使用的子类的compareTo方法,还是抛异常!

    /** * * @author ocq */ class Parent implements Comparable { private int age = 0; public Parent(int a ...

  6. svn命令在linux下的使用

    svn命令在linux下的使用 SVN软件版本管理 三 12th, 2008 转载本站文章请注明,转载自:扶凯[[url]http://www.php-oa.com[/url]] 本文链接: [url ...

  7. Node.js 创建HTTP服务器(经过测试,这篇文章是靠谱的T_T)

    Node.js 创建HTTP服务器 如果我们使用PHP来编写后端的代码时,需要Apache 或者 Nginx 的HTTP 服务器,并配上 mod_php5 模块和php-cgi. 从这个角度看,整个& ...

  8. avalon框架,简单的MVVM

    今天我又要挑战一次一个高大上的公司了 但是看着jd有点忧伤了要求如下 基本要求:1.熟悉 HTML / CSS / JS 并有良好的代码风格:2.理解 Web 标准,语义化,可以解决主流浏览器及不同版 ...

  9. ExtJS学习之路第一步:对比jQuery,认识ExtJS

    最近纷杂的事情比较多了,奔波ing!所以,Node.js 和Canvas动画系列都停止了,等稳定了再重拾书本继续学习!因为某种原因最近在看ExtJS,分享下学习的心得,希望对同道中人有所帮助. 第一用 ...

  10. ubuntu下手把手教你搭建SVN服务器

    序,我的ubuntu服务器版本是14.04 ,x64(64位)操作系统,服务器在国内. 目录 一.安装SVN服务器 1 安装svn2 创建目录3 创建版本仓库4 配置5 启动SVN服务器6 验证svn ...