Skip to content

Instantly share code, notes, and snippets.

@SumitMunot
Forked from Jrakesh/ruby-rails-installation
Created February 4, 2022 18:42
Show Gist options
  • Save SumitMunot/78832f19084217ec1067865fba563db2 to your computer and use it in GitHub Desktop.
Save SumitMunot/78832f19084217ec1067865fba563db2 to your computer and use it in GitHub Desktop.
This lists out all the steps for successful ruby rails installation with dev tools on Windows.
Step-By-Step Installation on Windows Machine:-
Install latest release GIT bash on Windows 64-bit - https://git-scm.com/downloads
Install Sublime Text 3 on Windows - https://www.sublimetext.com/download
Install ruby v2.6.3 on Windows - https://rubyinstaller.org/downloads/archives/
Install MSYS2 for dev tools on Windows and follow the installation steps mentioned here - https://www.msys2.org/
Open Windows CMD and run - `ridk install` > Select Option-3 > After installation of packages > Press Enter
Run on MSYS2 terminal - `pacman -S base-devel mingw-w64-x86_64-toolchain`
Open Windows CMD and run - `ridk exec pacman -S mingw-w64-x86_64-libxslt`
Run on Windows CMD - `gem install nokogiri --platform ruby -- --use-system-libraries`
Open Windows CMD and run - `ridk exec pacman -S mingw-w64-x86_64-sqlite3`
Run on Windows CMD - `gem install sqlite3 --platform ruby`
Run on MSYS2 terminal - `pacman -S mingw-w64-x86_64-yarn` and `pacman -S mingw-w64-x86_64-nodejs`
Run on Windows CMD - `gem install rails -v 6.1.4`
Install Webpacker - `rails webpacker:install`
Enjoy the magic of scaffold and run your first rails web app at `localhost:3000` !!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment