我最近升级到Snow Leopard,在遇到MySQL问题之后我也升级了它。我跟着these instructions并使用these sources自己构建了MySQL。
现在MySQL服务器工作正常,但我无法让Mysql2 gem工作。
启动任何Rails3应用时,我一直收到此错误:
/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
我尝试了一切,但我仍然遇到同样的错误。你知道什么可能是错的吗?