编译准备
安装开发工具
yum -y groupinstall "development tools"
安装epel源
# yum install epel* -y
# yum makecache
安装依赖
yum -y install ncurses-devel openssl-devel elfutils-libelf-devel bc rsync rpmdevtools python3 gcc gtk2-devel
yum install dnf-plugins-core -y
dnf config-manager --set-enabled powertools
yum install ninja-build -y
yum install gtk2-devel -y
yum install liburing-devel.x86_64 liburing.x86_64 -y
yum install libaio-devel.x86_64 -y
通过wget下载源码
wget https://download.qemu.org/qemu-6.1.0-rc2.tar.xz
tar xvJf qemu-6.1.0-rc2.tar.xz
cd qemu-6.1.0-rc2
./configure
make
通过git下载源码
git clone https://mirrors.tuna.tsinghua.edu.cn/git/qemu.git
cd qemu
git submodule init
git submodule update --recursive
./configure
make
make install
验证
# qemu-system-x86_64 --version
QEMU emulator version 6.0.0 (v6.0.0)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
————————————————
推荐本站淘宝优惠价购买喜欢的宝贝:
本文链接:https://hqyman.cn/post/7042.html 非本站原创文章欢迎转载,原创文章需保留本站地址!
休息一下~~