Questions tagged [rvm]

RVM (Ruby Version Manager) is a command line tool which allows users to install, manage and work with multiple Ruby environments from interpreters to sets of gems easily in the various Unix-like systems (such as Linux and Mac OS X).

Ruby Version Manager (RVM) is written by Wayne E. Seguin. RVM is a tool that lets you have multiple independent Ruby installations on the same machine. You can switch between them using a single command. This is wonderful, because you can experiment with new versions of Ruby while still keeping the old ones on your system.

RVM allows users to deploy each project with its own completely self-contained and dedicated environment — from the specific version of Ruby all the way down to the precise set of required gems to run the application.

A lot of questions are answered on the RVM site.

See Also

4104 questions
146
votes
6 answers

Is there a python equivalent of Ruby's 'rvm'?

Q: Do we have anything functionally equivalent in Python to the Ruby version manager 'rvm'? (RVM lets you easily switch completely between different versions of the ruby interpreter and different sets of gems (modules). Everything concerning…
conny
  • 9,973
  • 6
  • 38
  • 47
144
votes
7 answers

RVM: Uninstalling all gems of a gemset

I have global gems and various gemsets. I want to remove all gems of a gemset. Is there a way do to this, besides uninstalling the gemset?
Nerian
  • 15,901
  • 13
  • 66
  • 96
139
votes
17 answers

Getting "Warning! PATH is not properly set up" when doing rvm use 2.0.0 --default

Above doesn't work first time, works 2nd time. Try to set ruby version to 2.0.0 for any new shell windows. Doing $ rvm use 2.0.0 --default gives Warning! PATH is not properly set up, '/home/durrantm/.rvm/gems/ruby-1.9.3-p125/ bin' is not at first…
Michael Durrant
  • 93,410
  • 97
  • 333
  • 497
119
votes
8 answers

How do I upgrade my ruby 1.9.2-p0 to the latest patch level using rvm?

My current version of ruby is ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.5.0] but I want to update it to the latest patch level using rvm. How can I do this?
Lan
  • 6,039
  • 7
  • 22
  • 24
119
votes
2 answers

bundler vs RVM vs gems vs RubyGems vs gemsets vs system ruby

I am new to Ruby and trying to wrap my head around following concepts: bundler vs RVM vs gems vs RubyGems vs gemsets vs system rub and I'm confused. Can someone please describe a 'best practice' of how I should manage all this on a fresh install of…
user779159
  • 9,034
  • 14
  • 59
  • 89
117
votes
13 answers

How do I change my Ruby version using RVM?

I am not able to switch the current Ruby version: ➜ ~ rvm list rvm rubies ruby-1.9.2-p290 [ x86_64 ] ruby-1.9.3-p0 [ x86_64 ] ➜ ~ rvm use ruby-1.9.3-p0 RVM is not a function, selecting rubies with 'rvm use ...' will not work.
donald
  • 23,587
  • 42
  • 142
  • 223
116
votes
6 answers

cannot load such file -- zlib even after using rvm pkg install zlib

I installed zlib package and ruby 1.9.3 using rvm, but whenever I try to install gems it says cannot load such file -- zlib The commands I used to install are $ rvm install 1.9.3 $ rvm pkg install zlib $ rvm reinstall 1.9.3…
Razor Storm
  • 12,167
  • 20
  • 88
  • 148
112
votes
8 answers

Installing in Homebrew errors

Attempting to install rvm and ruby 1.9.2 I already installed homebrew and git, but couldn't get complete updates because I kept getting permission errors. Re-installed Snow Leopard and repaired permissions. Now this happens... $ brew install…
Ibrahim
  • 1,129
  • 2
  • 8
  • 3
110
votes
31 answers

Rails keeps telling me that it's not currently installed

I use rvm to manage different rubies and their gemsets. My shell is zsh with oh-my-zsh configured with basic settings. Enabled oh-my-zsh plugins are ruby, rails, osx, and git. Here's the command I used to install ruby-1.8.7 and rails-3.0.7. rvm…
nil
  • 3,421
  • 2
  • 21
  • 21
108
votes
10 answers

rvm: command not found MAC OX

Really, I don't know what happened. Excuse me if this question is so NOOB, but I can't find the solution for this problem. -bash: rvm: command not found I tried this curl -L https://get.rvm.io | bash -s -- --version latest but still nothing I…
Asantoya17
  • 4,465
  • 6
  • 23
  • 29
102
votes
6 answers

RVM is not working in ZSH

I'd like to try out the ZSH shell on my Mac, but I also do a lot of Ruby and Rails development, so I use RVM quite a bit too. The problem is that I can't seem to get RVM to work in ZSH, and it's working fine in the default Bash shell: > zsh > rvm…
swilliams
  • 48,060
  • 27
  • 100
  • 130
100
votes
5 answers

Where does bundler store gems?

I know that when using gem install, the gem will be stored under /home/username/.rvm/gems/, under which gemset the gem was installed. But if I use Bundler and specify the gem in the Gemfile, when I run bundle install, where will those gems be…
gerky
  • 6,267
  • 11
  • 55
  • 82
90
votes
11 answers

Curl Certificate Error when Using RVM to install Ruby 1.9.2

RVM is running into a certificate error when trying to download Ruby 1.9.2. It looks like curl is having a certificate issue but I am not sure how to bypass it. I have included the exact error info below. $ rvm install 1.9.2 Installing Ruby from…
Will Dennis
  • 1,045
  • 1
  • 10
  • 12
87
votes
6 answers

Getting the warning "Insecure world writable dir /home/chance " in PATH, mode 040777 for rails and gem

I've tried this but it didn't work and seemed to be for osx. I have a fresh Ubuntu 10.10 install with rvm, rails 3 and ruby 1.9.2. I have a fresh rails app but using either gem or rails results in the following warnings (with lag). $ rails…
Chance
  • 11,043
  • 8
  • 61
  • 84
87
votes
4 answers

How do I "activate" a different version of a particular gem?

I want to switch between rails 2.3.10 as the "active" gem for my OS, so that I can invoke it at the command line. Is it possible to do this? I'm not using rvm. Maybe it's time to start. I tried gem install rails --version=2.3.10, but that just makes…
John Bachir
  • 22,495
  • 29
  • 154
  • 227