我是 ruby 和 rails 的新手。我正在尝试安装 fedena 项目。但是在执行 rdoc db:create
时我遇到了类似failed to allocate memoryls/generators/rspec_controller/templates/helper_spec.rb
. 我的系统中已经有 4gb 的 ram,其中 3.5gb 是空闲的。这需要多少内存?它是包安装错误吗?我正在使用以下铁路红宝石版本
Rail: Rails 2.3.5
Ruby:ruby 2.1.0
rake, version 10.1.1
rdoc-4.1.0
--调试
Parsing sources...
unable to convert "\xA7" from ASCII-8BIT to UTF-8 for public/javascripts/tiny_mce /plugins/spellchecker/editor_plugin.js, skipping
unable to convert "\xA7" from ASCII-8BIT to UTF-8 for public/javascripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js, skipping
failed to allocate memoryls/generators/rspec_controller/templates/helper_spec.rb
/usr/local/lib/ruby/2.1.0/rdoc/parser/ruby_tools.rb:25:in `push'
/usr/local/lib/ruby/2.1.0/rdoc/parser/ruby_tools.rb:25:in `get_tk'
/usr/local/lib/ruby/2.1.0/rdoc/parser/ruby_tools.rb:132:in `skip_tkspace'
/usr/local/lib/ruby/2.1.0/rdoc/parser/ruby.rb:428:in `get_constant_with_optional_parens'
/usr/local/lib/ruby/2.1.0/rdoc/parser/ruby.rb:1072:in `block in parse_extend_or_include'
/usr/local/lib/ruby/2.1.0/rdoc/parser/ruby.rb:1069:in `loop'
/usr/local/lib/ruby/2.1.0/rdoc/parser/ruby.rb:1069:in `parse_extend_or_include'
/usr/local/lib/ruby/2.1.0/rdoc/parser/ruby.rb:1725:in `parse_statements'
/usr/local/lib/ruby/2.1.0/rdoc/parser/ruby.rb:1871:in `parse_top_level_statements'
/usr/local/lib/ruby/2.1.0/rdoc/parser/ruby.rb:1999:in `block in scan'
/usr/local/lib/ruby/2.1.0/rdoc/parser/ruby.rb:1997:in `catch'
/usr/local/lib/ruby/2.1.0/rdoc/parser/ruby.rb:1997:in `scan'
/usr/local/lib/ruby/2.1.0/rdoc/rdoc.rb:367:in `parse_file'
/usr/local/lib/ruby/2.1.0/rdoc/rdoc.rb:420:in `block in parse_files'
/usr/local/lib/ruby/2.1.0/rdoc/rdoc.rb:418:in `map'
/usr/local/lib/ruby/2.1.0/rdoc/rdoc.rb:418:in `parse_files'
/usr/local/lib/ruby/2.1.0/rdoc/rdoc.rb:488:in `document'
/usr/local/lib/ruby/gems/2.1.0/gems/rdoc-4.1.0/bin/rdoc:20:in `<top (required)>'
/usr/local/bin/rdoc:23:in `load'
/usr/local/bin/rdoc:23:in `<main>'