Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I check if RVM for Gem management in Ruby was properly installed?

Is there a command to see if RVM was probably installed? I just went through the setup process of RVM and would like to test it out.

Also, since I have (or will eventually have) RVM, should I no longer use apt-get to download libraries/gems and always do that through RVM?

like image 967
Genadinik Avatar asked Dec 22 '22 15:12

Genadinik


2 Answers

rvm -v is a good start and then per the installation instructions (link) typing in $ type rvm | head -1 should return 'rvm is a function'. as to the second part yes you should just stick to installing gems with rvm using gem install (gemname here) and that will save you a good deal of trouble

like image 68
Will Ayd Avatar answered Apr 06 '23 00:04

Will Ayd


First, make sure your RVM is properly installed:

https://rvm.beginrescueend.com/rvm/install/

rvm info is a good way of finding out if everything went well.

Regarding gems, I'd say manage them through the RVM-installed Rubies, they have some advantages like gemsets:

https://rvm.beginrescueend.com/gemsets/

Now I now there's always been some controversy between people who prefer native packages over gems (and there are some valid reasons for that, but this is a discussion for another time), but I think RVM tipped the scale a bit here, as do the problems with Ruby packages on Debian:

http://www.lucas-nussbaum.net/blog/?p=617

like image 24
Michael Kohl Avatar answered Apr 06 '23 01:04

Michael Kohl