Created
February 15, 2012 16:25
-
-
Save blahutka/1837040 to your computer and use it in GitHub Desktop.
RVM, git, sqlite, openssl
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
# Install RVM and dependencies | |
sudo aptitude install curl git-core | |
sudo bash -c "bash <( curl -L https://github.com/wayneeseguin/rvm/raw/1.3.0/contrib/install-system-wide ) --version '1.3.0'" | |
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 | |
sudo adduser `whoami` rvm | |
echo 'source /usr/local/lib/rvm' >> ~/.bashrc | |
# Set up users and groups | |
sudo useradd --home /var/www --create-home --groups rvm nginx && sudo chmod g+w /var/www | |
sudo adduser `whoami` nginx | |
# | |
# >> Log out and back in to SSH, open a new shell, etc. -- something to reload your environment | |
# | |
# Install Ruby 1.9.2-p136 and make it default | |
rvm install ruby-1.9.2-p136 | |
# Make a sandwich while you wait (or have someone make you one: http://xkcd.com/149/) | |
rvm use ruby-1.9.2-p136 --default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment