Setting up Ruby on Rails on Windows 10



Dear friends we will be setting up ruby on rails on windows 10 in a development environment. Here in this we will be using bash on Ubuntu on windows. The reason as to why we are going to do this is that it will allow the individual user to run linux on windows machine. Most of the time the dependencies and the tutorials of ruby on rails works the best on linux & this enables the individuals to get the best of both the places. i.e. world may be. It’s like this somewhat, a windows machine for day to day work and a linux subsystem for ruby on rails. So you can balance both the world easily. This will only works on 64-bit installations of Windows. This is also included in beta. It can do the basics well enough and it will not be as vigorous as running a linux virtual machine.

Installing the Linux Subsystem for Windows –

At present what is beta for windows is the bash on Ubuntu on windows and it is the name for linux system and it allows users to run linux on windows. That too, without having to run a VM. In the windows insider program this system is only available to those on the fast option at the current moment. This will enable and want the individual to join fast and set the windows insider program.

Windows Insider Program & Developer Mode – (How to Join?)

The steps and the process are very simple. You will have to first join the or enable the developer mode in the windows. It can be easily done by the individual. They will have to go in the settings and navigate to the update security system. Then go in the developer mode option, click and enable the developer mode. After enabling the developer mode, the individual will need to enable windows subsystems for linux and this can be easily done by opening the control panel, then go into the programs and click on the turn windows feature on or of. Look for the ‘Windows Subsystem for Linux’ option and check the box next to it.

Subsystem for linux –

Hope you all know this that the earliest working version was windows 10 release 14352, and in case if the windows subsystem for linux does not shows up then the best option is that make sure you have the part of windows insider program and set it to fast level or update windows or reboot or wait for few days for it to become enabled. Many people have enabled the developer mode and they had to wait for two days or so prior to the options becoming available. There is no surety as to how it works, but the individuals can try a couple of these steps and get it right way.

Once the individual gets this installed and after rebooting they can start setting up bash on Ubuntu on windows. You can also start by searching bash on the start menu. Bash is the next process which you should follow. You will have to follows the installation step and get bash on Ubuntu on windows installed. The process of installing the bash is very easy. Once the process is finished you can easily open the start up menu and again searches for bash and this time it will have a logo which shall be of Ubuntu.

After you have installed bash on Ubuntu on windows, now you will have a functional Ubuntu linux installation which shall be running on your windows machine. Hello linux will be the starting logo and from there you can follow the normal set up steps for Ubuntu in order to Install Ruby on Rails.

Installing Ruby on Rails –

Firstly, the person will have to choose the version of ruby on rails which he or she may want to install. The first step is to install some of the dependencies for ruby i.e. sudo apt-get update. (sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev)

After this the next step is installing ruby using one of the three methods and each individual method has its own benefits. Many people prefer using RBENV these days, but if you’re familiar with RVM you can follow those steps as well.

There are instructions which have been installed from the source as well in general. It’s just that you will have to choose RBENV or RVM. You will have to choose any one method. Some of the conflicts may arise if you try to go with two, so choose the one which you feel is very interesting one. Suggestions are that you should go with RBENV. Using RBENV is recommended. Using RVM is also good form source.

From source installing RBENV is simple two steps process and initially you will have to install RBENV and then ruby build: (cd

git clone ~/.rbenv

echo ‘export PATH=”$HOME/.rbenv/bin:$PATH”‘ >> ~/.bashrc

echo ‘eval “$(rbenv init -)”‘ >> ~/.bashrc

exec $SHELL git clone ~/.rbenv/plugins/ruby-build

echo ‘export PATH=”$HOME/.rbenv/plugins/ruby-build/bin:$PATH”‘ >> ~/.bashrc

exec $SHELL) rbenv install 2.3.1, rbenv global 2.3.1, ruby –v)

The last step is to install the bundler i.e. gem install bundler. RBENV users need to run RBENV rehash after installing the bundler and configuring the Git. Git shall be used for version control system so you will have to set it up to match the Git hub account i.e. our account. If you don’t have a Git hub account makes sure that you register as it shall come handy for the future.

You will have to replace the name and the email address in the following steps and once you start using your git hub account.

  • git config –global color.ui true
  • git config –global “YOUR NAME”
  • git config –global
  • ssh-keygen -t rsa -b 4096 -C “”

The next process is to take a newly generated SSH key and put it in your Git hub accounts and copy and paste the output of the following command and paste it here.

  • cat ~/.ssh/
  • Once you’ve done this, you can check and see if it worked:
  • ssh -T
  • You should get a message like this:

You will get a message which will be some what like this hi, excid2, you have successfully authenticated, but Git Hub does not provide shell access, Installing Ruby on Rails.

You will have to choose the version of rails which you want to install. The rails transport with so many colonies these days that you will have to or we will have to install Java script runtime likes NOdeJS etc. This allows you to use coffee script and the asset pipeline in rails which combines with and minifies your JavaScript and provides faster production in the environment.

After you have installed No DeJS, gem installs rails v 4.2.6. If you are using RBENV, you will require the following command to make the rails executable RBENV rehash. Now that you’ve installed Rails, you can run the rails -v command to make sure you have everything installed correctly.








Leave a Reply

Your email address will not be published. Required fields are marked *