Skip to content

Instantly share code, notes, and snippets.

@awesome
Created September 29, 2023 20:25
Show Gist options
  • Select an option

  • Save awesome/abb4f92d94f0e2f440bfc33eef58c0b0 to your computer and use it in GitHub Desktop.

Select an option

Save awesome/abb4f92d94f0e2f440bfc33eef58c0b0 to your computer and use it in GitHub Desktop.

Revisions

  1. awesome created this gist Sep 29, 2023.
    20 changes: 20 additions & 0 deletions macos-sonoma-ruby-install-ruby-3-1-2.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    # https://github.com/rbenv/ruby-build/discussions/2245#discussioncomment-7022979

    export LDFLAGS="-L/opt/brew/Cellar/[email protected]/1.1.1v/lib"
    export CPPFLAGS="-I/opt/brew/Cellar/[email protected]/1.1.1v/include"
    export PKG_CONFIG_PATH="/opt/brew/Cellar/[email protected]/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