I followed all the steps to install rails on my windows 10 64bits until executing gem install rails. This command displays the following error:
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
current directory: C:/dev/ruby/rubyinstaller-2.4.1–2-x64/lib/ruby/gems/2.4.0/gems/nio4r-2.1.0/ext/nio4r
C:/dev/ruby/rubyinstaller-2.4.1–2-x64/bin/ruby.exe -r ./siteconf20170822–9128–1bb8bd4.rb extconf.rb
C:/dev/ruby/rubyinstaller-2.4.1–2-x64/bin/ruby.exe: No such file or directory — extconf.rb (LoadError)
extconf failed, exit code 1
It is so embarrassing, I spending a lot of time trying to install ROR on my windows but each time I’m facing the same error “ruby.exe not recognized…” when executing gem install rails.
I would be grateful if you help me.. I’m losing hope
Thanks