Skip to content

Instantly share code, notes, and snippets.

@victorpre
Forked from fernandoaleman/mysql2-mojave.md
Last active September 6, 2022 16:04
Show Gist options
  • Save victorpre/2114f507edbe5536138fc41d84d050d3 to your computer and use it in GitHub Desktop.
Save victorpre/2114f507edbe5536138fc41d84d050d3 to your computer and use it in GitHub Desktop.

Revisions

  1. victorpre revised this gist Sep 6, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mysql2-mojave.md
    Original file line number Diff line number Diff line change
    @@ -11,5 +11,5 @@ brew install openssl

    Install `mysql2` gem.
    ```
    gem install mysql2 -v '0.5.2' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include
    gem install mysql2 -v '0.5.4' -- --with-ldflags=-L/opt/homebrew/opt/openssl@3/lib --with-cppflags=-I/opt/homebrew/opt/openssl@3/include
    ```
  2. @fernandoaleman fernandoaleman created this gist Oct 2, 2018.
    15 changes: 15 additions & 0 deletions mysql2-mojave.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    Problem
    ========================================
    Installing `mysql2` gem errors on MacOS Mojave.

    Solution
    ========================================
    Make sure `openssl` is installed on Mac via Homebrew.
    ```
    brew install openssl
    ```

    Install `mysql2` gem.
    ```
    gem install mysql2 -v '0.5.2' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include
    ```