Monday, 22 July 2013

Basic ROR Installation packages

echo "Using apt-get to install OS packages so let's update it first ..."
sudo apt-get update -y

echo "Using apt-get to install git ..."
sudo apt-get install git -y

echo "Installing OS packages. You will be prompted for your password ..."
sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev -y

echo "Installing OS packages. For Apache and passenger ..."
sudo apt-get install libcurl4-openssl-dev apache2-mpm-prefork apache2-prefork-dev libapr1-dev libaprutil1-dev

echo "Install Postgres, a great open source relational database ..."
sudo apt-get install libmysqlclient15-dev mysql-server -y

echo "Install Redis, a key-value database ..."
sudo apt-get install redis-server -y

echo "Installing ImageMagick, good for cropping and re-sizing images ..."
sudo apt-get install imagemagick --fix-missing -y

echo "Installing RVM ..."
curl -L get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm

echo "Installing ruby 1.9.3 p194"
rvm install ruby-1.9.3-p194

echo "Updating Rubygems ..."
gem update --system

echo "Installing Bundler Gem ..."
gem install bundler --no-rdoc --no-ri

echo "Installing Passenger Gem ..."
gem install passenger --no-rdoc --no-ri

echo "Installing Passenger apache2-module ..."
passenger-install-apache2-module -y

echo "Installing JAVA..."
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update && sudo apt-get install oracle-jdk7-installer -y

Post a Comment