# Ruby Gem Issue

**URL:** <https://www.ruby-forum.com/t/ruby-gem-issue/169213>\
**Category:** Ruby\
**Created:** [May 31, 2009, 10:37pm UTC](https://www.ruby-forum.com/t/ruby-gem-issue/169213 "2009-05-31T22:37:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![devrubygem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ac8455/32.png) [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Post date:** [May 31, 2009, 10:37pm UTC](https://www.ruby-forum.com/t/ruby-gem-issue/169213/1 "2009-05-31T22:37:18Z")

</div>

I get this error below when running :make in my macvim editor

:!rake 2\>&1| tee  
/var/folders/vb/vb1WTMY3ERGWQBNjCq03fk+++TI/-Tmp-/v802427/3  
Rails requires RubyGems \>= 1.3.1 (you have 1.0.1). Please `gem update --system` and try again.  
(in /Users/musdev/peepcode/my\_blog)  
(1 of 1): (in /Users/musdev/peepcode/my\_blog)

But when I type gem --version in my terminal it says I have the latest  
1.3.4  
Is something possibly wrong with my set up somewhere?

Zayd

---

<div class="post-metadata">

**Author:** ![devrubygem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ac8455/32.png) [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Post date:** [June 1, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/ruby-gem-issue/169213/2 "2009-06-01T19:47:02Z")

</div>

On May 31, 2009, at 16:41, Zayd C. wrote:

> But when I type gem --version in my terminal it says I have the latest  
> 1.3.4  
> Is something possibly wrong with my set up somewhere?

Likely the path for vim is not the same as the path for your shell.

:!gem env and :!echo $PATH vs gem env and echo $PATH will help you  
figure it out.

---

<div class="post-metadata">

**Author:** ![devrubygem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ac8455/32.png) [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Post date:** [June 1, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/ruby-gem-issue/169213/3 "2009-06-01T20:48:39Z")

</div>

Eric H. wrote:

> On May 31, 2009, at 16:41, Zayd C. wrote:
> 
> > But when I type gem --version in my terminal it says I have the latest  
> > 1.3.4  
> > Is something possibly wrong with my set up somewhere?
> 
> Likely the path for vim is not the same as the path for your shell.
> 
> :!gem env and :!echo $PATH vs gem env and echo $PATH will help you  
> figure it out.

Thanks for the response!!  
I typed in :!echo $PATH vs gem env and echo $PATH

/usr/bin:/bin:/usr/sbin:/sbin vs gem env and echo  
/usr/bin:/bin:/usr/sbin:/sbin

So do I need to add gem to usr/bin?

Thanks

---

<div class="post-metadata">

**Author:** ![devrubygem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ac8455/32.png) [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Post date:** [June 3, 2009, 1:05am UTC](https://www.ruby-forum.com/t/ruby-gem-issue/169213/4 "2009-06-03T01:05:12Z")

</div>

On Jun 1, 2009, at 11:48, Zayd C. wrote:

> > figure it out.
> 
> Thanks for the response!!  
> I typed in :!echo $PATH vs gem env and echo $PATH
> 
> /usr/bin:/bin:/usr/sbin:/sbin vs gem env and echo  
> /usr/bin:/bin:/usr/sbin:/sbin
> 
> So do I need to add gem to usr/bin?

“vs” is not part of the command.

run `echo $PATH` via vim and shell

run `gem env` via vim and shell

include output from all four commands in your email.

---

<div class="post-metadata">

**Author:** ![devrubygem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ac8455/32.png) [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Post date:** [June 9, 2009, 8:57pm UTC](https://www.ruby-forum.com/t/ruby-gem-issue/169213/5 "2009-06-09T20:57:43Z")

</div>

On Jun 6, 2009, at 22:25, Zayd C. wrote:

> > >
> 
> command:gemenv  
> You’re going to have to learn how to run shell commands from your  
> editor first. Look at the help on !. You probably have your shell  
> environment set up incorrectly. I can’t help you with that.

---

<div class="post-metadata">

**Author:** ![devrubygem](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ac8455/32.png) [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Post date:** [June 7, 2009, 7:25am UTC](https://www.ruby-forum.com/t/ruby-gem-issue/169213/6 "2009-06-07T07:25:04Z")

</div>

Eric H. wrote:

> On Jun 1, 2009, at 11:48, Zayd C. wrote:
> 
> > > figure it out.
> > 
> > Thanks for the response!!  
> > I typed in :!echo $PATH vs gem env and echo $PATH
> > 
> > /usr/bin:/bin:/usr/sbin:/sbin vs gem env and echo  
> > /usr/bin:/bin:/usr/sbin:/sbin
> > 
> > So do I need to add gem to usr/bin?
> 
> “vs” is not part of the command.
> 
> run `echo $PATH` via vim and shell
> 
> run `gem env` via vim and shell
> 
> include output from all four commands in your email.  
> Hey Eric,

Sorry for the delay, had the flu, wasnt active at all this last week.

OUTPUT: echo $PATH via vim =\> /usr/bin:/usr/sbin:/sbin

OUTPUT: echo $PATH via shell =\>  
/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/lib:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

OUTPUT: gem env via vim =\> message displays reading "Not an editor  
command:gemenv

OUTPUT: gem env via shell =\> RubyGems Environment:

- RUBYGEMS VERSION: 1.3.4
- RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.6.0]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/local/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
  - ruby
  - x86-darwin-9

- GEM PATHS:
  - /usr/local/lib/ruby/gems/1.8
  - /Users/musdev/.gem/ruby/1.8

- GEM CONFIGURATION:
  - :update\_sources =\> true
  - :verbose =\> true
  - :benchmark =\> false
  - :backtrace =\> false
  - :bulk\_threshold =\> 1000

- REMOTE SOURCES:
  - [http://gems.rubyforge.org/](http://gems.rubyforge.org/)

Kindest Regards
