centos7 vlc
时间: 2023-10-07 20:07:32 浏览: 175
在CentOS 7上安装VLC软件包,你可以使用以下命令:
sudo yum install -y vlc
如果你在安装过程中遇到报错信息:VLC is not supposed to be run as root. Sorry. If you need to use real-time priorities and/or privileged TCP ports you can use vlc-wrapper (make sure it is Set-UID root and cannot be run by non-trusted users first)。你可以按照以下步骤进行修复:
1. 备份VLC二进制文件:
cp /usr/bin/vlc /usr/bin/vlc-backup
2. 执行以下命令获取修复所需的needle值:
needle=$(objdump -d /usr/bin/vlc | grep euid | tail -1 | awk '{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6;}')
3. 通过sed命令将needle值替换为修复值:
sed -ir "s/$needle/\xb8\x01\x00\x00\x00/" /usr/bin/vlc
此外,如果在编译VLC时出现错误提示:configure: error: Missing libav or FFmpeg. Pass --disable-avcodec to ignore this error. 则可以使用--disable-avcodec选项来忽略该错误。
希望这些信息对你有帮助!
阅读全文
相关推荐
















