Last active
December 14, 2015 10:59
-
-
Save sirleech/5075591 to your computer and use it in GitHub Desktop.
Install Ruby on Rails on Ubuntu 12.04 LTS (Precise Pangolin)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!#/bin/bash | |
# install on AMI Sydney Ubuntu 12.04 lTS | |
# ami-4cf26376 | |
# ap-southeast-2 precise 12.04 LTS amd64 ebs 20130222 ami-4cf26376 | |
# https://console.aws.amazon.com/ec2/home?region=ap-southeast-2#launchAmi=ami-4cf26376 | |
# run as user 'ubuntu' | |
# bash <(curl -s http://mywebsite.com/myscript.txt) | |
sudo apt-get -q -y update | |
sudo apt-get -q -y upgrade | |
# install rvm | |
sudo apt-get -q -y install curl | |
curl -L https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
# For rvm: | |
sudo apt-get -q -y --no-install-recommends install bash curl git patch bzip2 | |
# For ruby: | |
sudo apt-get -q -y --no-install-recommends install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev | |
rvm install 1.9.3 | |
rvm rubygems current | |
#install rails and others | |
gem install rails | |
# others | |
gem install sqlite3 | |
sqlite | |
sudo apt-get install -q -y sqlite | |
sudo apt-get install -q -y imagemagick |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment