Getting error while trying to install Ruby on Rails like below command
Praveen@PraveenLaptop MINGW64 ~
$ gem install rails --no-ri --no-rdoc
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/nio4r-2.2.0/ext/ni o4r
C:/Ruby25-x64/bin/ruby.exe -r ./siteconf20180224-8176-ibolzo.rb extconf.rb
current directory: C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/nio4r-2.2.0/ext/nio4r make "DESTDIR=" clean 'make' is not recognized as an internal or external command, operable program or batch file.
current directory: C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/nio4r-2.2.0/ext/nio4r make "DESTDIR=" 'make' is not recognized as an internal or external command, operable program or batch file.
make failed, exit code 1
Gem files will remain installed in C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/nio4r- 2.2.0 for inspection. Results logged to C:/Ruby25-x64/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0 /nio4r-2.2.0/gem_make.out Temporarily enhancing PATH for MSYS/MINGW... Building native extensions. This could take a while...
Can anyone figure out what is the problem of getting this error