How to find out where your ruby and ruby on rails gems are installed on OS X

Posted on 20 January 2008

To find out where your ruby and ruby on rails gems are installed just type:

gem env gemp

and if you want to jump straight to that directory just type:

cd `gem env gemp`

Note those are back ticks, not quotes.

About Paul

Paul works for Kyan web design agency in Surrey, UK as a Ruby on Rails developer.

Follow Paul on Twitter

Email: paulsturgess [at] gmail.com

Read more articles in the archive →

Comments...

  • Try 'gem env' instead to get all gem environment variables.
    'gem env gemp' doesn' work, at least in 1.3.4

    pete at 26 Dec 09 at 08:00

Got something to say?