1

I upgraded to Snow Leopard recently and after having troubles with MySQL I upgraded it as well. I followed these instructions and built MySQL by myself using these sources.

Now MySQL server works fine, but I can't get Mysql2 gem working.

I keep getting this error when starting any Rails3 app:

/opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/gems/1.8/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle: dlopen(/opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/gems/1.8/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle, 9): no suitable image found.  Did find: (LoadError)
 /opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/gems/1.8/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle: mach-o, but wrong architecture - /opt/ruby-enterprise-1.8.7-2009.10/lib/ruby/gems/1.8/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle

I tried everything, but I'm still getting the same error. Do you have any idea what might be wrong?

Igor Pavelek
  • 1,444
  • 14
  • 22

1 Answers1

1

Try installing MySQL 64 bit from here I had the same problem and it worked for me , also try using rvm some version of ruby might not work properly so it's pretty easy to change between them with rvm .

lesce
  • 6,224
  • 5
  • 29
  • 35