CentOS下源码安装mplayer播放器
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播放器的更多相关文章
- 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 ...
- CentOS下源码安装vsftpd-3.0.0,并设置指定用户访问指定目录(附带完整配置文件)
1.卸载系统已经存在的ftp服务器 因为是源码安装,所以不能通过rpm -qa的方式查看是否已经安装ftp服务器,可以通过find / | grep vsftp*方式查看系统中存在哪些与vsftpd相 ...
- 在 CentOS 下源码安装 Xen
http://www.vpsee.com/2010/04/install-xen-on-centos-from-source/ 在 CentOS 源码编译安装 Xen 的过程和在 Debian 上编译 ...
- Centos下源码安装git
1.centos下git版本太久了,才1.8几,而官方更新的还是很活跃的,于是我就想源码安装一个新版本. 2.首先到: https://github.com/git/git/releases 下载最新 ...
- CentOS下源码安装MySQL
一.创建mysql用户与组,相关目录 useradd mysql -s /sbin/nologin mkdir /usr/local/mysql chown -R mysql.mysql mkdir ...
- CentOS 下源码安装LAMP环境
一.简介 什么是LAMP LAMP是一种Web网络应用和开发环境,是Linux, Apache, MySQL, Php/Perl的缩写,每一个字母代表了一个组件,每个组件就其本身而言都是在它所代 ...
- ubuntu14.0 (arm平台)源码安装 VLC播放器
环境 ubuntu14.0 arm开发板 源 deb http://mirrors.ustc.edu.cn/ubuntu-ports/ trusty main multiverse restrict ...
- 在CentOS下源码安装 Xen并搭建Windows虚拟机
前言 首先要感谢xing的帮助,在他的指导之下才完成环境的搭建,本文档的部分内容来自他的文档.另外,还要感谢——互联网. 1. 环境介绍 Linux: CentOS 6.3 Xen: Xe ...
- centos 6x系统下源码安装mysql操作记录
在运维工作中经常部署各种运维环境,涉及mysql数据库的安装也是时常需要的.mysql数据库安装可以选择yum在线安装,但是这种安装的mysql一般是系统自带的,版本方面可能跟需求不太匹配.可以通过源 ...
随机推荐
- JAVA的面向对象编程--------课堂笔记
面向对象主要针对面向过程. 面向过程的基本单元是函数. 什么是对象:EVERYTHING IS OBJECT(万物皆对象) 所有的事物都有两个方面: 有什么(属性):用来描述对象. 能够做什么 ...
- C# 参考之方法参数关键字:params、ref及out
如果在为方法声明参数时未使用 ref 或 out,则该参数可以具有关联的值.可以在方法中更改该值,但当控制传递回调用过程时,不会保留更改的值.通过使用方法参数关键字,可以更改这种行为. params ...
- mysql cluster (mysql 集群)安装配置方案(转)
一.准备 1.准备服务器 计划建立有5个节点的MySQL CLuster体系,需要用到5台服务器,但是我们做实验时没有这么多机器,可以只用2台,我就是一台本机,一台虚拟机搭建了有5个节点的MySQL ...
- 操作sqlserver数据库常用的三个方法
1. ADO.NET -> 连接字符串,常用的两种方式: server=计算机名或ip\实例名;database=数据库名;uid=sa;pwd=密码; server=计算机名或ip\实例名;d ...
- linux的vnc- rdesktop远程登录windows桌面
使用vnc来实现任何平台之间(windows, linux, mac等)的远程桌面互访 vnc:virtual network computing 分 vnc server和 vnc client 在 ...
- UVa12726 one Friend at a Time (位 广搜)
题目链接:UVa12726 是个PDF,不好复制进来. 大意:有个人要追个妹子,想加妹子QQ,但是不知道谁规定的,玩QQ的人要加好友必须先要有至少k个共同好友.共有N个人玩QQ,编号为1到N,1是男主 ...
- HDU 4920 Matrix multiplication (硬件优化)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4920 解题报告:求两个800*800的矩阵的乘法. 参考这篇论文:http://wenku.baidu ...
- [Effective JavaScript 笔记]第6章:库和API设计--个人总结
前言 又到了一章的总结,这章里的内容.是把我从一个代码的使用者,如何换位成一个代码的编写者.如何让别人用自己的代码更容易,不用去注意太多的无用细节,不用记住冗长的函数名.在使用API时怎样避免使用者会 ...
- [BZOJ1171][BZOJ2892]大sz的游戏
[BZOJ1171][BZOJ2892]大sz的游戏 试题描述 大sz最近在玩一个由星球大战改编的游戏.话说绝地武士当前共控制了N个星球.但是,西斯正在暗处悄悄地准备他们的复仇计划.绝地评议会也感觉到 ...
- Linux文件与目录常用命令
目录常用命令: cd:切换目录 pwd:显示当前目录 mkdir:新建一个目录 rmdir:删除一个空的目录 ## cd 命令几种常用方法: cd ~username 切换到用户username的主文 ...