2011-03-15 89 views
0

我最近在Snow Leopard的全新副本上安装了mysql-5.5.9-osx10.6-x86_64。雪豹故障编译mysql gem

虽然版本报告i386。

./mysql --version 
Ver 14.14 Distrib 5.5.9, for osx10.6 (i386) using readline 5.1 

这是预期的行为?

我在使用64位扩展上的Snow Leopard。我已经使用RVM安装了ruby-1.8.7-p334 [x86_64]并确保它被选中。

我编译使用mysql宝石:

sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-dir=/usr/local/mysql 

虽然当我尝试运行Rails应用程序我得到以下错误:

/!\ FAILSAFE /!\ Tue Mar 15 17:31:32 -0400 2011 
    Status: 500 Internal Server Error 
    uninitialized constant MysqlCompat::MysqlRes 
    /Users/jaredbrown/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:440:in `load_missing_constant' 
    /Users/jaredbrown/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in `const_missing_not_from_s3_library' 
    /Users/jaredbrown/.rvm/gems/ruby-1.8.7-p334/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:206:in `const_missing' 
    /Users/jaredbrown/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:9:in `define_all_hashes_method!' 
    /Users/jaredbrown/.rvm/gems/ruby-1.8.7-p334/gems/activerecord-2.3.4/lib/active_record/connection_adapters/mysql_adapter.rb:66:in `mysql_connection' 

我认为创业板是否正确,但我建设仍然会出现MySQL错误。在这一点上,我正在为此挠头。

+0

我尝试了http://lightyearsoftware.com/2011/02/mysql-5-5-on-mac-os-x/上的指示,但没有运气。我通过降级到mysql-5-1解决了这个问题。 – 2011-03-15 22:42:43

回答

1

请勿使用MySQL 5.5,请使用版本5.1。