# Can't find right gem config file

**URL:** <https://rubytalk.org/t/cant-find-right-gem-config-file/64216>\
**Category:** ruby-talk\
**Created:** [25 November 2011 16:33 UTC](https://rubytalk.org/t/cant-find-right-gem-config-file/64216 "2011-11-25T16:33:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pinit\_Asavanuchit](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@Pinit\_Asavanuchit](https://rubytalk.org/u/Pinit_Asavanuchit)\
**Post date:** [25 November 2011 16:33 UTC](https://rubytalk.org/t/cant-find-right-gem-config-file/64216/1 "2011-11-25T16:33:33Z")

</div>

I have install ruby-1.9.1 via Macport long time ago. I have upgrade to  
1.9.3 via macport but gem environment show that INSTALLATION DIRECTORY  
and GEM PATHS still point to 1.9.1

Please help I can't find how to correct it.

> **···**
>
> # =================================================== RubyGems Environment: &nbsp;&nbsp;- RUBYGEMS VERSION: 1.8.11 &nbsp;&nbsp;- RUBY VERSION: 1.9.3 (2011-10-30 patchlevel 0) [x86\_64-darwin10] &nbsp;&nbsp;- INSTALLATION DIRECTORY: /opt/local/lib/ruby1.9/gems/1.9.1 &nbsp;&nbsp;- RUBY EXECUTABLE: /opt/local/bin/ruby1.9 &nbsp;&nbsp;- EXECUTABLE DIRECTORY: /opt/local/bin &nbsp;&nbsp;- RUBYGEMS PLATFORMS: &nbsp;&nbsp;&nbsp;&nbsp;- ruby &nbsp;&nbsp;&nbsp;&nbsp;- x86\_64-darwin-10 &nbsp;&nbsp;- GEM PATHS: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- /opt/local/lib/ruby1.9/gems/1.9.1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- /var/root/.gem/ruby/1.9.1 &nbsp;&nbsp;- GEM CONFIGURATION: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :update\_sources =\> true &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :verbose =\> true &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :benchmark =\> false &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :backtrace =\> false &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :bulk\_threshold =\> 1000 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :sources =\> ["[http://rubygems.org/](http://rubygems.org/)", "[http://gems.rubyonrails.org](http://gems.rubyonrails.org)", "[http://gems.github.com](http://gems.github.com)"] &nbsp;&nbsp;- REMOTE SOURCES: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- [http://rubygems.org/](http://rubygems.org/) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- [http://gems.rubyonrails.org](http://gems.rubyonrails.org) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- [http://gems.github.com](http://gems.github.com)
> 
> sh-3.2# cat .gemrc  
> ---  
> :backtrace: false  
> :benchmark: false  
> :bulk\_threshold: 1000  
> :sources:  
> - [http://rubygems.org/](http://rubygems.org/)  
> - [http://gems.rubyonrails.org](http://gems.rubyonrails.org)  
> - [http://gems.github.com](http://gems.github.com)  
> :update\_source
> 
> =================================  
> sh-3.2# env  
> SHELL=/bin/sh  
> TERM=xterm-256color  
> USER=root  
> SUDO\_USER=root  
> SUDO\_UID=0  
> \_\_CF\_USER\_TEXT\_ENCODING=0x0:0:0  
> USERNAME=root  
> MAIL=/var/mail/cyberjom  
> PATH=/opt/local/bin:/opt/local/sbin:/usr/share/grails/bin:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Firebird.framework/Versions/A/Resources/bin:/usr/local/ruby1.9/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/local/bin:/usr/X11/bin:/opt/local/lib/oracle/  
> PWD=/private/var/root  
> SHLVL=1  
> SUDO\_COMMAND=/usr/bin/su  
> HOME=/var/root  
> LOGNAME=root  
> SUDO\_GID=0  
> \_=/usr/bin/env  
> OLDPWD=/private/etc
> 
> Thank...
> 
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Phil\_Dobbin](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@Phil\_Dobbin](https://rubytalk.org/u/Phil_Dobbin)\
**Post date:** [25 November 2011 18:39 UTC](https://rubytalk.org/t/cant-find-right-gem-config-file/64216/2 "2011-11-25T18:39:27Z")

</div>

You could try asking on the MacPorts mailing list:

\<[http://lists.macosforge.org/mailman/listinfo/macports-users/&gt](http://lists.macosforge.org/mailman/listinfo/macports-users/&gt);

It's a very friendly, helpful list & I'm sure they can help.

Cheers,

&nbsp;&nbsp;&nbsp;&nbsp;Phil...

> **···**
>
> On 25/11/11 16:33, "Pinit Asavanuchit" \<pinit@intersol.co.th\> wrote:
> 
> > I have install ruby-1.9.1 via Macport long time ago. I have upgrade to  
> > 1.9.3 via macport but gem environment show that INSTALLATION DIRECTORY  
> > and GEM PATHS still point to 1.9.1
> > 
> > Please help I can't find how to correct it.
> 
> --  
> Nothing to see here... move along, move along

---

<div class="post-metadata">

**Author:** ![Ryan\_Davis1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/ryan_davis1/32/1848_2.png) [@Ryan\_Davis1](https://rubytalk.org/u/Ryan_Davis1)\
**Post date:** [25 November 2011 21:05 UTC](https://rubytalk.org/t/cant-find-right-gem-config-file/64216/3 "2011-11-25T21:05:51Z")

</div>

There is nothing to correct. That's the abi compatibility version.

> **···**
>
> On Nov 25, 2011, at 8:33, Pinit Asavanuchit \<pinit@intersol.co.th\> wrote:
> 
> > I have install ruby-1.9.1 via Macport long time ago. I have upgrade to  
> > 1.9.3 via macport but gem environment show that INSTALLATION DIRECTORY  
> > and GEM PATHS still point to 1.9.1
> > 
> > Please help I can't find how to correct it.
