Compile and install QEMU under Ubuntu

Compile and install QEMU under Ubuntu

Due to environmental requirements, QEMU 2.1.2 was manually compiled and installed in the ubuntu14.04 environment today.

QEMU download address: http://wiki.qemu-project.org/download/qemu-2.1.2.tar.bz2

The specific download and decompression steps will not be repeated here, mainly referring to some dependent packages prepared by the environment. The most important thing to compile QEMU is gcc, so we need to install gcc first.

root@localhost:~# apt-get install gcc-3.4 cpp-3.4

The installation of QEMU requires the support of the SDL development library, as well as the installation of zlib and ESD:

root@localhost:~# apt-get install zlib1g-dev zlib1g-dbg libesd0-dev automake

So far, the prerequisites for installing QEMU have been resolved. Now we can start to compile and install.

root@localhost:~# cd qemu-2.1.2/
root@localhost:~# ./configure
root@localhost:~# make && make install

The time of make is very slow, I calculated it about 1 hour.

Let me talk about the problems and solutions I encountered in the process of compiling QEMU:

Error type:
make: *** [/root/qemu-2.1.2/pixman/configure] Error 127

Solution:
apt-get install -y automake

Recommended Posts

Compile and install QEMU under Ubuntu
Ubuntu 16.04 compile and install PHP 7.2
ubuntu18.04 compile and install python3.8
Compile and install OpenJDK8 from source code under Ubuntu 18.04.1
Install and deploy Gerrit under Ubuntu
Install nodejs and npm under Ubuntu 16.04
Compile and install libmodbus library under CentOS7
Ubuntu 18.04 source code compile and install ffmpeg4.1
Install apache+PHP under Ubuntu
Install node.js under Ubuntu
Install python3.6 under Ubuntu 16.04
Install Thrift under ubuntu 14.10
Install OpenJDK10 under Ubuntu
Install Caffe under Ubuntu 14.04
2018-09-11 Install arduino under Ubuntu
Install ROS under ROS Ubuntu 18.04[2]
Install MySQL under Ubuntu
CentOs7.3 compile and install Nginx 1.9.9
Centos compile and install Git
ubuntu install and configure GitLab
Install server-side Shadowsocks under Ubuntu 16.04
CentOS 6 compile and install python 3
Ubuntu16.04 install SVN and configuration
Ubuntu16.04 install and uninstall VMware-Workstation 14
Install rgl package under Ubuntu
Install win7 and archlinux on hard disk under ubuntu
Cpp web (1) Install and use Crow service under Ubuntu
Compile and install Lnmp shell script under Linux centos
Install and configure keepalived under CentOS 5.9
Install and use dig under ubuntu/debian
Talk about | Install and use Linux system Ubuntu under Win10
CentOS Yum compile and install MySQL 5.6
Install and configure MySQL on Ubuntu
How to compile ijkplayer-android under ubuntu
Install 3 single-cell R packages under Ubuntu
CentOS 6.x compile and install Nginx
Install and configure Docker in Ubuntu
CentOS7 compile and install L(A|N)MP environment
[Daily] Install php pdo extension and import database under ubuntu
Install MySQL under Ubuntu 18.04 (graphic tutorial)
Install JDK1.8 original under Ubuntu Kylin
Redis installation under ubuntu and windows
Small tool: install screenshot tool under ubuntu
Install and use docker under CentOS 6.8
How to compile and install PHP and Nginx in Ubuntu environment
Install Python3 and Py under CentOS7
Coexistence of CUDA8.0 and CUDA9.0 under Ubuntu 16.04
Linux CentOS6 compile and install Pyt
How to install Audacious under Ubuntu
How to install Tensorflow under ubuntu 16.04
Install Mono 3.2 and Jexus 5.4 under CentOS 6.3
Install the latest version of Thunderbird and exchange plugins under ubuntu
Install Gnome and VNC on Ubuntu Server
51 MCU program development and download under Ubuntu
CentOS7.5 source code compile and install mysql5.7.29
Install linux (ubuntu) dual system under windows system
[Daily] Win10 open and install ubuntu subsystem
Ubuntu install Elasticsearch and elasticsearch-analysis-ik word segmentation
Installation and uninstallation of CUDA under Ubuntu 16.04
Install docker on ubuntu and basic usage
Ubuntu19.10 compile and run C language program