最近工作需要,,開始研究libvirt.裝了一天,,終于弄完了,,隨手記錄下來,。我是在ubuntu 12.04上安裝的,。 源碼下載: git clone git://libvirt.org/libvirt.git 或者直接下載.tar 包 由于需要的依賴包比較多我寫了一shell 腳本 #!/usr/bin/env bash #echo "password" | sudo -S apt-get install git #git clone git://libvirt.org/libvirt.git #cd libvirt #git checkout --track -b v1.1.1-maint remotes/origin/v1.1.1-maint #libvirt 最新版本1.11 tar -xf libvirt-1.1.1.tar.gz cd libvirt-1.1.1/ #install other soft needed on ubuntu server #password 是你主機(jī)密碼 echo "password" | sudo -S apt-get install -y autoconf echo "password" | sudo -S apt-get install -y libtool #./bootstrap: Error: 'python-config' not found echo "password" | sudo -S apt-get install -y python-dev #./bootstrap: Error: 'autopoint' not found #./bootstrap: Error: 'pkg-config' not found echo "password" | sudo -S apt-get install -y autopoint pkg-config echo "password" | sudo -S apt-get install -y xsltproc #./bootstrap: Error: 'xmllint' not found echo "password" | sudo -S apt-get install -y libxml2-utils echo "password" | sudo -S apt-get install -y libxml2 #checking libxml2 xml2-config >= 2.6.0 ... configure: error: Could not find libxml2 anywhere (see config.log for details). echo "password" | sudo -S sudo apt-get install -y libxml++2.6-2 echo "password" | sudo -S apt-get install -y libxml++2.6-dev echo "password" | sudo -S apt-get install -y libgnutls-dev echo "password" | sudo -S apt-get install -y libnl-dev echo "password" | sudo -S apt-get install -y libudev-dev echo "password" | sudo -S apt-get install -y libpciaccess-dev echo "password" | sudo -S apt-get install -y libdevmapper-dev libdevmapper #mv: cannot stat `t-af.gmo': No such file or directory echo "password" | sudo -S apt-get install -y gettext #./autogen.sh --prefix=$HOME/usr #use git source ./configure --prefix=$HOME/usr make make install 用git 下來的源碼我沒有裝成功,,沒有時(shí)間去研究我把錯(cuò)誤放到下邊,,大家可以一起來研究 make install 時(shí)出錯(cuò): 2 /usr/bin/install: cannot stat `./404.html': No such file or directory 3 /usr/bin/install: cannot stat `./api.html': No such file or directory 4 /usr/bin/install: cannot stat `./api_extension.html': No such file or directory 5 /usr/bin/install: cannot stat `./apps.html': No such file or directory 6 /usr/bin/install: cannot stat `./archdomain.html': No such file or directory 7 /usr/bin/install: cannot stat `./architecture.html': No such file or directory 8 /usr/bin/install: cannot stat `./archnetwork.html': No such file or directory 9 /usr/bin/install: cannot stat `./archnode.html': No such file or directory 10 /usr/bin/install: cannot stat `./archstorage.html': No such file or directory 11 /usr/bin/install: cannot stat `./auth.html': No such file or directory 12 /usr/bin/install: cannot stat `./bindings.html': No such file or directory 13 /usr/bin/install: cannot stat `./bugs.html': No such file or directory 14 /usr/bin/install: cannot stat `./cgroups.html': No such file or directory 15 /usr/bin/install: cannot stat `./compiling.html': No such file or directory 16 /usr/bin/install: cannot stat `./contact.html': No such file or directory 17 /usr/bin/install: cannot stat `./csharp.html': No such file or directory 18 /usr/bin/install: cannot stat `./deployment.html': No such file or directory 19 /usr/bin/install: cannot stat `./devguide.html': No such file or directory 20 /usr/bin/install: cannot stat `./docs.html': No such file or directory 21 /usr/bin/install: cannot stat `./downloads.html': No such file or directory 22 /usr/bin/install: cannot stat `./drivers.html': No such file or directory 23 /usr/bin/install: cannot stat `./drvesx.html': No such file or directory 24 /usr/bin/install: cannot stat `./drvhyperv.html': No such file or directory 25 /usr/bin/install: cannot stat `./drvlxc.html': No such file or directory 26 /usr/bin/install: cannot stat `./drvopenvz.html': No such file or directory 27 /usr/bin/install: cannot stat `./drvparallels.html': No such file or directory 28 /usr/bin/install: cannot stat `./drvphyp.html': No such file or directory 29 /usr/bin/install: cannot stat `./drvqemu.html': No such file or directory 30 /usr/bin/install: cannot stat `./drvremote.html': No such file or directory 31 /usr/bin/install: cannot stat `./drvtest.html': No such file or directory 32 /usr/bin/install: cannot stat `./drvuml.html': No such file or directory 33 /usr/bin/install: cannot stat `./drvvbox.html': No such file or directory 34 /usr/bin/install: cannot stat `./drvvmware.html': No such file or directory 35 /usr/bin/install: cannot stat `./drvxen.html': No such file or directory 36 /usr/bin/install: cannot stat `./errors.html': No such file or directory |
|