ubuntu安装qemu
1.安装一些依赖
# 必要
sudo apt-get install git libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev pip
sudo python3 -m pip install ninja
sudo python3 -m pip install meson
# 非必要
sudo apt-get install git-email
sudo apt-get install libaio-dev libbluetooth-dev libbrlapi-dev libbz2-dev
sudo apt-get install libcap-dev libcap-ng-dev libcurl4-gnutls-dev libgtk-3-dev
sudo apt-get install libibverbs-dev libjpeg8-dev libncurses5-dev libnuma-dev
sudo apt-get install librbd-dev librdmacm-dev
sudo apt-get install libsasl2-dev libsdl1.2-dev libseccomp-dev libsnappy-dev libssh2-1-dev
sudo apt-get install libvde-dev libvdeplug-dev libvte-2.90-dev libxen-dev liblzo2-dev
sudo apt-get install valgrind xfslibs-dev
2.clone qemu的源码进行编译和安装
git clone git://git.qemu-project.org/qemu.git # clone qemu的代码
cd ./qemu # 转到qemu代码目录
./configure # 运行qemu的配置脚本
make # 编译构建
sudo make install # 安装qemu
输入下面的命令,显示版本号则代表安装成功
qemu-riscv64 --version
标签:get,qemu,sudo,dev,apt,install,ubuntu,安装
From: https://www.cnblogs.com/trigger-cn/p/16792585.html