從官網下載到 xen-3.4.4.tar.gz ,解壓縮後, 直接make ;
發生如下錯誤:
- select-repository: Searching `.:..' for linux-2.6.18-xen.hg
- select-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
原因是沒有安裝mercurial, 用 yum install mercurial , 發現沒有軟件包可以使用,只能從源碼來安裝了。
http://mercurial.selenic.com/release/mercurial-2.1.1.tar.gz
下載了 mercurial 後, 解壓, 由於mercurial 是python 寫的,
執行安裝命令 python setup.py install , 安裝成功!
進入 xen目錄,繼續 make xen tools stubdom, 又出現如下錯誤 :
- + test -d http://xenbits.xensource.com/git-http/qemu-xen-3.4-testing.git
- + '[' '!' -d ioemu-remote ']'
- + rm -rf ioemu-remote ioemu-remote.tmp
- + mkdir ioemu-remote.tmp
- + rmdir ioemu-remote.tmp
- + git clone http://xenbits.xensource.com/git-http/qemu-xen-3.4-testing.git ioemu-remote.tmp
- /bin/sh: line 8: git: command not found
是 git 軟件包沒有找到, 用 yum install git , 提示沒有git軟件包,如下
- [root@localhost xen-3.4.4]# yum install git
- Loaded plugins: fastestmirror, security
- Loading mirror speeds from cached hostfile
- * base: CentOS.tt.co.kr
- * extras: mirror.averse.net
- * updates: mirror.averse.net
- Setting up Install Process
- No package git available.
- Nothing to do
後來在網上找到解決辦法 ,說是缺少 epel 軟件包:
- [root@localhost opt]# wget http://dl.Fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
-
- [root@localhost opt]# rpm -ivh epel-release-5-4.noarch.rpm
然後再 yum install git , 這下就可以安裝 git 軟件包了。
再次進入 xen目錄,繼續 make xen tools stubdom