Last Updated: September 29, 2021
·
1.757K
· ioquatix

Installing mysql2 gem with MariaDB using MacPorts

I found issues when building the standard mysql2 gem on my OS X development machine. It was looking for MySQL libraries and headers, but not in the place they are installed when using MariaDB. The following command tells the gem where to find them:

gem install mysql2 -- --with-mysql-config=/opt/local/lib/mariadb/bin/mysql_config

1 Response
Add your response

In addition, sometimes I've needed to specify --use-system-libraries

over 1 year ago ·