ERROR installing documentation while gem install rails (Win7 Rails 1.9.3)

Using Windows 7 Professional
Loaded Ruby v1.9.3p545 (2014-02-24) [i386-mingw32]
Installed dev kit (C:/Ruby193/lib/ruby/site_ruby/devkit.rb)

Tried to install rails at this point with “gem install rails”. Process
died and received the following error while installing docs:

ERROR: While generating documentation for actionpack-4.1.1
… MESSAGE: Invalid argument -
./ActionDispatch/Routing/Mapper/Scoping/:
… RDOC args: --ri --op
C:/Ruby193/lib/ruby/gems/1.9.1/doc/actionpack-4.1.1/ri lib --title
actionpack-4.1.1 Documentation --quiet

I figure I can live without documentation, but this is a problem and I
am
wondering if anyone has resolved this issue?

Full install output:

C:\RubyDevKit>gem install rails
Temporarily enhancing PATH to include DevKit…
Building native extensions. This could take a while…
Fetching: thread_safe-0.3.3.gem (100%)
Fetching: tzinfo-1.1.0.gem (100%)
Fetching: minitest-5.3.3.gem (100%)
Fetching: activesupport-4.1.1.gem (100%)
Fetching: rack-1.5.2.gem (100%)
Fetching: rack-test-0.6.2.gem (100%)
Fetching: builder-3.2.2.gem (100%)
Fetching: erubis-2.7.0.gem (100%)
Fetching: actionview-4.1.1.gem (100%)
Fetching: actionpack-4.1.1.gem (100%)
Fetching: activemodel-4.1.1.gem (100%)
Fetching: arel-5.0.1.20140414130214.gem (100%)
Fetching: activerecord-4.1.1.gem (100%)
Fetching: mime-types-1.25.1.gem (100%)
Fetching: polyglot-0.3.4.gem (100%)
Fetching: treetop-1.4.15.gem (100%)
Fetching: mail-2.5.4.gem (100%)
Fetching: actionmailer-4.1.1.gem (100%)
Fetching: thor-0.19.1.gem (100%)
Fetching: railties-4.1.1.gem (100%)
Fetching: bundler-1.6.2.gem (100%)
Fetching: hike-1.2.3.gem (100%)
Fetching: multi_json-1.10.0.gem (100%)
Fetching: tilt-1.4.1.gem (100%)
Fetching: sprockets-2.12.1.gem (100%)
Fetching: sprockets-rails-2.1.3.gem (100%)
Fetching: rails-4.1.1.gem (100%)
Successfully installed json-1.8.1
Successfully installed thread_safe-0.3.3
Successfully installed tzinfo-1.1.0
Successfully installed minitest-5.3.3
Successfully installed activesupport-4.1.1
Successfully installed rack-1.5.2
Successfully installed rack-test-0.6.2
Successfully installed builder-3.2.2
Successfully installed erubis-2.7.0
Successfully installed actionview-4.1.1
Successfully installed actionpack-4.1.1
Successfully installed activemodel-4.1.1
Successfully installed arel-5.0.1.20140414130214
Successfully installed activerecord-4.1.1
Successfully installed mime-types-1.25.1
Successfully installed polyglot-0.3.4
Successfully installed treetop-1.4.15
Successfully installed mail-2.5.4
Successfully installed actionmailer-4.1.1
Successfully installed thor-0.19.1
Successfully installed railties-4.1.1
Successfully installed bundler-1.6.2
Successfully installed hike-1.2.3
Successfully installed multi_json-1.10.0
Successfully installed tilt-1.4.1
Successfully installed sprockets-2.12.1
Successfully installed sprockets-rails-2.1.3
Successfully installed rails-4.1.1
28 gems installed
Installing ri documentation for json-1.8.1…
Installing ri documentation for thread_safe-0.3.3…
Installing ri documentation for tzinfo-1.1.0…
Installing ri documentation for minitest-5.3.3…
Installing ri documentation for activesupport-4.1.1…
Installing ri documentation for rack-1.5.2…
Installing ri documentation for rack-test-0.6.2…
Installing ri documentation for builder-3.2.2…
Installing ri documentation for erubis-2.7.0…
Installing ri documentation for actionview-4.1.1…
Installing ri documentation for actionpack-4.1.1…
ERROR: While generating documentation for actionpack-4.1.1
… MESSAGE: Invalid argument -
./ActionDispatch/Routing/Mapper/Scoping/:
… RDOC args: --ri --op
C:/Ruby193/lib/ruby/gems/1.9.1/doc/actionpack-4.1.1/ri lib --title
actionpack-4.1.1 Documentation --quiet

I have run into the same issue. Different from the OP, I am new to Rails
so probably cannot live so well without documentation.

Has anybody else run into this and found a solution?

On 16 May 2014 14:06, Steffen Z. [email protected] wrote:

I have run into the same issue. Different from the OP, I am new to Rails
so probably cannot live so well without documentation.

Has anybody else run into this and found a solution?

You may well find it difficult to get help with problems on Windows as
most developers use Linux (eg Ubuntu) or Mac. I suggest either set
you machine to dual boot with, for example, Ubuntu and start again.
Alternatively you can run linux in a virtual machine inside windows
using vmware or virtualbox.

Then I advise using rvm for installing ruby and rails, others like
rbenv I believe.

If you really must use Windows then I understand railsinstaller is the
preferred route.

Colin

gem clean " or some new versions " gem cleanup" that will clear everything
left including bundle and anything else you installed using gems. So after
installing them back you can proceed to using the command " gem install
ruby --pre ". If by some chance you do get the same error, dont worry, type
in this final command " gem install ruby -v 4.1.1 " this one will start off
fast because it is skipping over the stuff already installed correctly and
then it will be on getting the documents for a wail. Just be patient and
when you finally see “1 gem installed” lol you are riding ruby on rails!
Hope this helps :slight_smile: