我最近升级到Rails 3并使用Rails 3.0.3创建了一个新的应用程序,但我一直收到错误
Macintosh:$ rails server => Booting WEBrick => Rails 3.0.3 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2010-11-28 11:32:47] INFO WEBrick 1.3.1 [2010-11-28 11:32:47] INFO ruby 1.8.7 (2010-04-19) [i686-darwin10.4.0] [2010-11-28 11:32:47] INFO WEBrick::HTTPServer#start: pid=1055 port=3000 Started GET "/" for 127.0.0.1 at Sun Nov 28 11:32:52 +0000 2010 RuntimeError (!!! Missing the mysql2 gem. Add it to your Gemfile: gem 'mysql2'):
我有一台64位机器.错误仅在文档上,看起来像gem正确安装.
Macintosh:$ env ARCHFLAGS="-arch i386" gem install mysql2 …