From Boldcore's wiki
Revision as of 07:05, 2 March 2018 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Compile git with https support

After installing git from source code, I encountered with the following error when trying to clone (or whatever) repository from https.

fatal: Unable to find remote helper for 'https'

Root cause of this issue is, that by default git is not compiled with openssl support.

Of course, first You need to have gcc, openssl-devel, autoconf, etc... But let's get to the point.

Command

I found the solution here: http://kamituel.tumblr.com/post/40678251617/fix-for-git-error-fatal-unable-to-find-remote https://gist.github.com/kamituel/4542056

yum install expat expat-devel openssl openssl-devel gcc autoconf
yum remove git

wget https://github.com/git/git/archive/v2.16.2.tar.gz (check for the latest version first !!)
tar xvf v2.16.2.tar.gz
cd v2.16.2
./configure --with-expat --with-openssl --prefix=/usr/local
make
make install