qemu仿真虚拟机安装
1、在线安装
sudo apt-get install qemu
2、源码安装
官网下载源码 https://www.qemu.org/
解压tar
进入qemu目录,
./configure
报错:ERROR: glib-2.48 gthread-2.0 is required to compile QEMU
解决方法:
sudo apt-get install build-essential zlib1g-dev pkg-config libglib2.0-dev binutils-dev libboost-all-dev autoconf libtool libssl-dev libpixman-1-dev libpython-dev python-pip python-capstone virtualenv
再报错: ERROR: pixman >= 0.21.8 not present.
解决方法:
用apt-cache查找了关于pixman的依赖包,安装libpixman-1-dev的那个包
apt-get install libpixman-1-dev
编译:
make
3、安装成功: qemu + tab 补全 查支持的开发板