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