# Gem 0.9.5, gempath, .gemrc, require on OS X, Works, but my goodness, what a mess

**URL:** <https://www.ruby-forum.com/t/gem-0-9-5-gempath-gemrc-require-on-os-x-works-but-my-goodness-what-a-mess/122852>\
**Category:** Ruby\
**Created:** [December 12, 2007, 6:52pm UTC](https://www.ruby-forum.com/t/gem-0-9-5-gempath-gemrc-require-on-os-x-works-but-my-goodness-what-a-mess/122852 "2007-12-12T18:52:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/df705f/32.png) [@bobh](https://www.ruby-forum.com/u/bobh)\
**Post date:** [December 12, 2007, 6:52pm UTC](https://www.ruby-forum.com/t/gem-0-9-5-gempath-gemrc-require-on-os-x-works-but-my-goodness-what-a-mess/122852/1 "2007-12-12T18:52:15Z")

</div>

Hi,

I’m running OS X 10.5.1, have been running Ruby for years, Rails for  
years… this is not a new install.

I’ve got something like 109 gems installed.

I upgraded gems to 0.9.5 this morning.

I tried to install Rails 2.0.1 this morning immediately after  
upgrading gems, that’s six gems.

Okay, it worked, but it decided to install them someplace other that  
where the other 104 gems were installed without a hitch by gems 0.9.4.

After a bunch of increasingly random flailing I managed to get the  
install to put the gems into the same place as it used to. I did this  
by setting up both a .gemrc file and changing the GEM\_PATH that I  
needed with 0.9.4

So I tried to run rails. Nope. Can’t find the daemons gem. Ran irb,  
tried to require daemons. Nope. Tried ‘gems which daemons’. Identified  
the gem just fine.

So I started, more seemingly randomly flailing (I hate that), to poke  
at the gems environment.

I want the gems to be located in /Library/Ruby/Gems/gems/

So here is how it ends up:

In my .bashrc file:

export GEM\_PATH=“/Library/Ruby/Gems/:/Library/Ruby/Gems/gems/” #BOTH  
paths need to be there

My .gemrc file:

gem: --install-dir /Library/Ruby/Gems/  
gempath:

- /Library/Ruby/Gems/

Note that in gem 0.9.4 no .gemrc and only the following .bashrc line  
was needed:

export GEM\_PATH=“/Library/Ruby/Gems/”

Anyway, this seems to work, but it is really just a bit too convoluted  
for words.

Am I the only person having this problem?

Thanks,  
Bob

* * *

Bob H. – tumblelog at  
[http://www.recursive.ca/so/](http://www.recursive.ca/so/)  
Recursive Design Inc. – weblog at  
[http://www.recursive.ca/hutch](http://www.recursive.ca/hutch)  
[http://www.recursive.ca/](http://www.recursive.ca/) – works on  
[http://www.raconteur.info/cms-for-static-content/home/](http://www.raconteur.info/cms-for-static-content/home/)
