I am trying to install ruby via rvm on Windows by using the command
rvm install "ruby-2.6.5"
I get the following output (Below XXXX is my username and hence redacted it)
ruby-2.6.5 - #removing src/ruby-2.6.5..
Searching for binary rubies, this might take some time.
No binary rubies available for: mingw/unknown/x86_64/ruby-2.6.5.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Installing Ruby from source to: /c/Users/XXXX/.rvm/rubies/ruby-2.6.5, this may take a while depending on your cpu(s)...
ruby-2.6.5 - #downloading ruby-2.6.5, this may take a while depending on your connection...
ruby-2.6.5 - #extracting ruby-2.6.5 to /c/Users/XXXX/.rvm/src/ruby-2.6.5....|
ruby-2.6.5 - #configuring......................................................|
ruby-2.6.5 - #post-configuration..
ruby-2.6.5 - #compiling.
ruby-2.6.5 - #installing.
Error running '__rvm_make install',
please read /c/Users/XXXX/.rvm/log/1663339281_ruby-2.6.5/install.log
There has been an error while running make install. Halting the installation.
I tried updating the PATH variable to have the path where sh.exe is present but still does not work. In the make.log, install.log, and configure.log I see the below error
make: /bin/sh: Command not found
As per the error, I think it is unable to process the make command because it is unable to find the sh.exe