Skip to content

Instantly share code, notes, and snippets.

@awesome
Created September 29, 2023 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awesome/abb4f92d94f0e2f440bfc33eef58c0b0 to your computer and use it in GitHub Desktop.
Save awesome/abb4f92d94f0e2f440bfc33eef58c0b0 to your computer and use it in GitHub Desktop.
ruby-install ruby 3.1.2 FAILED? β†’ FIX πŸ₯πŸ”§πŸ› οΈ ( macOS Sonoma 14.0 / Intel Core i7)
# https://github.com/rbenv/ruby-build/discussions/2245#discussioncomment-7022979
export LDFLAGS="-L/opt/brew/Cellar/openssl@1.1/1.1.1v/lib"
export CPPFLAGS="-I/opt/brew/Cellar/openssl@1.1/1.1.1v/include"
export PKG_CONFIG_PATH="/opt/brew/Cellar/openssl@1.1/1.1.1v/lib/pkgconfig"
ruby-install ruby 3.1.2
# $ sysctl -n machdep.cpu.brand_string
# > Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz
# $ sw_vers
# > ProductName: macOS
# > ProductVersion: 14.0
# > BuildVersion: 23A344
# $ which ruby-install
# > /opt/brew/bin/ruby-install
# $ ruby-install --version
# > ruby-install: 0.9.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment