Building native extensions with: '--with-mysql-config=/usr/local/Cellar/mysql/5.7.22/bin/mysql_config'
This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
current directory: /Users/imac_1/.rvm/gems/ruby-2.4.1/gems/mysql2-0.3.11/ext/mysql2
/Users/imac_1/.rvm/rubies/ruby-2.4.1/bin/ruby -r ./siteconf20180601-45625-jk1015.rb extconf.rb --with-mysql-config=/usr/local/Cellar/mysql/5.7.22/bin/mysql_config
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... yes
checking for mysql.h... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes
creating Makefile
当我运行此命令gem install mysql2 -v '0.3.11' -- --with-mysql-config=/usr/local/Cellar/mysql/5.7.22/bin/mysql_config
时。它经历了上述错误。我尝试了许多解决方案但失败了。请任何人都可以提供帮助。