Problem
I require latest version of git (2.12.0) and latest version of OpenSSL (1.1.0e). They are not available in my apt-get repositories so must be built from source. However, I cannot get them to work together.
Details
Installing git 2.12.0 from source worked fine
git clone was not tested straight away
Installing openssl 1.1.0e from source was tricky but got it to work in the end. The trick, based on this question, was to use:
export LD_LIBRARY_PATH=/usr/local/lib
sudo ldconfig
sudo shutdown -r now
openssl then works reports the correct version number.
Only after doing this did I test git clone. Does not work over https. I get the following error:
fatal: Unable to find remote helper for 'https'
Then, based on this question, I tried:
sudo apt-get install libcurl4-openssl-dev
and then tried re-installing git from source. However, I got this error:
collect2: error: ld returned 1 exit status
Makefile:2058: recipe for target 'git-daemon' failed
I then uninstalled openssl 1.1.0e, thus reverting back to the distro's 1.0.1t and tried installing git from source again but I get a similar error slightly later in the build:
collect2: error: ld returned 1 exit status
Makefile:2061: recipe for target 'git-imap-send' failed
So, I don't really know but I suspect I have broken something by doing that LD_LIBRARY_PATH
and ldconfig
stuff. Not sure how to fix that so I can build git based on the old version of openssl.
Even then, that is a workaround. What I really need is to have git 2.12.0 and OpenSSL 1.1.0e both installed and fully working.
Any help greatly appreciated, thanks :)