搜尋此網誌

fatal: Unable to find remote helper for 'https' -- [SOLVED@Fedora 20]

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.
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.8.1).
12345
$ wget https://www.kernel.org/pub/software/scm/git/git-2.3.4.tar.xz
$ tar -xvf git-2.3.4.tar.xz
$ cd git-2.3.4
 
$ ./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
view rawgistfile1.sh hosted with ❤ by GitHub
This is it. Now you should see no error complaining about missing remote helper for http.