hlh
hlh

Reputation: 2072

Why is RVM trying to install Rubygems instead of Ruby with the 'rvm install' command?

I'm trying to install Ruby 2.0 on my Debian server and decided to do this via RVM. I downloaded it using:

~$ \curl -L https://get.rvm.io | bash -s stable

But when I try to install Ruby, it looks like RVM is trying to install Rubygems instead.

~$ rvm install 2.0.0
=> 'ruby' was not found, cannot install rubygems unless ruby is present (Do you have an RVM ruby installed & selected?)

I've checked the RVM documentation and rvm install <ruby version> is definitely the command for installing Ruby, not Rubygems. So why is the issue above occuring? Thank you!

EDIT:

Output of 'rvm info': [name]@debian-server:~/.rvm/rubies$ rvm info

system:
uname:       "Linux debian-server 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2+deb7u2 x86_64 GNU/Linux"
system:      "debian/7/x86_64"
bash:        "/bin/bash => GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu)"
zsh:         " => not installed"

rvm:
version:      "rvm 1.24.5 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]"
updated:      "33 minutes 56 seconds ago"
path:         "/home/[name]/.rvm"

homes:
gem:          "not set"
ruby:         "not set"

binaries:
ruby:         ""
irb:          ""
gem:          ""
rake:         "/home/[name]/.rvm/bin/rake"

environment:
PATH:              "/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/[name]/.rvm/bin"
GEM_HOME:     ""
GEM_PATH:     ""
MY_RUBY_HOME: ""
IRBRC:        ""
RUBYOPT:      ""
gemset:       ""

Output of 'rvm requirements':

~$ rvm requirements
Checking requirements for debian. Requirements installation successful.

Upvotes: 0

Views: 252

Answers (1)

grenierm5
grenierm5

Reputation: 186

I'm not sure I understand how you arrived at this situation, but if you want ruby 2.0 installed via RVM, then I would suggest the following:

rvm implode
\curl -L https://get.rvm.io | bash -s stable --ruby

Then make sure you source ~/.bash_profile (as mentioned in the installation output) to load RVM in each new shell.

Upvotes: 1

Related Questions