Skip to content

Instantly share code, notes, and snippets.

@jessefulton
Forked from janjongboom/gist:3116835
Created August 22, 2012 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessefulton/3422268 to your computer and use it in GitHub Desktop.
Save jessefulton/3422268 to your computer and use it in GitHub Desktop.
RVM Install on Cloud9 IDE
# 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
@RelativeMedia
Copy link

im gettng the following error:

  GNU nano 2.0.9                                    File: /var/lib/stickshift/42af27275dfa484d8af07400b8ec2750/app-root/data/.rvm/log/ruby-1.9.3-p194/yaml/make.log                                                                               

[2012-08-28 15:51:40] make                                                                                                                                                                                                                        
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /var/lib/stickshift/42af27275dfa484d8af07400b8ec2750/app-root/data/.rvm/src/yaml-0.1.4/config/missing --run aclocal-1.11                                                                            
 cd . && /bin/sh /var/lib/stickshift/42af27275dfa484d8af07400b8ec2750/app-root/data/.rvm/src/yaml-0.1.4/config/missing --run automake-1.11 --foreign                                                                                              
src/Makefile.am:2: Libtool library used but `LIBTOOL' is undefined                                                                                                                                                                                
src/Makefile.am:2:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'                                                                                                                                                                
src/Makefile.am:2:   to `configure.ac' and run `aclocal' and `autoconf' again.                                                                                                                                                                    
src/Makefile.am:2:   If `AC_PROG_LIBTOOL' is in `configure.ac', make sure                                                                                                                                                                         
src/Makefile.am:2:   its definition is in aclocal's search path.                                                                                                                                                                                  
make: *** [Makefile.in] Error 1                                                                                                                                                                                                                   

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment