HOW TO INSTALL RAILS IN DEBIAN Distros (Ubuntu), WINDOWS, MAC OSX by Cesar AKA mrebola

Cesar Gaytán

Hey Guys ! 

I wrote this small tutorial , to help all the new guys installing rails in their OS, as everyone who already did it installing rails is always a bitch. So thats why I post the easyest way to do it.

Good luck ! 

 

 

/===========================================================================/

/=====How to install Rails with RVM in Debian based distros (Ubuntu)=======/

/=========================================================================/

 

Install git and cURL

 

Update your package repository.

sudo apt-get update

 

sudo apt-get install git

 

sudo apt-get install curl

 

Install RVM and Dependencies

 

RVM is not strictly required but it makes ruby management a lot easier. You can try different implementations of ruby, different versions of ruby and all without any pain. So it’s strongly recommended. but RVM requires the command to be executed as login shell, so open a terminal and go to Edit -> Profile Preferences -> Title and Command and check the box that says “Run Command as a login shell“.

 

curl -L get.rvm.io | bash -s stable

 

load the RVM

source ~/.rvm/scripts/rvm

 

Then install additional dependencies specified by the RVM (If needed)

 

rvm requirements (Runing is the best, lets install all the required shit!) 

sudo apt-get -y install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion

 

Installing Javascript Runtime

In newer version of Rails, you also need a Javascript runtime. Install nodejs -

 

sudo apt-get install nodejs

 

Now, you got RVM running, installing and running multiple versions or just one version of Ruby is very simple. To install Ruby just pass the version number to rvm install command (or some other implementation of ruby if you want; RVM also supports rbx, ree, JRuby, IRonRuby other than the default MRI) -

 

rvm install 1.9.3

Then select the Ruby version you want to use, (or make it default so that you don’t have to select it again in new session)

 

rvm use 1.9.3 --default

Now, you can check the version of ruby, you’re running right now-

 

ruby -v

 

RVM installs ruby as well as the gem utility (managing ruby libraries). To install rails, simply install it using the gem. It will automatically install the latest version unless you specify the version explicitly.

 

gem install rails

 

Now You’re done!.

 

Create an empty app:

rails new app_name

cd app_name

rails server

Now, open a browser and go to http://localhost:3000.

:D

 

/===========================================================================/

/======================How to install Rails Windows 7 or 8 ================/

/=========================================================================/

 

1.- Download Rails intaller from http://railsinstaller.org/ 

2.- Install it 

...  "I know, as difficult than Linux" ...

 

/===========================================================================/

/================================== MAC OSX  ==============================/

/=========================================================================/

 

1.- Download Rails intaller from http://railsinstaller.org/ 

2.- Install it 

...  "I know, as difficult than Linux" ...

 

Bench mark , Rails Running 15 cucumber unit tests:

Windows: 10 mins 

Linux: 15 seg

Mac: 10 seg

 

Mac is better, faster running rails! than Linux and Windows, Windows is a fucking snail.

 

 

Well I hope this help you guys 

Have a Nice coding ! 

 

 

Cesar G.

AKA mr.ebola

 

 

 

 

 

 

Nice!!.

Por experiencia propia, no utilicen Windows, yo tuve problemas con jasmin para utilizar Hamlc en Backbone y muchas otras gemas.