[英]Trouble compiling mysql gem on Snow Leopard
我最近在Snow Leopard的新副本上安裝了mysql-5.5.9-osx10.6-x86_64。
雖然版本報告為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 gem:
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'
我相信gem正確構建,但仍然出現MySQL錯誤。 在這一點上,我正在為此抓撓頭。
不要使用MySQL 5.5,請使用5.1版。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.