Fix for Git error: “fatal: Unable to find remote helper for ‘http’”

This error is most commonly caused by Git being compiled without support for OpenSSL or Expatlibraries. The solution is to build Git yourself.

It looks like not having (lib)curl-devel installed when you install git can cause this.

If you install (lib)curl-devel, and then rebuild/install git, this should solve the problem:

$ yum install curl-devel

Step 1 – Install OpenSSL and Expat

On example on Red Hat / Fedora you can use this command:

12

 
$ yum install expat expat-devel openssl openssl-devel
$ yum remove git git-all

 

 

 

view rawgistfile1.sh hosted with ❤ by GitHub

 

 

 

 

 

 

Step 2 – Build and install Git

Go get the latest Git source tarball (as of this writing it’s version 1.9.0).

12345

 
$ wget https://git-core.googlecode.com/files/git-1.9.0.tar.gz
$ tar zxf git-1.9.0.tar.gz
$ cd git-1.9.0
 
$ ./configure –with-expat –with-openssl

 

 

 

view rawgistfile1.txt hosted with ❤ by GitHub

 

 

 

 

 

 

At this point, make sure you see following lines in the output:

12

 
checking for curl_global_init in -lcurl… yes
checking for XML_ParserCreate in -lexpat… yes

 

 

 

view rawgistfile1.txt hosted with ❤ by GitHub

 

 

 

 

 

 

And now build and install Git:

12

 
$ make
$ make install

 

 

 

 

 

 

 

 

 

Revisions

No comments yet.

Leave a Reply