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
59
votes
6 answers

How do I update Ruby-interpreters with RVM?

I installed RVM with a few versions of Ruby-interpreters some time ago. How I can to update it, because new versions are already released? I found only one way: rvm install 1.9.2-rc1 && rvm remove 1.9.2-preview1, but my gems are lost. Can I update…
mystdeim
  • 4,802
  • 11
  • 49
  • 77
59
votes
4 answers

Create .ruby-version and .ruby-gemset with rvm

Is there a way to create the associated .ruby-version and .ruby-gemset files when creating a new gemset? With older versions of rvm, one could do rvm --create --rvmrc 1.8.7@project, but that creates .rvmrc files. I thought I read somewhere we could…
Tyler DeWitt
  • 23,366
  • 38
  • 119
  • 196
57
votes
10 answers

Rails 3 - no such file to load -- openssl

when running a Rails server, I get the following error: no such file to load -- openssl I try a solution I find online. I go to ~/.rvm/src/ruby-1.9.2-head/ext/openssl. I type : ruby extconf.rb, but I get the following: === OpenSSL for Ruby…
Bart
  • 571
  • 1
  • 4
  • 3
57
votes
1 answer

What are the differences between rbenv, rvm, and chruby?

I'm new-ish to Ruby and Rails. I am looking for a purely objective list of features and advantages/disadvantages of each. In an effort to keep preference out of this, please refrain from answering unless you have used all 3 systems.
Jordan
  • 1,879
  • 3
  • 19
  • 25
56
votes
17 answers

Ruby RVM apt-get update error

I get following error when trying to install anything with RVM: Searching for binary rubies, this might take some time. Found remote file https://rvm.io/binaries/ubuntu/13.04/x86_64/ruby-2.1.1.tar.bz2 Checking requirements for ubuntu. Installing…
Kshitiz Sharma
  • 17,947
  • 26
  • 98
  • 169
55
votes
19 answers

RVM Bundle Install Missing Gem Error even though gem is installed

I'm getting the following error even though I currently do have the Bundler gem installed (it appears when I run $gem list). ERROR: Gem bundler is not installed, run `gem install bundler` first. I'm using RVM and my $PATH is as…
cstingl
  • 603
  • 1
  • 5
  • 8
55
votes
4 answers

How to set default Ruby version with RVM?

Ubuntu 11. I do the following: $ rvm --default use 1.9.2 and I get: Using /home/md/.rvm/gems/ruby-1.9.2-p180 so that is good. but when I now open a new terminal window I still get: $ ruby -v ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
Michael Durrant
  • 93,410
  • 97
  • 333
  • 497
55
votes
13 answers

cannot load such file -- openssl (LoadError)

In OS X in rvm how do I check if openssl is configured properly? I get the cannot load such file -- openssl (LoadError) And I have tried everything in Rails 3 - no such file to load -- openssl with no success.
Bruno
  • 6,211
  • 16
  • 69
  • 104
54
votes
2 answers

Installing RVM: getting error "There was an error(23)."

I am trying to install Ruby Version Manager (RVM) without success. How to get through this error I am getting? ubuntu@ip-172-31-0-20:/tmp$ rvm install ruby-1.9.3-p484 Searching for binary rubies, this might take some time. No binary rubies available…
Kimda K
  • 563
  • 1
  • 5
  • 8
54
votes
8 answers

RVM Ruby 1.9.1 install can't locate zlib but its runtime and dev library are there

Trying to get Ruby 1.9.1 up and running with RVM on a fresh install (fedora). After doing rvm install 1.9.1, the rubygems error logs show that zlib can't be located no such file to load -- zlib (LoadError) However both the zlib runtime and…
Casper
  • 541
  • 1
  • 4
  • 3
53
votes
3 answers

how to undo bundle update

bundle update and bundle install is ver fantastic. However, is there a good way to undo bundle install and bundle update if something went wrong ?
hey mike
  • 2,431
  • 6
  • 24
  • 29
53
votes
4 answers

Cannot use RVM-installed Ruby with sudo

I have succefully configured RVM to use Ruby 1.9.2 and everything is fine. However when I'm trying to run Ruby using sudo it says it cannot find RVM or Ruby: $ ruby -v ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux] $ sudo ruby -v [sudo]…
Alexey Zakharov
  • 24,694
  • 42
  • 126
  • 197
52
votes
7 answers

Problems with the rails console, RVM and readline

I've installed rvm as a way of making sure that my local development version of ruby is the same as my server's for a particular app i work on (ruby 1.8.7). I've done this, and installed ruby 1.8.7 ok. However, when i try to start the rails…
Max Williams
  • 32,435
  • 31
  • 130
  • 197
51
votes
10 answers

Warning! PATH is not properly set up, usually this is caused by shell initialization files

Whenever I go to a folder with a .rvmrc file, there is a warning: Warning! PATH is not properly set up, '/home/me/.rvm/gems/ruby-2.0.0-p247/bin' is not available, usually this is caused by shell initialization files - check them for…
Santhosh
  • 28,097
  • 9
  • 82
  • 87
50
votes
7 answers

Could not find rails (>= 0) amongst [] (Gem::LoadError)

After installing rvm, updating .gmrc file, updating rubygems and running gem install rails -v ">=3.1.0rc", I now seem to have a complete mess: $ rails -v /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find rails (>=…
rigyt
  • 2,219
  • 3
  • 28
  • 40