Why doesn't rubymine see my my gems in ubuntu?

Hi,

I am new to ruby, rails and ruby mine.  I am normally a java, groovy, grails dev.

Anyway,  I was hoping someone could explain to me what is going on.

I am using ubuntu 12.04 and have installed ruby and rails using apt-get.

it doesn't seem however that rubymine can see any of the installations I have installed.

I started down the path of using RVM and it seems that ruby mine then picked up a ruby 1.9.3 installation but none of the gems I have installed using apt-get are visible when I try to start my simple skeleton application.

So now it looks like I have two ruby environemnts on my laptop, one installed through debian, the other through RVM.  This is not ideal.

I suppose my questions are :

Why doesn't ruby mine see the installations and gems I have installed via apt-get??

Should I abandon working with ruby and rails via apt-get and use RVM??

From what I understand, RVM is a ruby version manager, can I use this to configure rails too??

Apologies for the simple questions, just starting with Ruby and would like to do it right.

Many thanks!
John

2 comments
Comment actions Permalink

> Why doesn't ruby mine see the installations and gems I have installed via apt-get??

I'm not sure, but perhaps the ruby was in some "non-standard" path?  Have you tried to add this sdk manually to RM?

> Should I abandon working with ruby and rails via apt-get and use RVM??

imho RVM is more convenient, but if it looks too complicated for you you can use just plain ruby you have installed with apt-get (just make sure it is 1.9.X since 1.8.X is almost EOLed)

> From what I understand, RVM is a ruby version manager, can I use this to configure rails too??

rails is a gem and gem is installed to specific ruby.  I.e. you can use rvm to have several ruby versions or several set of gems for the same ruby (see gemsets).

Hope this helps, Oleg.

P.S. fee free to ask other questions you have.

0
Comment actions Permalink

Thanks!

It looks like I will end up having to use RVM at some point anyway so maybe I will just uninstall all the debian installs and work with RVM rather than having two versions  installed differently.

0

Please sign in to leave a comment.