Gem install fails due to invalid option

Hi y’ll,

On attempting to install rails on a windows7 system it fails with:

H:>gem install rails

Building native extensions. This could take a while…

ERROR: Error installing rails:

ERROR: Failed to build gem native extension.

“H:/My Programs/Ruby200-x64/bin/ruby.exe” extconf.rb

H:/My Programs/Ruby200-x64/bin/ruby.exe: invalid option -P (-h will show valid

options) (RuntimeError)

Gem files will remain installed in H:/My Programs/Ruby200-x64/lib/ruby/gems/2.0.

0/gems/atomic-1.1.14 for inspection.

Results logged to H:/My Programs/Ruby200-x64/lib/ruby/gems/2.0.0/gems/atomic-1.1


My advise would be don't install rails on Windows. Use Linux (eg
Ubuntu) or Mac. If you really have not option then I believe
railsinstaller is the recommended route.