RHEL/CentOS Linux 安装VLC播放器

RHEL/CentOS Linux 安装VLC播放器

1. RHEL/CentOS 8

    $> su -
    #> yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
    #> yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
    #> yum install vlc
    #> yum install vlc-core (可选,For minimal headless/server install)
    #> yum install python-vlc (可选)

2. RHEL/CentOS 7

    $> su -
    #> subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"  (RHEL下需要执行这一条)
    #> yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    #> yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
    #> yum install vlc
    #> yum install vlc-core (可选,For minimal headless/server install)
    #> yum install python-vlc npapi-vlc (可选)

3. RHEL/CentOS 6

    $> su -
    #> yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
    #> yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-6.noarch.rpm
    #> yum install vlc
    #> yum install vlc-core (可选,For minimal headless/server install)
    #> yum install python-vlc npapi-vlc (可选)

官方链接: VLC media player for Red Hat Enterprise Linux

4. 问题解决

a) VLC is not supposed to be run as root

cp /usr/bin/vlc /usr/bin/vlc-backup
needle=$(objdump -d /usr/bin/vlc | grep euid | tail -1 | awk '{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6;}')
sed -ir "s/$needle/\xb8\x01\x00\x00\x00/" /usr/bin/vlc

执行上面三条命令,vlc就可以以root方式运行了。
参考链接: Run vlc as root

b) libQt5XcbQpa.so.5: undefined symbol: FT_Get_Font_Format

运行 vlc时,报 libQt5XcbQpa.so.5: undefined symbol: FT_Get_Font_Format 的错误:
解决办法:安装 freetype和 freetype-devel

yum -y install freetype freetype-devel
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

尹笑辉

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值