xamsoa
Last Updated: February 25, 2016
·
1.183K
· ioquatix
63cd65c79f0d13139c94215a1ea9de51

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
Say Thanks
Respond

1 Response
Add your response

17847
63cd65c79f0d13139c94215a1ea9de51

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

over 1 year ago ·