У меня есть рубиновая среда и запущена (получена через RubyInstaller). Всякий раз, когда я пытаюсь установить рельсы с помощью следующей команды:Установить Rails 3 в Windows
gem install --http-proxy http://localhost:3128 rails --debug -V
я начинаю получать ошибки и, следовательно, я не могу установить его:
Exception `NameError' at C:/Ruby192/lib/ruby/1.9.1/rubygems/command_manager.rb:164 - uninitialized constant Gem::Commands::InstallCommand
Exception `NameError' at C:/Ruby192/lib/ruby/1.9.1/syck/tag.rb:81 - method `yaml_as' not defined in Module
Exception `Interrupt' at <internal:lib/rubygems/custom_require>:29 -
Exception `Interrupt' at <internal:lib/rubygems/custom_require>:29 -
Exception `Interrupt' at <internal:lib/rubygems/custom_require>:29 -
Exception `Interrupt' at <internal:lib/rubygems/custom_require>:29 -
Exception `Interrupt' at <internal:lib/rubygems/custom_require>:29 -
Exception `Interrupt' at <internal:lib/rubygems/custom_require>:29 -
Exception `Interrupt' at <internal:lib/rubygems/custom_require>:29 -
ERROR: Loading command: install (Interrupt)
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
C:/Ruby192/lib/ruby/1.9.1/rubygems/package.rb:92:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
C:/Ruby192/lib/ruby/1.9.1/rubygems/format.rb:9:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
C:/Ruby192/lib/ruby/1.9.1/rubygems/installer.rb:10:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
C:/Ruby192/lib/ruby/1.9.1/rubygems/dependency_installer.rb:3:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
C:/Ruby192/lib/ruby/1.9.1/rubygems/commands/install_command.rb:4:in `<top (required)>'
<internal:lib/rubygems/custom_require>:29:in `require'
<internal:lib/rubygems/custom_require>:29:in `require'
C:/Ruby192/lib/ruby/1.9.1/rubygems/command_manager.rb:170:in `rescue in load_and_instantiate'
[..]
кто может помочь ? Спасибо
Вы пробовали простой: - "gem install rails"? –
Да, но я за прокси-сервером, поэтому я должен установить его, и, поскольку он висел, я активировал параметры отладки. по сути, это порыв «gem install rails» – pistacchio
Установили ли вы DevKit (http://rubyinstaller.org/news/2010/12/15/new-devkit-for-the-holidays/)? – Tarscher