What is "GEM_HOME setup" and how do I add it to my profile?

wolf_volpi's Avatar

wolf_volpi

29 Aug, 2011 07:33 AM

Please explain what this sentence means (copied from http://docs.rubygems.org/read/chapter/3)

"Make sure you add the GEM_HOME setup to your profile, so that RubyGems can find the location of your gem repository."

I am on Windows 7. What is "GEM_HOME setup" and how do I add it to my profile?

Thank you.

  1. Support Staff 1 Posted by Luis Lavena on 29 Aug, 2011 06:04 PM

    Luis Lavena's Avatar

    GEM_HOME is an environment variable that tells RubyGems where to find or install gems from.

    You can see the default value of GEM_HOME by doing gem env in a command prompt and see the value of it around GEM PATHS (first element listed there)

    You can learn about setting environment variables using GUI or command line:

    http://support.microsoft.com/kb/310519
    http://ss64.com/nt/set.html
    http://ss64.com/nt/setx.html

    Please note that setting that environment variable is not required unless you installed Ruby using Administrative privileges and normally you don't have them.

    Hope this helps.

  2. Luis Lavena closed this discussion on 29 Aug, 2011 06:04 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac