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
38
votes
9 answers

rails server fails to start with mysql2 using rvm & ruby 1.9.2-p0 on OSX 10.6.5

I'm getting the following error when I start rails server: $ rails server /Users/ssmith/.rvm/gems/ruby-1.9.2-p0/gems/mysql2-0.2.6/lib/mysql2.rb:7:in `require': …
Scott
  • 1,034
  • 1
  • 9
  • 19
37
votes
4 answers

Which Ruby version am I really running?

I'm running Ubuntu 12.04 LTS, and installed Ruby via RVM. The problem is, when I type ruby -v into the terminal, it says that my Ruby version is 1.8.7, and using the shotgun gem for Sinatra also says that I'm running Ruby 1.8.7. But when I type rvm…
Ordep81
  • 967
  • 4
  • 13
  • 18
37
votes
3 answers

RVM: List all gems in current gemset ignoring global & default

Looking for something like gem list within an RVM gemset but to have it ignore gems in the global and default gemsets so I can see, easily, exactly what gems are in the active gemset (and only the active gemset).
Meltemi
  • 37,979
  • 50
  • 195
  • 293
36
votes
4 answers

How to have multiple versions of Ruby AND Rails, and their combinations on Windows?

Since Windows doesn't support rvm (Ruby version Manager), how do we have Ruby 1.8.7, Rails 2.3.8 Ruby 1.8.7, Rails 3.0.0 Ruby 1.9.2, Rails 3.0.0 on the same PC? Virtual machines can be used but it is kind of troublesome.
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
35
votes
6 answers

How to install RVM on Windows 7

How do I install RVM on Windows 7? It says to install RVM, and use the following script: user$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) But I have no idea what to do with it. If I type it…
user1070381
  • 503
  • 2
  • 6
  • 9
35
votes
6 answers

How do I configure capistrano to use my rvm version of Ruby

Does anybody know how I can tell capistrano to use my default rvm version of ruby for on the server I am pushing to. It insists on using the system version. Is it even possible?
Sam Saffron
  • 128,308
  • 78
  • 326
  • 506
35
votes
5 answers

Gem install hangs indefinitely

Background: I'm a designer that works well with HTML, CSS, and JS. But when it comes to setting up my environment is where I fall short. I recently purchased a home computer. I want to set up Middleman to use in a project. I already installed rvm…
rvazquez
  • 687
  • 1
  • 8
  • 13
35
votes
5 answers

How do I install Bash >= 3.2.25 on Mac OS X 10.5.8?

I'm following Michael Hartl's Rails tutorial, so far I've installed Git 1.7.5.4 x86_64 (I'm running OSX 10.5.8) and I'm trying to install rvm After I run the following: $ curl -kL get.rvm.io | bash -s stable I get: BASH 3.2.25 required (you have…
kadolor
  • 351
  • 1
  • 3
  • 3
34
votes
3 answers

Nothing known about.... when trying ri String#upcase Ruby

I have just installed the RVM and I am reading The Well-Grounded Rubyist book. In the first chapter I am supposed to try ri String#upcase to view documentation on the upcase method, however I get a message saying: Nothing known about…
LuckyLuke
  • 47,771
  • 85
  • 270
  • 434
34
votes
17 answers

How to use "RVM --default" on MacOSX

After using Ruby and Rails for quite some time now, I wanted to try RVM. Everything works fine, except for one thing: In a freshly opened Terminal ruby points to the system's ruby, despite the fact, that I used the rvm --default command. user@terra…
DiegoFrings
  • 3,043
  • 3
  • 26
  • 30
34
votes
7 answers

When changing into Rails folder, have rvm pick ruby and gemset?

For my different Rails folders, I would like to have rvm automatically load the correct gemset when running anything from 'bundle install' to doing my 'autotest' or rails console or server. Is this possible? Currently I have to manually do 'rvm…
Etienne
  • 726
  • 1
  • 7
  • 18
34
votes
1 answer

What does "No binary rubies available" mean?

Whenever I use rvm install x.x.x, I get this warning even in successful installation: No binary rubies available for: osx/10.12/x86_64/ruby-2.4.0. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. I…
ogirginc
  • 4,948
  • 3
  • 31
  • 45
33
votes
6 answers

how to make a gemset in RVM the default?

I'm trying to make a gemset the default whenever I start a new terminal in Mac OS X: rvm use 1.9.3@rails3.2 --create --default That seems to work, the rails3.2 gemset becomes the current gemset: $ rvm gemset list gemsets for ruby-1.9.3-p0 (found…
at.
  • 50,922
  • 104
  • 292
  • 461
33
votes
6 answers

Ruby, RVM, LLVM and MySQL

I'm having big trouble in configuring Ruby and MySQL on MacOSX. Just a fact, I'm new on MacOSX and Ruby On Rails. So, first I was having problems to install mysql2 gem, after get the gem installed I was trying developer a test, and when I tried…
MaltMaster
  • 758
  • 1
  • 10
  • 25
33
votes
2 answers

"rails generate" not working

When using ruby 2.1.0 (or 2.1.1) and I type rails g nothing happens. It simply hangs. But when I change to 1.9.3, using rvm use 1.9.3 it works as expected. How can I debug this? What might be causing this command to hang, only on ruby > 2.0.0? I…
subZero
  • 5,056
  • 6
  • 31
  • 51