2010-12-03 65 views
1

我最近升級到Snow Leopard,並且在遇到MySQL問題之後,我升級了它。我跟着these instructions並且自己使用these sources構建了MySQL。升級到Snow Leopard後Mysql2創業板問題

現在MySQL服務器工作正常,但我不能得到Mysql2寶石的工作。

啓動任何應用程序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 

我都試過了,但我仍然得到同樣的錯誤。你有什麼想法可能是錯的?

+0

你是如何解決這個問題的? – amaseuk 2011-01-13 15:52:36

回答

1

嘗試從here 安裝MySQL 64位我有同樣的問題和它的工作對我來說, 也使用rvm 所以它很容易與RVM它們之間改變紅寶石的某些版本可能無法正常工作嘗試。