#!/bin/sh # 1) Install Xcode 11 # 2) Install command line tools: `xcode-select --install` # 3) Install HomeBrew # 4) brew tap cartr/qt4 && brew install cartr/qt4/openssl@1.0 subversion rbenv # 5) Setup rbenv # 6) Run this command PKG_CONFIG_PATH="$(brew --prefix cartr/qt4/openssl@1.0)/lib/pkgconfig" \ CFLAGS="-O2 -fno-tree-dce -fno-optimize-sibling-calls -I$(brew --prefix cartr/qt4/openssl@1.0)/include" \ LDFLAGS="-L$(brew --prefix cartr/qt4/openssl@1.0)/lib" \ rbenv install 1.8.7-p375 # If your macOS is older than 10.15, see the history of this gist.