2012-04-16 70 views
5

我在ROR中使用軟件包安裝時遇到此錯誤。如何從git://github.com/pengwynn/linkedin.git安裝linkedin時解決git錯誤?

擷取GIT中://github.com/pengwynn/linkedin.git 致命:無法查找github.com(端口9418)(沒有這樣的宿主是已知的。) GIT中的錯誤:命令git clone "git://github.com/pengwynn/linkedin.git" "C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/ca che/bundler/git/linkedin-3e3919d62b37a1f8879ade6b51b3eeb032fc8973" --bare --no-hardlinks在目錄C:/linkedin/linke dinfrongit失敗。

我正在使用windows。

回答

5

您是否在防火牆阻止端口9418上的連接?也許你可以試試http協議?

git clone https://github.com/pengwynn/linkedin.git 
2
Set proxy using git config command in the command prompt with 
the following two commands: 
    git config --global http.proxy http://username:[email protected]:port 
    git config --global https.proxy http://username:[email protected]:port 

In command like: 
    git clone git://github.com/saasbook/hw2_rottenpotatoes.git 
Replace replace git:// with https://. 
    git clone https://github.com/saasbook/hw2_rottenpotatoes.git