How to Install Homebrew on Mac OS X Lion 10.7.4
Reference articles:
- How to Install Homebrew on Mac OS X Lion 10.7.4 http://ocdman.github.io/2018/10/08/Mac-OS-X-Lion-10-7-4-%E5%A6%82%E4%BD%95%E5%AE%89%E8%A3%85Homebrew/
- [macOS] brew installation https://www.jianshu.com/p/1e5e72089a84
Preparation
- Manually compile and install
OpenSSL 1.1.1k - Manually compile and install the latest
curl, and note that compilation requiresOpenSSLand thecacert.pemcertificate - Download and install the latest
gitfromhttp://git-scm.com/yourself
Important Special Steps
mkdir -p /usr/local/opt/curl/bin
mkdir -p /usr/loca/opt/git/bin
ln -s /usr/local/bin/curl /usr/local/opt/curl/bin/curl
ln -s /usr/local/bin/git /usr/local/opt/git/bin/git
mv /usr/bin/curl /usr/bin/curl_bak
cp /usr/local/bin/curl /usr/bin/curl