centos 7下 libvirt的编译安装的问题及解决方案

在CentOS 7系统中编译安装libvirt时遇到依赖问题,通过执行`yum install libpciaccess-devel`和`yum install device-mapper-devel`解决依赖。但安装device-mapper时发现与lvm2包冲突。为解决冲突,执行`yum erase lvm2-2.02.105-14.el7.x86_64`移除lvm2包。
CentOS下编译libvirt

1、问题:configure: error: You must install the libyajl library & headers to compile libvirt
    
解决方案:yum install yajl-devel


2、问题:You must install the pciaccess module to build with udev

    

        解决方案:yum install libpciaccess-devel


3、问题:configure: error: You must install device-mapper-devel/libdevmapper >= 1.0.0 to compile libvirt


        解决方案:yum install device-mapper-devel


4、问题:Transaction check error:
                   file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7.x86_64 conflicts with file from package lvm2-7:2.02.105-                               14.el7.x86_64
                  file /usr/sbin/blkdeactivate from install of device-mapper-7:1.02.107-5.el7.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64

                  file /usr/share/man/man8/blkdeactivate.8.gz from install of device-mapper-7:1.02.107-5.el7.x86_64 conflicts with file from package lvm2-7:2.02.105-                                           14.el7.x86_64


        解决方案:yum erase lvm2-2.02.105-14.el7.x86_64



5、问题:/bin/sh: line 3: internals/locking.html.tmp: No such file or directory
   /bin/sh: line 3: internals/command.html.tmp: No such file or directory
   /bin/sh: line 3: internals/oomtesting.html.tmp: No such file or directory

    解决方案:
    MAKEFLAGS="-j1" ./autobuild.sh
    参考:https://www.redhat.com/archives/libvir-list/2011-June/msg00073.html


6、问题:/bin/sh: line 3: internals/locking.html.tmp: No such file or directory
   rm: cannot remove 'internals/locking.html.tmp': No such file or directory

    解决方案:  
    参考:https://www.redhat.com/archives/libvir-list/2016-January/msg00862.html

    
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值