最近在研究CloudStack的部署,從中記錄一下過程:
//先安裝git依賴的包 yum install zlib-devel yum install openssl-devel yum install perl yum install cpio yum install expat-devel yum install gettext-devel
//安裝autoconf yum install autoconf
//安裝git wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz tar xzvf git-latest.tar.gz cd git-{date}
//如果此命令不行,就找到對應的檔案夾 autoconf ./configure --with-curl=/usr/local make make install
在執行命令:git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
出現錯誤:fatal: Unable to find remote helper for 'https'
使用命令:
git config [--global] user.name <name> 設定使用者名稱
git config [--global] user.email <email> 設定郵箱
git config [--global] core.editor <editor> 設定編輯器
git config [--global] github.user <user> 設定github帳號名
git config [--global] github.token <token> 設定github的token
--global是對當前系統使用者的全域設定,在~/.gitconfig中。對系統所有使用者進行配置,/etc/gitconfig。對當前項目,.git/config
解決辦法:
1.安裝依賴包:
yum install -y curl curl-devel
如果失敗,需要尋找git-core檔案後,將git-core檔案的路徑加入到PATH路徑中:
[root@bogon ~]# find / -name git-core
/usr/local/libexec/git-core
/usr/local/share/git-core
[root@bogon ~]# export PATH=/usr/local/libexec/git-core:$PATH
重新在安裝GIT,就可以解決問題~~~