How to find your Ruby gem installation path

It took me a bit too long to Google this, so I thought it was worth a note: You can find the location or path to where your Ruby gems are installed at with this command:

gem environment gemdir

Hope it’s useful!


Posted: March 30th, 2010 by Neal Enssle
Tags: , , , , ,
2 Comments »

2 Comments on “How to find your Ruby gem installation path”

  1. 1 Hedgehog said at 4:32 pm on March 7th, 2011:

    Actually that just points you to:
    - The folder under which these is a folder (gems)
    – Under which there are many others folders… one of which will be your ruby gem installation path.

    Unfortunately there does not seem to be a gem equivalent of Gem.bin_path, whcih would return ‘your Ruby gem installation path’

  2. 2 Dou said at 6:46 am on March 27th, 2011:

    It really helps! Thank you!


Leave a Reply

ebay uk | binary options strategy | Lloyd Irvin Martial Arts