Skip to content

Instantly share code, notes, and snippets.

@goodanthony
Last active August 6, 2022 04:29

Revisions

  1. goodanthony revised this gist Aug 6, 2022. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -20,11 +20,11 @@ brew update
    brew install tree
    brew update-reset

    1. Install OpenSSL 3
    brew install openssl@3
    then link
    brew link openssl@3
    echo 'export PATH="/usr/local/opt/openssl@3/bin:$PATH"' >> ~/.zshrc
    Install OpenSSL 3
    brew install openssl@3
    then link
    brew link openssl@3
    echo 'export PATH="/usr/local/opt/openssl@3/bin:$PATH"' >> ~/.zshrc

    Had to uninstall rbenv and ruby-build and then reinstall with
    brew install rbenv
  2. goodanthony revised this gist Aug 6, 2022. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    Truied to install Ruby 3.1.2 on MacOs and keep getting a build failed like bellow

    BUILD FAILED (macOS 12.5 using ruby-build )

    Last 10 log lines:
  3. goodanthony created this gist Aug 6, 2022.
    32 changes: 32 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    BUILD FAILED (macOS 12.5 using ruby-build )

    Last 10 log lines:
    The Ruby yaml extension was not compiled.
    ERROR: Ruby install aborted due to missing extensions
    Configure options used:
    --prefix=/Users/devopsme/.rbenv/versions/3.1.2
    --enable-shared
    --with-readline-dir=/usr/local/opt/readline
    --with-openssl-dir=/usr/local/opt/openssl@1.1
    CC=clang
    LDFLAGS=-L/Users/devopsme/.rbenv/versions/3.1.2/lib -L/usr/local/opt/zlib/lib
    CPPFLAGS=-I/Users/devopsme/.rbenv/versions/3.1.2/include -I/usr/local/opt/zlib/include


    What worked
    brew update
    brew install tree
    brew update-reset

    1. Install OpenSSL 3
    brew install openssl@3
    then link
    brew link openssl@3
    echo 'export PATH="/usr/local/opt/openssl@3/bin:$PATH"' >> ~/.zshrc

    Had to uninstall rbenv and ruby-build and then reinstall with
    brew install rbenv
    brew install ruby-build

    Then open a new terminal window and type
    rbenv install 3.1.2