Answer the question
In order to leave comments, you need to log in
What's wrong with installing Rails?
What went wrong and how to fix it?
$ gem i rails
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
current directory: D:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/websocket-driver-0.7.1/ext/websocket-driver
D:/Ruby26-x64/bin/ruby.exe -I D:/Ruby26-x64/lib/ruby/2.6.0 -r ./siteconf20190912-8476-1pme8ot.rb extconf.rb
creating Makefile
current directory: D:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/websocket-driver-0.7.1/ext/websocket-driver
make "DESTDIR=" clean
current directory: D:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/websocket-driver-0.7.1/ext/websocket-driver
make "DESTDIR="
generating websocket_mask-x64-mingw32.def
make: *** No rule to make target '/D/Ruby26-x64/include/ruby-2.6.0/ruby.h', needed by 'websocket_mask.o'. Stop.
make failed, exit code 2
Gem files will remain installed in D:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/websocket-driver-0.7.1 for inspection.
Results logged to D:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/websocket-driver-0.7.1/gem_make.out
Answer the question
In order to leave comments, you need to log in
Well it's written right there,
Maybe the MSYS2 Devkit is missing? Or the paths in the environment variables are incorrectly configured.
Without this extension, which requires compilation of C source codes into a gem, it will not be possible to install.
In addition, it is not certain that these sources are written with the Windows platform in mind. Usually they write for POSIX systems and don't bother. If not, then you should ask the author of websocket-driver to add Windows support.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question