newUser
newUser

Reputation: 701

Install Ruby Using RVM on Virtual Machine Running Debian Failed Silently

I've successfully installed a Debian guest operating system on a Vista host using VirtualBox. I'm trying to follow this tutorial(http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you) to install RVM and Ruby. It appears to install ruby successfully, but the terminal will not recognise ruby at all.

Here is the terminal output:

user@debian:~$ rvm install 1.9.2
/home/user/.rvm/rubies/ruby-1.9.2-p136, this may take a while depending on your cpu(s)...

ruby-1.9.2-p136 - #fetching 
ruby-1.9.2-p136 - #downloading ruby-1.9.2-p136, this may take a while depending on your connection...
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100 8612k  100 8612k    0     0   200k      0  0:00:42  0:00:42 --:--:--  328k
ruby-1.9.2-p136 - #extracting ruby-1.9.2-p136 to /home/user/.rvm/src/ruby-1.9.2-p136
ruby-1.9.2-p136 - #extracted to /home/user/.rvm/src/ruby-1.9.2-p136
ruby-1.9.2-p136 - #configuring 
ruby-1.9.2-p136 - #compiling 
ruby-1.9.2-p136 - #installing 
ruby-1.9.2-p136 - updating #rubygems for /home/user/.rvm/gems/ruby-1.9.2-p136@global
ruby-1.9.2-p136 - updating #rubygems for /home/user/.rvm/gems/ruby-1.9.2-p136
ruby-1.9.2-p136 - adjusting #shebangs for (gem).
ruby-1.9.2-p136 - #importing default gemsets (/home/user/.rvm/gemsets/)
Install of ruby-1.9.2-p136 - #complete 
user@debian:~$ ruby -v
bash: ruby: command not found

I have no idea what went wrong or how to proceed here. I'd appreciate any insight anyone could offer.

Thanks

Upvotes: 1

Views: 1345

Answers (3)

Nikhil
Nikhil

Reputation: 1264

$ rvm 1.9.2

will do the trick.

Upvotes: 1

Dylan Markow
Dylan Markow

Reputation: 124449

If you want to make this stick between shell sessions: rvm use --default 1.9.2

Upvotes: 1

coreyward
coreyward

Reputation: 80090

Try rvm use 1.9.2. Right now it's probably defaulting to the system ruby, and if you don't have a system ruby, well, it's defaulting to nothing.

Upvotes: 6

Related Questions