Skip to content

Instantly share code, notes, and snippets.

@zhanang19
Created May 30, 2023 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhanang19/a94d19b9d1a5aaadb6b088fccbcbf0ca to your computer and use it in GitHub Desktop.
Save zhanang19/a94d19b9d1a5aaadb6b088fccbcbf0ca to your computer and use it in GitHub Desktop.

Install PG client / Install MySQL client

PG

Installing pg 1.2.3 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

brew install libpq

bundle config build.pg --with-pg-config=/usr/local/opt/libpq/bin/pg_config

MySQL

Installing mysql2 0.5.4 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

brew install mysql-client openssl@3

bundle config build.mysql2 --with-opt-dir=/usr/local/opt/openssl@3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment