在 CentOS 6.4 中安装 VLC 2.0.7?

在 CentOS 6.4 中安装 VLC 2.0.7?

我尝试过的安装过程一直失败。

我已开始如下流程。

yum install gcc dbus-glib-devel* lua-devel* libcddb
wget http://download.videolan.org/pub/videolan/vlc/2.0.7/vlc-2.0.7.tar.xz
tar -xf vlc-2.0.7.tar.xz && cd vlc-2.0.7
./configure

在配置中我收到如下错误

configure: WARNING: No package 'libcddb' found: CDDB access disabled.
checking for Linux DVB version 5... yes
checking for DVBPSI... no
checking gme/gme.h usability... no
checking gme/gme.h presence... no
checking for gme/gme.h... no
checking for SID... no
configure: WARNING: No package 'libsidplay2' found (required for sid).
checking for OGG... no
configure: WARNING: Library ogg >= 1.0 needed for ogg was not found
checking for MUX_OGG... no
configure: WARNING: Library ogg >= 1.0 needed for mux_ogg was not found
checking for SHOUT... no
configure: WARNING: Library shout >= 2.1 needed for shout was not found
checking ebml/EbmlVersion.h usability... no
checking ebml/EbmlVersion.h presence... no
checking for ebml/EbmlVersion.h... no
checking for LIBMODPLUG... no
configure: WARNING: No package 'libmodplug' found
No package 'libmodplug' found.
checking mpc/mpcdec.h usability... no
checking mpc/mpcdec.h presence... no
checking for mpc/mpcdec.h... no
checking mpcdec/mpcdec.h usability... no
checking mpcdec/mpcdec.h presence... no
checking for mpcdec/mpcdec.h... no
checking for libcrystalhd/libcrystalhd_if.h... no
checking mad.h usability... no
checking mad.h presence... no
checking for mad.h... no
configure: error: Could not find libmad on your system: you may get it from http://www.underbit.com/products/mad/. Alternatively you can use --disable-mad to disable the mad plugin.
[root@localhost vlc-2.0.7]# 

所以我去了自由的http位置并下载了它,但在执行 make 时出现了错误。在 ./configure 中使用 libmad 没有错误,但 make 没有通过。

[root@localhost libmad-0.15.0b]# make
(sed -e '1s|.*|/*|' -e '1b' -e '$s|.*| */|' -e '$b'  \
        -e 's/^.*/ *&/' ./COPYRIGHT; echo;  \
    echo "# ifdef __cplusplus";  \
    echo 'extern "C" {';  \
    echo "# endif"; echo;  \
    if [ ".-DFPM_INTEL" != "." ]; then  \
        echo ".-DFPM_INTEL" | sed -e 's|^\.-D|# define |'; echo;  \
    fi;  \
    sed -ne 's/^# *define  *\(HAVE_.*_ASM\).*/# define \1/p'  \
        config.h; echo;  \
    sed -ne 's/^# *define  *OPT_\(SPEED\|ACCURACY\).*/# define OPT_\1/p'  \
        config.h; echo;  \
    sed -ne 's/^# *define  *\(SIZEOF_.*\)/# define \1/p'  \
        config.h; echo;  \
    for header in version.h fixed.h bit.h timer.h stream.h frame.h synth.h decoder.h; do  \
        echo;  \
        sed -n -f ./mad.h.sed ./$header;  \
    done; echo;  \
    echo "# ifdef __cplusplus";  \
    echo '}';  \
    echo "# endif") >mad.h
make  all-recursive
make[1]: Entering directory `/home/raja/Downloads/libmad-0.15.0b'
make[2]: Entering directory `/home/raja/Downloads/libmad-0.15.0b'
if /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DFPM_INTEL -DASO_ZEROCHECK    -Wall -march=i486 -g -O -fforce-mem -fforce-addr -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -fexpensive-optimizations -fregmove -fschedule-insns2 -fstrength-reduce -MT version.lo -MD -MP -MF ".deps/version.Tpo" \
      -c -o version.lo `test -f 'version.c' || echo './'`version.c; \
    then mv -f ".deps/version.Tpo" ".deps/version.Plo"; \
    else rm -f ".deps/version.Tpo"; exit 1; \
    fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I. -DFPM_INTEL -DASO_ZEROCHECK -Wall -march=i486 -g -O -fforce-mem -fforce-addr -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -fexpensive-optimizations -fregmove -fschedule-insns2 -fstrength-reduce -MT version.lo -MD -MP -MF .deps/version.Tpo -c version.c  -fPIC -DPIC -o .libs/version.lo
cc1: error: unrecognized command line option "-fforce-mem"
make[2]: *** [version.lo] Error 1
make[2]: Leaving directory `/home/raja/Downloads/libmad-0.15.0b'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/raja/Downloads/libmad-0.15.0b'
make: *** [all] Error 2

我该如何解决这个问题并在我的 Centos 中安装 VLC?

我正在使用 CentOS 6.4。谢谢。

答案1

解决方案在 CentOS 6.4 上安装 VLC

打开终端并按照以下步骤操作

cd /etc/yum.repos.d/

获得http://pkgrepo.linuxtech.net/el6/release/linuxtech.repo

yum 安装 vlc

享受开源环境。

答案2

您可以在系统上使用 RPM Fusion EL6。http://rpmfusion.org/配置并在您的系统中安装 repo,然后通过 Yum 安装。

答案3

在 CentOS 6.4 上,可以通过执行以下命令成功安装 VLC 2.0指示

相关内容