#Fix the annoying OpenSSL 1.0.1 "Unknown Protocol" error with (lib)curl
- Add a
ciphers AES128-SHA,3DES
line to~/.curlrc
. - Unfortunately, libcurl doesn't use .curlrc. So to get around the problem in git:
# some if the stuff here is macports-specific
$ port install autoconf automake
$ git clone https://github.com/git/git.git
$ cd git
$ git checkout v1.9.0 #or whatever new version
$ git apply - < <(curl https://gist.githubusercontent.com/jcayzac/9542144/raw/git.patch)
$ autoreconf
$ mkdir -p "${HOME}/.prefix/bin" # prepend your PATH with that location!
$ ./configure --prefix="${HOME}/.prefix" --with-libpcre LD_LIBRARY_PATH=/opt/local/lib
$ LD_LIBRARY_PATH=/opt/local/lib make -j4 all install