Ошибка при установке rails - stack level too deep
Не могу понять, что ему не хватает.
Вот вывод по версиям:
Код:
root@hivede6-1974:/usr/local/rvm/config# ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
root@hivede6-1974:/usr/local/rvm/config# gem -v
1.3.7
root@hivede6-1974:/usr/local/rvm/config# rails -v
bash: rails: command not found
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
root@hivede6-1974:/usr/local/rvm/config# gem -v
1.3.7
root@hivede6-1974:/usr/local/rvm/config# rails -v
bash: rails: command not found
Код:
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.5 (squeeze)
Release: 6.0.5
Codename: squeeze
Description: Debian GNU/Linux 6.0.5 (squeeze)
Release: 6.0.5
Codename: squeeze
Вот вывод при установке:
Код:
root@hivede6-1974:/usr/local/rvm/config# gem install rails --debug
Exception `NameError' at /usr/lib/ruby/1.8/rubygems/command_manager.rb:164 - uninitialized constant Gem::Commands::InstallCommand
Exception `Gem::LoadError' at /usr/lib/ruby/1.8/rubygems.rb:779 - Could not find RubyGem test-unit (>= 0)
Exception `Gem::LoadError' at /usr/lib/ruby/1.8/rubygems.rb:779 - Could not find RubyGem sources (> 0.0.1)
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /root/.gem/specs/rubygems.org%80
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /root/.gem/specs/rubygems.org%80
Exception `SystemStackError' at /usr/lib/ruby/1.8/rubygems/version.rb:299 - stack level too deep
ERROR: While executing gem ... (SystemStackError)
stack level too deep
/usr/lib/ruby/1.8/rubygems/version.rb:299:in `<=>'
/usr/lib/ruby/1.8/rubygems/version.rb:298:in `upto'
/usr/lib/ruby/1.8/rubygems/version.rb:298:in `<=>'
/usr/lib/ruby/1.8/rubygems/specification.rb:651:in `<=>'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:179:in `sort'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:179:in `tsort_each_child'
/usr/lib/ruby/1.8/tsort.rb:203:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.8/tsort.rb:209:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:188:in `tsort_each_child'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:185:in `each'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:185:in `tsort_each_child'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:184:in `each'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:184:in `tsort_each_child'
/usr/lib/ruby/1.8/tsort.rb:203:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.8/tsort.rb:209:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:188:in `tsort_each_child'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:185:in `each'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:185:in `tsort_each_child'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:184:in `each'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:184:in `tsort_each_child'
/usr/lib/ruby/1.8/tsort.rb:203:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.8/tsort.rb:209:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:188:in `tsort_each_child'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:185:in `each'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:185:in `tsort_each_child'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:184:in `each'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:184:in `tsort_each_child'
/usr/lib/ruby/1.8/tsort.rb:203:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.8/tsort.rb:182:in `each_strongly_connected_component'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:175:in `each'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:175:in `tsort_each_node'
/usr/lib/ruby/1.8/tsort.rb:180:in `each_strongly_connected_component'
/usr/lib/ruby/1.8/tsort.rb:164:in `strongly_connected_components'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:69:in `dependency_order'
/usr/lib/ruby/1.8/rubygems/dependency_installer.rb:169:in `gather_dependencies'
/usr/lib/ruby/1.8/rubygems/dependency_installer.rb:245:in `install'
/usr/lib/ruby/1.8/rubygems/commands/install_command.rb:119:in `execute'
/usr/lib/ruby/1.8/rubygems/commands/install_command.rb:116:in `each'
/usr/lib/ruby/1.8/rubygems/commands/install_command.rb:116:in `execute'
/usr/lib/ruby/1.8/rubygems/command.rb:270:in `invoke'
/usr/lib/ruby/1.8/rubygems/command_manager.rb:134:in `process_args'
/usr/lib/ruby/1.8/rubygems/command_manager.rb:104:in `run'
/usr/lib/ruby/1.8/rubygems/gem_runner.rb:58:in `run'
/usr/bin/gem:21
Exception `NameError' at /usr/lib/ruby/1.8/rubygems/command_manager.rb:164 - uninitialized constant Gem::Commands::InstallCommand
Exception `Gem::LoadError' at /usr/lib/ruby/1.8/rubygems.rb:779 - Could not find RubyGem test-unit (>= 0)
Exception `Gem::LoadError' at /usr/lib/ruby/1.8/rubygems.rb:779 - Could not find RubyGem sources (> 0.0.1)
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /root/.gem/specs/rubygems.org%80
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists - /root/.gem/specs/rubygems.org%80
Exception `SystemStackError' at /usr/lib/ruby/1.8/rubygems/version.rb:299 - stack level too deep
ERROR: While executing gem ... (SystemStackError)
stack level too deep
/usr/lib/ruby/1.8/rubygems/version.rb:299:in `<=>'
/usr/lib/ruby/1.8/rubygems/version.rb:298:in `upto'
/usr/lib/ruby/1.8/rubygems/version.rb:298:in `<=>'
/usr/lib/ruby/1.8/rubygems/specification.rb:651:in `<=>'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:179:in `sort'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:179:in `tsort_each_child'
/usr/lib/ruby/1.8/tsort.rb:203:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.8/tsort.rb:209:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:188:in `tsort_each_child'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:185:in `each'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:185:in `tsort_each_child'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:184:in `each'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:184:in `tsort_each_child'
/usr/lib/ruby/1.8/tsort.rb:203:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.8/tsort.rb:209:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:188:in `tsort_each_child'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:185:in `each'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:185:in `tsort_each_child'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:184:in `each'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:184:in `tsort_each_child'
/usr/lib/ruby/1.8/tsort.rb:203:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.8/tsort.rb:209:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:188:in `tsort_each_child'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:185:in `each'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:185:in `tsort_each_child'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:184:in `each'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:184:in `tsort_each_child'
/usr/lib/ruby/1.8/tsort.rb:203:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.8/tsort.rb:182:in `each_strongly_connected_component'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:175:in `each'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:175:in `tsort_each_node'
/usr/lib/ruby/1.8/tsort.rb:180:in `each_strongly_connected_component'
/usr/lib/ruby/1.8/tsort.rb:164:in `strongly_connected_components'
/usr/lib/ruby/1.8/rubygems/dependency_list.rb:69:in `dependency_order'
/usr/lib/ruby/1.8/rubygems/dependency_installer.rb:169:in `gather_dependencies'
/usr/lib/ruby/1.8/rubygems/dependency_installer.rb:245:in `install'
/usr/lib/ruby/1.8/rubygems/commands/install_command.rb:119:in `execute'
/usr/lib/ruby/1.8/rubygems/commands/install_command.rb:116:in `each'
/usr/lib/ruby/1.8/rubygems/commands/install_command.rb:116:in `execute'
/usr/lib/ruby/1.8/rubygems/command.rb:270:in `invoke'
/usr/lib/ruby/1.8/rubygems/command_manager.rb:134:in `process_args'
/usr/lib/ruby/1.8/rubygems/command_manager.rb:104:in `run'
/usr/lib/ruby/1.8/rubygems/gem_runner.rb:58:in `run'
/usr/bin/gem:21
У вас серьёзное отставание версии Ruby. Установите 2.0 и будет вам счастье. Вместо RVM пользуйтесь Rbenv. С RVM намучаетесь только, а Rbenv проще, легче и быстрее.