Skip to content

Instantly share code, notes, and snippets.

@Nguyenanh
Forked from fernandoaleman/mysql2-mojave.md
Created January 8, 2020 02:15
Show Gist options
  • Save Nguyenanh/dac64193b769033eef58b88d4fdeae0f to your computer and use it in GitHub Desktop.
Save Nguyenanh/dac64193b769033eef58b88d4fdeae0f to your computer and use it in GitHub Desktop.

Revisions

  1. @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
    ```