在CentOS5.8下从源码安装xen-3.4.4.tar.gz

来源:岁月联盟 编辑:exp 时间:2012-03-28

从官网下载到 xen-3.4.4.tar.gz ,解压缩后, 直接make ; 发生如下错误: select-repository: Searching `.:..' for linux-2.6.18-xen.hgselect-repository: Ignoring `.'Unable to determine path to Linux source tree.Falling back to linux-2.6.18-xen Mercurial repository.Cloning http://xenbits.xensource.com/linux-2.6.18-xen.hg to linux-2.6.18-xen.hg./bin/sh: line 8: hg: command not found -www.2cto.com- 原因是没有按照mercurial, 用 yum  install  mercurial , 发现没有软件包可以使用,只能从源码来安装了。 http://mercurial.selenic.com/release/mercurial-2.1.1.tar.gz 下载了 mercurial 后, 解压, 由于 mercurial 是python 写的,  执行安装命令  python  setup.py  install , 安装成功! 继续进入 xen目录 make就ok了    摘自 张老师的专栏