2011-12-09 6 views
3

の割り当てに失敗した私は、レールのアプリに私は私のデータベースを実行を取得しようとしているのRails 3.1とMySQL [致命的]はメモリ

のRails 3.1.3 ルビー1.9.3p0

をルビーを実行していることだし、私はすくいデシベルを実行したとき、私は致命的なエラーが出る:

rake db:migrate --trace 
** Invoke db:migrate (first_time) 
** Invoke environment (first_time) 
** Execute environment 
[FATAL] failed to allocate memory 

を移行し、私はレールの

rails s 
=> Booting WEBrick 
=> Rails 3.1.3 application starting in development on http://0.0.0.0:3000 
=> Call with -d to detach 
=> Ctrl-C to shutdown server 
[FATAL] failed to allocate memory 
を実行したときに、私もそれを得ます私はこの

rails s --trace 
/Users/developer/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/commands/server.rb:33:in `parse!': invalid option: --trace (OptionParser::InvalidOption) 
    from /Users/developer/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/rack-1.3.5/lib/rack/server.rb:280:in `parse_options' 
    from /Users/developer/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/rack-1.3.5/lib/rack/server.rb:180:in `options' 
    from /Users/developer/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/commands/server.rb:54:in `set_environment' 
    from /Users/developer/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/commands/server.rb:42:in `initialize' 
    from /Users/developer/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:49:in `new' 
    from /Users/developer/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/commands.rb:49:in `<top (required)>' 
    from script/rails:6:in `require' 
    from script/rails:6:in `<main>' 

に参加いただきました手がかりを得る--traceで

?私はいくつかの検索を行いましたが、this looks to be the closestですが、mysqlの切り替え方法に従えば役に立ちませんでした。

+0

あなたはどこでRubyを手に入れましたか?あなたはMac OSX上にいますか? CentOS Rubiesの在庫に問題がありましたが、自分自身を編集した後は何もありませんでした。 – Amala

答えて

-1

「キッチンシンク」を取り外す必要があると思います。アプリケーションが正しく動作するために必要なものだけに宝石のリストを分解してください。そうでない場合は、メモリを追加することを検討

関連する問題