Error while installaing Rails: [Errno: EINVAL]

While installing Rails on Windows 7 using following command, an error was displayed and installation interrupted. Attached is the image.

gem install rails

How to rectify this error and what it means?


gem install rails --no-ri --no-rdoc

Nobody ever uses the stupid ri rdoc crap and there is always some issue installing them.

You can also add this line to your ~/.gemrc file to make it the default:

gem: --no-ri --no-rdoc

What is ri and rdoc?

RDoc is system that generates documentation for the libraries you install. ri is program that gives you command-line access to the same documentation.

As an example, when you look at , you're looking at documentation generated by RDoc.

By default, when you install a gem, RubyGems also generates the ri and RDoc documentation files for the gem, so that you can access this documentation locally on your computer.