Gem install fails due to invalid option

258 views
Skip to first unread message

Peter Bolier

unread,
Sep 27, 2013, 9:41:40 AM9/27/13
to rubyonra...@googlegroups.com
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
.14/ext/gem_make.out

== 
So why does the builder use an invalid option?


Ruby version: 
H:\>ruby -v
ruby 2.0.0p247 (2013-06-27) [x64-mingw32]

Its propably something simple

Colin Law

unread,
Sep 29, 2013, 4:21:18 AM9/29/13
to rubyonra...@googlegroups.com
On 27 September 2013 14:41, Peter Bolier <grmb...@gmail.com> wrote:
> Hi y'll,
>
>
> On attempting to install rails on a windows7 system it fails with:

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.

Colin
Reply all
Reply to author
Forward
0 new messages