Ruby on Rails, MySQL and Snow Leopard -


I have worked fine on Ruby on Rail on my Snow Leopard. I have tried to install MySQL on Ruby on Rails for several days, when I run, I have found:

  rake db: create  
< P> is:

  (in / users / naikon / ror / test2) dyld: lazy symbol binding unsuccessful: Symbol not found: _mysql_init: / Library / Ruby / Gems / 1.8 / gems / mysql2 Expected from -0.2 .4 / ext / mysql2 / mysql2.bundle required: flat namespace dyld: Symbol not found: _mysql_init Referral: / library / rabby / games / 1.8 / gems / mysql2-0.2.4 / ext / mysql2 / Mysql2.bundle Expected I: MySQL 32 and 64 bits (and many times Trying to delete several times), install the mysql gem on the way I found it: flat namepace trace / bpt trap  

Internet,

  sudo env ARCHFLAGS = "- arch x86_64" gem installs mysql - --with-mysql-config = / usr / local / mysql / bin / mysql_config  

thanks

Well start with th. The fact is that your mistake is the way to make gems.

With your error report it uses your Rail 3, and it does not use the "mysql" gem at all, it uses the mysql2 gem which offers many features.

You can read more about mysql2 gem

I think you will be fine after installing the right gem. =)


Comments