In
Download the source code compressed file for qemuin http://wiki.qemu.org/downloadand import it to /home/qemu.
[Plain]View plaincopy
- Cd/home/qemu
- Tar-jxvf qemu-2.1.3.tar.bz2
Go to/home/qemu/qemu-2.1.3 and compile
[Plain]View plaincopy
- Cd qemu
- ./Configure
An error may be reported later:
[Plain]View plaincopy
- ERROR: "cc" either does not exist or does not work
The gcc compiler is not installed.
[Plain]View plaincopy
- Yum install gcc *
Continue to run./configure. errors may occur.
[Plain]View plaincopy
- Error: zlib check failed
- Make sure to have the zlib libs and headers installed.
Zlib-related software must be installed.
[Plain]View plaincopy
- Yum install zlib *
Run./configure again, and there may be errors
[Plain]View plaincopy
- Glib-2.12 required to compile QEMU
Install the glib-related modules.
[Plain]View plaincopy
- Yum install-y glib *
- ./Configure
- Make
./Configure successful, continue running make failed, error
[Plain]View plaincopy
- /Bin/sh: autoreconf: command not found make: *** [/home/qemu-2.1.3/pixman/configure] Error 127
It indicates that there is a problem with make. install these three
[Plain]View plaincopy
- Yum install autoconf automake libtool
- Make
- Make install
Successfully installed qemu-2.1.3