Created
September 13, 2012 16:01
-
-
Save organicveggie/3715338 to your computer and use it in GitHub Desktop.
RVM on EC2
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
| $ type rvm |head -1 | |
| rvm is a function |
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
| $ ./testme.sh | |
| Try loading RVM profile from /usr/local/rvm/scripts/rvm | |
| PATH=/usr/local/rvm/gems/ruby-1.9.3-p194/bin:/usr/local/rvm/gems/ruby-1.9.3-p194@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p194/bin:/usr/local/rvm/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin | |
| rvm is /usr/local/rvm/bin/rvm |
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
| #!/bin/sh | |
| if [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then | |
| # Then try to load from a root install | |
| echo Try loading RVM profile from /usr/local/rvm/scripts/rvm | |
| source "/usr/local/rvm/scripts/rvm" | |
| fi | |
| echo "PATH=$PATH" | |
| echo `type rvm|head -1` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment