Last active
August 29, 2015 14:18
-
-
Save Kazuma/7a9dd5922d81c3a8fec9 to your computer and use it in GitHub Desktop.
install-ruby-using-the-brightbox.sh
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/sh | |
# | |
# Setup ruby environment using the brightbox for 12.04 (Precise) | |
# See: https://www.brightbox.com/docs/ruby/ubuntu/ | |
# | |
set -e | |
echo 'Setting up: Add package repository' | |
apt-get install -y python-software-properties >/dev/null 2>&1 | |
apt-add-repository -y ppa:brightbox/ruby-ng >/dev/null 2>&1 | |
apt-get -y update >/dev/null 2>&1 | |
echo 'Installing: Ruby 2.1' | |
apt-get install -y ruby ruby2.1 ruby2.1-dev | |
update-alternatives --set ruby /usr/bin/ruby2.1 >/dev/null 2>&1 | |
update-alternatives --set gem /usr/bin/gem2.1 >/dev/null 2>&1 | |
gem install bundler | |
echo 'Finish!' |
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/sh | |
# | |
# Setup ruby environment using the brightbox for 14.04 (Trusty) | |
# See: https://www.brightbox.com/docs/ruby/ubuntu/ | |
# | |
set -e | |
echo 'Setting up: Add package repository' | |
apt-get install -y software-properties-common >/dev/null 2>&1 | |
apt-add-repository -y ppa:brightbox/ruby-ng >/dev/null 2>&1 | |
apt-get -y update >/dev/null 2>&1 | |
echo 'Installing: Ruby 2.1' | |
apt-get install -y ruby ruby2.1 ruby2.1-dev | |
update-alternatives --set ruby /usr/bin/ruby2.1 >/dev/null 2>&1 | |
update-alternatives --set gem /usr/bin/gem2.1 >/dev/null 2>&1 | |
gem install bundler | |
echo 'Finish!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment