Rails on windows - install issue
From the output shown above, I assume the following:
- Installed Ruby 2.0.0 x64 (64bits)
- Installed some DevKit from RubyInstaller page
Now, as explained here, for 64bits Ruby you need 64bits DevKit.
From the error in the output:
make: x86_64-w64-mingw32-gcc: Command not found
It is clear you didn't install the right DevKit.
Please remove the DevKit installed, download the correct one (as indicated in the link above and in RubyInstaller downloads page) and install again.
You will require to use ruby dk.rb install --force
(note the --force
option) to override the previous DevKit installation.
As for the the deprecation error, --include-dependencies
is no longer required. I recommend you use as installation reference a modern Ruby/Rails guide.
Error :: installing Rails on windows machine
Finally, I was able to resolve the error.
The issue was with the version where I was using ruby ~ 2.5.1p57
and downloaded devkit separately due to which some misconfiguration occurred.
In order to resolve the error in dept, I reinstalled ruby with devkit and followed below steps
Remove previously installed ruby (Uninstalled using windows uninstaller)
Removed MSYS2 installer (devkit for ruby which I installed separately)
Installed Ruby+Devkit 2.4.X as x64 from Ruby (Stable for the users who is new to ruby)
Once Installation is done set your environment variable in order to access globally.
check
ruby --version
~ ruby 2.4.4p296 (2018-03-28 revision 63013) [x64-mingw32]gem --version
~ 2.6.14.1Installing rails Successfully
gem install rails
few lines of output
Windows rails installation failing, currently on websocket mask compilation -- `make: *** [Makefile:246: websocket_mask.o]`
This morning, I got the same error when I installed RubyInstaller Ruby+Devkit 3.1.1-1 (x64).
I decided to install the version older RubyInstaller version Ruby+Devkit 3.0.3-1 (x64) for Windows 10, and I did not see this error anymore.
Error installing Rails on Windows 10
What you're seeing is a complaint about a different path (on some other developer's machine), not your System Path.
RailsInstaller seems to include an unresolved (and continuing) problem with their builds. If you look in your .bat files, you'll find the following lines, which indicate that RailsInstaller is using a hardcoded path that refers to the machine of a specific RailsInstaller developer:
@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
@"C:\Users\emachnic\GitRepos\railsinstaller-windows\stage\Ruby2.2.0\bin\ruby.exe" "C:/Users/emachnic/GitRepos/railsinstaller-windows/stage/Ruby2.2.0/bin/rails" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinNT
@"C:\Users\emachnic\GitRepos\railsinstaller-windows\stage\Ruby2.2.0\bin\ruby.exe" "%~dpn0"
Any instance of the previous code should be replaced with the following:
@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
ECHO.This version of Ruby has not been built with support for Windows 95/98/Me.
GOTO :EOF
:WinNT
@"%~dp0ruby.exe" "%~dpn0" %*
If all else fails and you just don't want to deal with it, the RailsInstaller web page includes multiple versions, so you can just go back and use an earlier version (e.g. use the version with Ruby 2.1.8 and Rails 4.2).
All this having been said, you may find cause to revisit your stance against using virtualization at some point. Many Ruby/Rails libraries are compiled for *nix, and testing against Windows is limited or non-existent, which means you're likely to run into issues sooner or later. It might be wise to at least take a look at Vagrant, etc. now instead of having to change dev environments in the middle of a project.
Error while installing Rails gem on Windows
As mentioned in this link
Run this command:
chcp 1252
And run your command again.
Related Topics
How to Find the Unique Elements in an Array in Ruby
Rails and Os X: How to Install Rmagick
How to Get Sinatra to Refrain from Adding the X-Frame-Options Header
Understanding How Establish_Connection Works in Activerecord
Os X Mountain Lion: Gcc-4.2 No Such File or Directory
Using a String as a Variable at Run Time
In Ruby on Rails, After Send_File Method Delete the File from Server
Installing Ruby on MAC Os X 10.8.2
How to Cleanly Initialize Attributes in Ruby with New
Asynchronous Http Request in Ruby
Dynamically Set Local Variables in Ruby
Typeerror: Superclass Mismatch for Class Word in Ruby
(Ruby) Getting Net::Smtp Working with Gmail...
Update Just One Gem with Bundler