Last active
March 16, 2016 15:34
-
-
Save kenshero/774f956570a484bbf02e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
sudo apt-get update | |
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev -y | |
sudo apt-get install -y curl gnupg build-essential | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
curl -sSL https://get.rvm.io | sudo bash -s stable | |
sudo usermod -a -G rvm `whoami` | |
if sudo grep -q secure_path /etc/sudoers; then sudo sh -c "echo export rvmsudo_secure_path=1 >> /etc/profile.d/rvm_secure_path.sh" && echo Environment variable installed; fi | |
# lastest version | |
rvm install ruby | |
rvm --default use ruby | |
# specific version | |
rvm install ruby-X.X.X | |
rvm --default use ruby-X.X.X | |
gem install bundler --no-rdoc --no-ri | |
sudo apt-get install -y nodejs && | |
sudo ln -sf /usr/bin/nodejs /usr/local/bin/node | |
sudo apt-get install -y git | |
gem install bundler | |
gem install rails |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment