歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 在CentOS 5.8下從源碼安裝xen-3.4.4.tar.gz

在CentOS 5.8下從源碼安裝xen-3.4.4.tar.gz

日期:2017/2/28 15:53:50   编辑:Linux教程

從官網下載到 xen-3.4.4.tar.gz ,解壓縮後, 直接make ;

發生如下錯誤:

  1. select-repository: Searching `.:..' for linux-2.6.18-xen.hg
  2. select-repository: Ignoring `.'
  3. Unable to determine path to Linux source tree.
  4. Falling back to linux-2.6.18-xen Mercurial repository.
  5. Cloning http://xenbits.xensource.com/linux-2.6.18-xen.hg to linux-2.6.18-xen.hg.
  6. /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, 又出現如下錯誤 :

  1. + test -d http://xenbits.xensource.com/git-http/qemu-xen-3.4-testing.git
  2. + '[' '!' -d ioemu-remote ']'
  3. + rm -rf ioemu-remote ioemu-remote.tmp
  4. + mkdir ioemu-remote.tmp
  5. + rmdir ioemu-remote.tmp
  6. + git clone http://xenbits.xensource.com/git-http/qemu-xen-3.4-testing.git ioemu-remote.tmp
  7. /bin/sh: line 8: git: command not found

是 git 軟件包沒有找到, 用 yum install git , 提示沒有git軟件包,如下

  1. [root@localhost xen-3.4.4]# yum install git
  2. Loaded plugins: fastestmirror, security
  3. Loading mirror speeds from cached hostfile
  4. * base: CentOS.tt.co.kr
  5. * extras: mirror.averse.net
  6. * updates: mirror.averse.net
  7. Setting up Install Process
  8. No package git available.
  9. Nothing to do

後來在網上找到解決辦法 ,說是缺少 epel 軟件包:

  1. [root@localhost opt]# wget http://dl.Fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
  2. [root@localhost opt]# rpm -ivh epel-release-5-4.noarch.rpm

然後再 yum install git , 這下就可以安裝 git 軟件包了。

再次進入 xen目錄,繼續 make xen tools stubdom

Copyright © Linux教程網 All Rights Reserved