Category: MySQL

Error: “checking for my_bool in mysql.h… no” While Installing MySQL2 Gem on Mojave

The necessary header files location for compiling C extensions had changed on Mojave. You need to run the following command to install mysql2, pg, nokogiri, or other gems that require C extensions : $ sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / Then install mysql2 gem : $ gem install mysql2 — –with-mysql-config=/usr/local/Cellar/mysql/<mysql_version>/bin/mysql_config

Scroll to Top