Ruby on Rails installation

From Smith family
Jump to: navigation, search

How to install Ruby, Gems, and Rails. Instructions for Linux workstation, Linux server, and Windows workstation.

Installation on Ubuntu Linux

  • Install the following packages:
Server
root@server:~# apt-get install build-essential apache2 apache2-mpm-prefork \
  apache2-prefork-dev libapache2-mod-ruby \
  libmysqlclient-dev  \
  postgresql postgresql-client libpq-dev \
  sqlite3  libsqlite3-dev \
  imagemagick graphicsmagick libmagick10 libgraphicsmagick1 libgraphicsmagick1-dev 
Desktop
root@desktop:~# apt-get install build-essential libmysqlclient-dev \
  sqlite3 libsqlite3-dev \
  postgresql postgresql-client libpq-dev \
  imagemagick graphicsmagick libmagick10 libgraphicsmagick1 libgraphicsmagick1-dev

Passenger

Follow the instructions from Phusion.

root@desktop:~# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 561F9B9CAC40B2F7
root@desktop:~# aptitude install apt-transport-https
root@desktop:~# echo "deb https://oss-binaries.phusionpassenger.com/apt/passenger saucy main" >> /etc/apt/sources.list.d/passenger.list
root@desktop:~# chown root:root /etc/apt/sources.list.d/passenger.list
root@desktop:~# chmod 600 /etc/apt/sources.list.d/passenger.list
root@desktop:~# aptitude update
root@desktop:~# aptitude install libapache2-mod-passenger

See also