MySQL gem reference on OSX
I am trying to get gsm mysql to work with OSX 10.5.6 and feel stumped.
% gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
Building native extensions. This could take a while...
Successfully installed mysql-2.7
1 gem installed
% irb -rubygems -rmysql
irb> Mysql.init
dyld: lazy symbol binding failed: Symbol not found: _mysql_init
Referenced from: /Users/rampion/.gem/gems/mysql-2.7/lib/mysql.bundle
Expected in: dynamic lookup
dyld: Symbol not found: _mysql_init
Referenced from: /Users/rampion/.gem/gems/mysql-2.7/lib/mysql.bundle
Expected in: dynamic lookup
zsh: trace trap irb -rubygems -rmysql
%
I am using the default ruby 1.8.6 installation.
I am using MySQL 5.0.77 64bit. mysqld
works and I can use the mysql shell, so I suspect my problem is related to mysql.gem
, although I'm by no means sure.
Can anyone suggest any advice?
0
source to share