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
Written by Samuel Williams
Related protips
1 Response
In addition, sometimes I've needed to specify --use-system-libraries
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Mysql
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#