qemu安装

简介: 1 下载qemu  wget http://wiki.qemu-project.org/download/qemu-2.4.1.tar.bz2 2 解压qemu tar -jxvf qemu-2.

1 下载qemu 

wget http://wiki.qemu-project.org/download/qemu-2.4.1.tar.bz2

2 解压qemu

tar -jxvf qemu-2.4.1.tar.bz2

3 安装qemu

./configure

报错

[root@localhost qemu-2.4.1]# ./configure 
Disabling libtool due to broken toolchain support

ERROR: zlib check failed
       Make sure to have the zlib libs and headers installed.

解决第一个问题:

[root@localhost qemu-2.4.1]# yum install libtool
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: ftp.sjtu.edu.cn
 * extras: centos.ustc.edu.cn
 * updates: ftp.sjtu.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libtool.x86_64 0:2.2.6-15.5.el6 will be installed
--> Processing Dependency: automake >= 1.4 for package: libtool-2.2.6-15.5.el6.x86_64
--> Processing Dependency: autoconf >= 2.58 for package: libtool-2.2.6-15.5.el6.x86_64
--> Running transaction check
---> Package autoconf.noarch 0:2.63-5.1.el6 will be installed
---> Package automake.noarch 0:1.11.1-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                Arch                 Version                       Repository          Size
====================================================================================================
Installing:
 libtool                x86_64               2.2.6-15.5.el6                base               564 k
Installing for dependencies:
 autoconf               noarch               2.63-5.1.el6                  base               781 k
 automake               noarch               1.11.1-4.el6                  base               550 k

Transaction Summary
====================================================================================================
Install       3 Package(s)

Total download size: 1.9 M
Installed size: 5.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): autoconf-2.63-5.1.el6.noarch.rpm                                      | 781 kB     00:00     
(2/3): automake-1.11.1-4.el6.noarch.rpm                                      | 550 kB     00:00     
(3/3): libtool-2.2.6-15.5.el6.x86_64.rpm                                     | 564 kB     00:00     
----------------------------------------------------------------------------------------------------
Total                                                               3.5 MB/s | 1.9 MB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : autoconf-2.63-5.1.el6.noarch                                                     1/3 
  Installing : automake-1.11.1-4.el6.noarch                                                     2/3 
  Installing : libtool-2.2.6-15.5.el6.x86_64                                                    3/3 
  Verifying  : libtool-2.2.6-15.5.el6.x86_64                                                    1/3 
  Verifying  : autoconf-2.63-5.1.el6.noarch                                                     2/3 
  Verifying  : automake-1.11.1-4.el6.noarch                                                     3/3 

Installed:
  libtool.x86_64 0:2.2.6-15.5.el6                                                                   

Dependency Installed:
  autoconf.noarch 0:2.63-5.1.el6                   automake.noarch 0:1.11.1-4.el6                  

Complete!

./configure

[root@localhost qemu-2.4.1]# ./configure 

ERROR: zlib check failed
       Make sure to have the zlib libs and headers installed.

安装zlib

[root@localhost qemu-2.4.1]# yum install zlib*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: ftp.sjtu.edu.cn
 * extras: centos.ustc.edu.cn
 * updates: ftp.sjtu.edu.cn
Setting up Install Process
Package zlib-1.2.3-29.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package zlib-devel.x86_64 0:1.2.3-29.el6 will be installed
---> Package zlib-static.x86_64 0:1.2.3-29.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                   Arch                 Version                    Repository          Size
====================================================================================================
Installing:
 zlib-devel                x86_64               1.2.3-29.el6               base                44 k
 zlib-static               x86_64               1.2.3-29.el6               base                52 k

Transaction Summary
====================================================================================================
Install       2 Package(s)

Total download size: 96 k
Installed size: 227 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): zlib-devel-1.2.3-29.el6.x86_64.rpm                                    |  44 kB     00:00     
(2/2): zlib-static-1.2.3-29.el6.x86_64.rpm                                   |  52 kB     00:00     
----------------------------------------------------------------------------------------------------
Total                                                               580 kB/s |  96 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : zlib-devel-1.2.3-29.el6.x86_64                                                   1/2 
  Installing : zlib-static-1.2.3-29.el6.x86_64                                                  2/2 
  Verifying  : zlib-devel-1.2.3-29.el6.x86_64                                                   1/2 
  Verifying  : zlib-static-1.2.3-29.el6.x86_64                                                  2/2 

Installed:
  zlib-devel.x86_64 0:1.2.3-29.el6                 zlib-static.x86_64 0:1.2.3-29.el6                

Complete!

./configure

[root@localhost qemu-2.4.1]# ./configure 

ERROR: glib-2.22 gthread-2.0 is required to compile QEMU

安装glib

[root@localhost qemu-2.4.1]# yum install -y glib*
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: ftp.sjtu.edu.cn
 * extras: centos.ustc.edu.cn
 * updates: ftp.sjtu.edu.cn
Setting up Install Process
Package glibmm24-2.22.1-1.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package glib-networking.x86_64 0:2.28.6.1-2.2.el6 will be installed
---> Package glib2.x86_64 0:2.22.5-7.el6 will be updated
.......................

./configure

[root@localhost qemu-2.4.1]# ./configure 
Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
library directory /usr/local/lib
module directory  /usr/local/lib/qemu
libexec directory /usr/local/libexec
include directory /usr/local/include
config directory  /usr/local/etc
local state directory   /usr/local/var
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /root/qemu-2.4.1
C compiler        cc
Host C compiler   cc
C++ compiler      c++
Objective-C compiler cc
ARFLAGS           rv
CFLAGS            -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -g 
QEMU_CFLAGS       -I$(SRC_PATH)/pixman/pixman -I$(BUILD_DIR)/pixman/pixman -I$(SRC_PATH)/dtc/libfdt -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common  -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-all
LDFLAGS           -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64 -g 
make              make
install           install
python            python -B
smbd              /usr/sbin/smbd
module support    no
host CPU          x86_64
host big endian   no
target list        aarch64-softmmu alpha-softmmu arm-softmmu cris-softmmu i386-softmmu lm32-softmmu m68k-softmmu microblazeel-softmmu microblaze-softmmu mips64el-softmmu mips64-softmmu mipsel-softmmu mips-softmmu moxie-softmmu or32-softmmu ppc64-softmmu ppcemb-softmmu ppc-softmmu s390x-softmmu sh4eb-softmmu sh4-softmmu sparc64-softmmu sparc-softmmu tricore-softmmu unicore32-softmmu x86_64-softmmu xtensaeb-softmmu xtensa-softmmu aarch64-linux-user alpha-linux-user armeb-linux-user arm-linux-user cris-linux-user i386-linux-user m68k-linux-user microblazeel-linux-user microblaze-linux-user mips64el-linux-user mips64-linux-user mipsel-linux-user mips-linux-user mipsn32el-linux-user mipsn32-linux-user or32-linux-user ppc64abi32-linux-user ppc64le-linux-user ppc64-linux-user ppc-linux-user s390x-linux-user sh4eb-linux-user sh4-linux-user sparc32plus-linux-user sparc64-linux-user sparc-linux-user unicore32-linux-user x86_64-linux-user
tcg debug enabled no
gprof enabled     no
sparse enabled    no
strip binaries    yes
profiler          no
static build      no
pixman            internal
SDL support       no
GTK support       no
GNUTLS support    no
GNUTLS hash       no
GNUTLS gcrypt     no
GNUTLS nettle     no ()
VTE support       no
curses support    yes
curl support      no
mingw32 support   no
Audio drivers     oss
Block whitelist (rw) 
Block whitelist (ro) 
VirtFS support    no
VNC support       yes
VNC TLS support   no
VNC SASL support  no
VNC JPEG support  no
VNC PNG support   no
xen support       no
brlapi support    no
bluez  support    no
Documentation     no
GUEST_BASE        yes
PIE               yes
vde support       no
netmap support    no
Linux AIO support yes
ATTR/XATTR support yes
Install blobs     yes
KVM support       yes
RDMA support      no
TCG interpreter   no
fdt support       yes
preadv support    yes
fdatasync         yes
madvise           yes
posix_madvise     yes
sigev_thread_id   yes
uuid support      no
libcap-ng support no
vhost-net support yes
vhost-scsi support yes
Trace backends    nop
spice support     no
rbd support       no
xfsctl support    no
nss used          no
libusb            no
usb net redir     no
OpenGL support    no
libiscsi support  no
libnfs support    no
build guest agent yes
QGA VSS support   no
QGA w32 disk info no
seccomp support   no
coroutine backend ucontext
coroutine pool    yes
GlusterFS support no
Archipelago support no
gcov              gcov
gcov enabled      no
TPM support       yes
libssh2 support   no
TPM passthrough   yes
QOM debugging     yes
vhdx              no
lzo support       no
snappy support    no
bzip2 support     no
NUMA host support no
tcmalloc support  no

make

make install

相关文章
|
8月前
|
算法 关系型数据库 测试技术
WHQL微软驱动签名方案,让驱动程序在Windows系统流畅运行
WHQL认证(Windows徽标认证)是微软设立的严格测试标准,旨在确保驱动程序的兼容性、稳定性和互通性。本文介绍了三种WHQL微软驱动签名方案:单系统签名、多系统签名和硬件兼容性测试方案,分别满足不同开发商的需求。通过WHQL认证,不仅能消除Windows安装警告,提升用户体验,还能获得“Designed for Windows”徽标授权,入列全球Windows Catalog及HCL产品表,提升品牌权威性和采购优先权。此外,访问微软OCA可获取错误反馈,助力产品质量改进。选择合适的签名方案,让驱动在Windows系统中流畅运行!
|
机器学习/深度学习 数据采集 人工智能
探索人工智能中的深度学习模型优化策略
探索人工智能中的深度学习模型优化策略
480 13
|
NoSQL Ubuntu 网络协议
qemu 虚拟机
qemu 虚拟机
386 8
|
关系型数据库 MySQL 数据库
Windows 安装 MySQL 5.7 x64 位
Windows 安装 MySQL 5.7 x64 位
1365 0
量规(Rubric)
量规(Rubric)是一种常用于教育和评估领域的工具,用于帮助评估者对学生的表现进行评分。它通常包含一系列具体的评估标准,以及每个标准对应的分数范围。量规可以确保评估过程的客观性和一致性,使得评估者能够更加准确地对学生表现进行评分。
655 5
【论文速递】EMNLP2022:随机模态缺失情况下的多模态情感分析
【论文速递】EMNLP2022:随机模态缺失情况下的多模态情感分析
|
资源调度 Dart Shell
emoji大全2
emoji大全
318 0
|
Ubuntu 网络虚拟化 Windows
国产化之虚拟ARM64-CPU安装银河麒麟操作系统
国产化之虚拟ARM64-CPU安装银河麒麟操作系统
3014 0
|
Docker 容器
docker 镜像源大全
docker 镜像源大全
109166 3
docker 镜像源大全
|
算法 API 开发工具
拒绝手动Notifydatasetchanged(),使用ListAdapter高效完成RecyclerView刷新
拒绝手动Notifydatasetchanged(),使用ListAdapter高效完成RecyclerView刷新
394 0