-
-
Save xcdr/6191540 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
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential | |
apt-get -y install git-core | |
apt-get -y install libcurl4-openssl-dev | |
apt-get -y install libffi-dev | |
apt-get -y install libgmp-dev | |
apt-get -y install libreadline-dev | |
apt-get -y install libssl-dev | |
apt-get -y install zlib1g-dev | |
apt-get -y install curl | |
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git /opt/rbenv | |
git clone git://github.com/sstephenson/ruby-build.git /opt/rbenv/plugins/ruby-build | |
cd /opt/rbenv/plugins/ruby-build && ./install.sh | |
# Add rbenv to the path: | |
echo '# rbenv setup' > /etc/profile.d/rbenv.sh | |
echo 'export RBENV_ROOT=/opt/rbenv' >> /etc/profile.d/rbenv.sh | |
echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> /etc/profile.d/rbenv.sh | |
echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh | |
chmod +x /etc/profile.d/rbenv.sh | |
source /etc/profile.d/rbenv.sh | |
# Install Ruby: | |
rbenv install 2.3.0 | |
rbenv global 2.3.0 | |
gem install bundler | |
# Rehash: | |
rbenv rehash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment