Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nothing Known About ... when using ri Array -- Ruby

Tags:

ruby

rvm

rdoc

ri

I have Ubuntu 11.10 and am using rvm with ruby 1.9.2. I followed this exactly to install Ruby: http://blog.sudobits.com/2011/10/27/how-to-install-ruby-on-rails-in-ubuntu-11-10/

I generate the docs with

rvm docs generate

This seems to work for a one time terminal session, but as soon as I exit out and start again, I have to generate the docs again, otherwise i get the Nothing is Known error This takes a long time, so I rather not have to generate the docs every time I start a terminal session.

Is there anything I can do to permanently have the docs available?

There are definitely similar questions to this -- but I don't have a problem with generating the docs, or using them, just keeping them installed.

like image 397
Shail Patel Avatar asked Jan 03 '12 23:01

Shail Patel


1 Answers

This is what I did to install ri docs on my Ubuntu box (I'm not using RVM):

gem install rdoc rdoc-data
rdoc-data --install
like image 53
Marek Příhoda Avatar answered Sep 20 '22 11:09

Marek Příhoda