xamsoa
Last Updated: February 25, 2016
·
1.228K
· 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

17847

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

over 1 year ago ·