Skip to content

Instantly share code, notes, and snippets.

@amkurian
Created July 15, 2020 10:08
Show Gist options
  • Save amkurian/ac9a0313a476c1556ad2b6262f21ef8e to your computer and use it in GitHub Desktop.
Save amkurian/ac9a0313a476c1556ad2b6262f21ef8e to your computer and use it in GitHub Desktop.
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
current directory: /Users/amkurian/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/mysql2-0.5.2/ext/mysql2
/Users/amkurian/.rbenv/versions/2.5.1/bin/ruby -r ./siteconf20200715-2791-2g860l.rb extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config
checking for rb_absint_size()... yes
checking for rb_absint_singlebit_p()... yes
checking for rb_wait_for_single_fd()... yes
-----
Cannot find mysql_config at /usr/local/mysql/bin/mysql_config
gem install mysql2 -v '0.5.2' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment