centos 6.3 安装libvmi和libvirt

1.安装libvmi:

安装介绍请见 LibVMIInstallation

下载libvmi,解压运行:

# ./autogen.sh

提示以下错误:

which: no libtoolize in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
which: no glibtoolize in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

通过运行 yum search libtool,查看有没有跟关键字 libtool 相关的安装包,查看结果,发现有这个包,就安装:yum install libtool
 
 之后执行 ./configure时,会提示找不到yacc,找不到flex,安装之:

 yum install byacc
 yum install flex
 
之后再 ./configure 出现错误:

checking for GLIB... configure: error: Package requirements (glib-2.0 >= 2.16) were not met:
No package 'glib-2.0' found

安装glib2:

yum install glib2-devel
之后再 ./configure 出现错误:

checking for CHECK... configure: error: Package requirements (check >= 0.9.4) were not met:

安装check:
yum install check-devel
继续运行 ./configure
输出如下:

Host system type: x86_64-unknown-linux-gnu
Build system type: x86_64-unknown-linux-gnu
Installation prefix: /usr/local

Feature      | Option                  | Reason
-------------|-------------------------|----------------------------
Xen Support  | --enable-xen=no         | missing xenstore
Xen Events   | --enable-xen-events=no  | no
KVM Support  | --enable-kvm=no         | libvirt missing
File Support | --enable-file=yes       | yes
-------------|-------------------------|----------------------------

Tools        | Option                  | Reason
-------------|-------------------------|----------------------------
VMIFS        | --enable-vmifs=no | FUSE library missing (libfuse-dev)

可以看到由于缺失libvirt,所以导致libvmi还不能支持KVM
安装libvirt,按照提示 kvm-support,为了让libvirt支持QMP,需要从源码安装libvirt,而且要先安装好 yajl-devel 

2.安装libvirt

从libvirt官网,下载libvirt的源码

wget http://libvirt.org/sources/libvirt-1.0.3.tar.gz

解压后,运行

./autogen.sh --system --enable-compile-warnings=error

有错,提示:

./bootstrap: Error: 'python-config' not found

安装python开发包:yum install python-dev
再次运行

./autogen.sh --system --enable-compile-warnings=error

有错,提示:

checking libxml2 xml2-config >= 2.6.0 ... configure: error: Could not find libxml2 anywhere (see config.log for details).

同理,安装以下的软件包:
libxml2-devel device-mapper-devel libpciaccess-devel libnl-devel

安装完成


如果您看了本篇博客,觉得对您有所收获,请点击右下角的“推荐”,让更多人看到!

资助Jack47写作,打赏一个鸡蛋灌饼钱吧
pay_weixin
微信打赏
pay_alipay
支付宝打赏

 

posted on 2013-03-29 16:48  生栋  阅读(4910)  评论(0编辑  收藏  举报

导航