Last active
July 13, 2023 19:36
-
-
Save yatsu/b62f07ef9ff3ae1e0e2bf9a00b8742b6 to your computer and use it in GitHub Desktop.
Install ruby-1.8.7 with rbenv on macOS Catalina (10.15)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/[email protected] subversion rbenv | |
# 5) Setup rbenv | |
# 6) Run this command | |
PKG_CONFIG_PATH="$(brew --prefix cartr/qt4/[email protected])/lib/pkgconfig" \ | |
CFLAGS="-O2 -fno-tree-dce -fno-optimize-sibling-calls -I$(brew --prefix cartr/qt4/[email protected])/include" \ | |
LDFLAGS="-L$(brew --prefix cartr/qt4/[email protected])/lib" \ | |
rbenv install 1.8.7-p375 | |
# If your macOS is older than 10.15, see the history of this gist. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adding
-Wno-error=implicit-function-declaration
toCFLAGS
has helped me (MacOS Monterey 12.3.1).