RVM cheat sheet from errtheblog.com (only brought over the linux information)
|
Originally Posted:
|
|
|
RVM Homepage:
|
curl. which curl. If there is not output, run the following command:apt-get install curlcurl -L get.rvm.io | bash -s stablewhich rvm or rvm --verion; but only after reopening your terminal window.
rvm install 1.9.3 |
Latest known patch level
|
rvm install 1.9.3 -j # |
Parallel compile, replace # with number of CPU cores
|
rvm install 1.9.3 --patch falcon |
Use a patch (falcon for performance)
|
rvm install 1.9.2-p318 |
Patch level 318
|
rvm install rbx --1.9 |
Rubinius with 1.9 mode set as default
|
rvm get stablervm get headrvm requirementsrvm list known
ruby list |
List rubies only
|
rvm list gemsets |
List rubies and gemsets
|
rvm gemset list |
List gemsets for current ruby
|
|
in your terminal:
rvm help |
|
IRC #rvm @ freenode - http://webchat.freenode.net/?channels=#rvm
|
|
Error
|
Poosible Fix
|
Worked from
|
|
error: says
rvm use ... won't work |
in your terminal, type
/bin/bash --login |
LXTerminal
|
rvm system |
For system ruby with fallback to default
|
rvm use jruby |
For current session only
|
rvm use --default 1.9.3 |
For current and new sessions
|
rvm use --ruby-version rbx |
For current session and this project
|
cd to a project directory.ruby -vgem install hamlhaml
rvm 1.8.7 do gem install rspec |
in the given ruby
|
rvm 1.8.7,1.9.2 do gem install haml |
in these two rubies
|
rvm @global do gem install gist |
in @global gemset of current ruby
|
rvm use 1.8.7 |
use the ruby to manage gemsets for
|
rvm gemset create project_name |
create a gemset
|
rvm gemset use project_name |
use a gemset in this ruby
|
rvm gemset list |
list gemsets in this ruby
|
rvm gemset delete project_name |
delete a gemset
|
rvm 1.9.1@other_project_name |
use another ruby and gemset
|
rvm 1.9.3@_project --create --rvmrc |
use and create gemset & .rvmrc
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.