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:
$ yum install expat expat-devel openssl openssl-devel
$ yum remove git git-all
Step 2 – Build and install Git
Go get the latest Git source tarball (as of this writing it’s version 1.9.0).
$ 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
At this point, make sure you see following lines in the output:
checking for curl_global_init in -lcurl… yes
checking for XML_ParserCreate in -lexpat… yes
And now build and install Git: