Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to solve git error while installing linkedin from git://github.com/pengwynn/linkedin.git?

i get this error while using bundle install in ROR.

Fetching git://github.com/pengwynn/linkedin.git fatal: Unable to look up github.com (port 9418) (No such host is known. ) Git error: command 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 in directory C:/linkedin/linke dinfrongit has failed.

I am using windows.

like image 997
Joe Avatar asked Apr 16 '12 07:04

Joe


2 Answers

Are you behind a firewall blocking connections on port 9418? Perhaps you can give it a try with the http protocol?

git clone https://github.com/pengwynn/linkedin.git
like image 73
Michael Wild Avatar answered Nov 14 '22 22:11

Michael Wild


Set proxy using git config command in the command prompt with
the following two commands: 
    git config --global http.proxy http://username:password@host:port 
    git config --global https.proxy http://username:password@host: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
like image 43
kotygoroshko Avatar answered Nov 14 '22 22:11

kotygoroshko