简体   繁体   English

fedena安装错误(ruby on rails)

[英]fedena installation error(ruby on rails)

I am new to ruby and rails.I am trying to install fedena project.But on executing rdoc db:create i am getting error like failed to allocate memoryls/generators/rspec_controller/templates/helper_spec.rb . 我是ruby和rails的新手。我正在尝试安装fedena项目。但是在执行rdoc db:create我收到的错误就像failed to allocate memoryls/generators/rspec_controller/templates/helper_spec.rb I have already 4gb of ram in my system and in that 3.5 gb is free.How much memory is required for this ?Is it package intsallation bug? 我的系统中已经有4GB的ram,并且3.5 gb是免费的。这需要多少内存?它是封装错误吗? I am using following rail ruby versions 我正在使用以下铁轨红宝石版本

Rail: Rails 2.3.5
Ruby:ruby 2.1.0
rake, version 10.1.1
rdoc-4.1.0

--debug --debug

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>'

I think you are using the wrong version of Ruby as of what they have specified in the documentation. 我认为您使用的是错误版本的Ruby,因为它们在文档中指定了它们。 Use rails as 使用rails作为

Rails 2.3.5(Note: Version should be 2.3.5), Rails 2.3.5(注意:版本应为2.3.5),

ruby as 红宝石

ruby-1.8.7-p302

In windows they are using this particular version of ruby 在Windows中,他们正在使用这个特定版本的ruby 检查版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM