# Problem with gempath

**URL:** <https://www.ruby-forum.com/t/problem-with-gempath/179161>\
**Category:** Ruby\
**Created:** [November 18, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/problem-with-gempath/179161 "2009-11-18T18:40:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [November 18, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/problem-with-gempath/179161/1 "2009-11-18T18:40:37Z")

</div>

hi, I recently got problem with installing gem. when i execute “gem  
install xxx” it install to the current directory.  
here is what i’ve got when i execute “gem env”

- 
## GEM PATHS:

  - /Users/jsney/.gem/ruby/1.8
  - /opt/local/lib/ruby/gems/1.8

i don’t know how to remove the first record. anyone can help ?

---

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [November 18, 2009, 6:54pm UTC](https://www.ruby-forum.com/t/problem-with-gempath/179161/2 "2009-11-18T18:54:40Z")

</div>

On Thu, Nov 19, 2009 at 02:40:06AM +0900, jney wrote:

> 

if it is in your ~/.gemrc then editing this file should help

badboy\_

---

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [November 18, 2009, 7:28pm UTC](https://www.ruby-forum.com/t/problem-with-gempath/179161/3 "2009-11-18T19:28:02Z")

</div>

Hi jan-Erik, i should precise that, gempath isn’t define in my  
~/.gemrc

---

<div class="post-metadata">

**Author:** ![jney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jney](https://www.ruby-forum.com/u/jney)\
**Post date:** [November 26, 2009, 3:46pm UTC](https://www.ruby-forum.com/t/problem-with-gempath/179161/4 "2009-11-26T15:46:00Z")

</div>

Just fix it.  
GEM\_PATH env var was set by rvm ([http://rvm.beginrescueend.com/](http://rvm.beginrescueend.com/)).

On 18 nov, 19:21, jney [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > - GEM PATHS:

Just fix it.  
GEM\_PATH env var was set by rvm ([http://rvm.beginrescueend.com/](http://rvm.beginrescueend.com/)).
