Skip to content

Instantly share code, notes, and snippets.

@zavan
Forked from fernandoaleman/mysql2-mojave.md
Last active May 5, 2022 10:18
Show Gist options
  • Save zavan/8328ac58e54ce82c873f003ea78f5bd5 to your computer and use it in GitHub Desktop.
Save zavan/8328ac58e54ce82c873f003ea78f5bd5 to your computer and use it in GitHub Desktop.

Revisions

  1. zavan renamed this gist May 5, 2022. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. zavan revised this gist May 5, 2022. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions mysql2-mojave.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@ For MacOS Catalina, visit [Install mysql2 on MacOS Catalina](https://gist.github

    # Problem

    Installing `mysql2` gem errors on MacOS Big Sur.
    Installing `mysql2` gem errors on MacOS Monterey.

    # Solution

    @@ -13,5 +13,5 @@ brew install openssl

    Install `mysql2` gem.
    ```
    gem install mysql2 -v '0.5.3' -- --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/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include
    ```
  3. zavan revised this gist Apr 9, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions mysql2-mojave.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@ For MacOS Catalina, visit [Install mysql2 on MacOS Catalina](https://gist.github

    # Problem

    Installing `mysql2` gem errors on MacOS Mojave.
    Installing `mysql2` gem errors on MacOS Big Sur.

    # Solution

    @@ -13,5 +13,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.3' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include
    ```
  4. @fernandoaleman fernandoaleman revised this gist Apr 14, 2020. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions mysql2-mojave.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,11 @@
    Problem
    ========================================
    For MacOS Catalina, visit [Install mysql2 on MacOS Catalina](https://gist.github.com/fernandoaleman/12698634824f5d5c00ab57b72ee2ad52)

    # Problem

    Installing `mysql2` gem errors on MacOS Mojave.

    Solution
    ========================================
    # Solution

    Make sure `openssl` is installed on Mac via Homebrew.
    ```
    brew install openssl
  5. @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
    ```