-
-
Save jessefulton/3422268 to your computer and use it in GitHub Desktop.
RVM Install on Cloud9 IDE
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
# this script expects to be run from your home dir | |
# TOTALLY STILL UNDER DEVELOPMENT! | |
# automated version of https://gist.github.com/3116835 | |
# this will get your ID... | |
GUID=$(pwd | sed -e 's/\/var\/lib\/stickshift\/\([^\/]*\)\/.*/\1/') | |
# Create .gemrc and copy it to $HOME | |
echo "install: --no-rdoc --no-ri" | cat > .gemrc | |
echo "update: --no-rdoc --no-ri" | cat >> .gemrc | |
echo "gemhome: /var/lib/stickshift/${GUID}/app-root/data/.gems" | cat >> .gemrc | |
echo "gempath: " | cat >> .gemrc | |
echo " - /var/lib/stickshift/${GUID}/app-root/data/gems/1.8" | cat >> .gemrc | |
cp .gemrc ../ | |
# install rvm | |
curl -L https://get.rvm.io | bash -s stable --ruby | |
# so this needs to be done every time apparently, add it to bashrc or something | |
# RUN IT IN TERMINAL! (Open via ALT+T) | |
echo "source /var/lib/stickshift/${GUID}/app-root/data/.rvm/scripts/rvm" | cat >> ../.bashrc | |
echo 'echo '\''[[ -s "$HOME/.rvm/scripts/rvm" ]] && . \"$HOME/.rvm/scripts/rvm\" # Load RVM function'\'' >> ~/.bash_profile' | cat >> ../.bashrc | |
echo "rvm use 1.9.3" | cat >> ../.bashrc | |
source /var/lib/stickshift/${GUID}/app-root/data/.rvm/scripts/rvm | |
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile | |
rvm use 1.9.3 | |
#Ruby is now in ~/.rvm/rubies/ruby-1.9.3-p194/bin/ruby in case you want to run it that way |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
im gettng the following error: