# Ruby Gem Issue

**URL:** <https://rubytalk.org/t/ruby-gem-issue/53661>\
**Category:** ruby-talk\
**Created:** [31 May 2009 20:41 UTC](https://rubytalk.org/t/ruby-gem-issue/53661 "2009-05-31T20:41:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Musdev\_Musdev](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@Musdev\_Musdev](https://rubytalk.org/u/Musdev_Musdev)\
**Post date:** [31 May 2009 20:41 UTC](https://rubytalk.org/t/ruby-gem-issue/53661/1 "2009-05-31T20:41:09Z")

</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

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Eric\_Hodel1](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@Eric\_Hodel1](https://rubytalk.org/u/Eric_Hodel1)\
**Post date:** [1 June 2009 17:46 UTC](https://rubytalk.org/t/ruby-gem-issue/53661/2 "2009-06-01T17:46:01Z")

</div>

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.

> **···**
>
> On May 31, 2009, at 16:41, Zayd Connor wrote:
> 
> > 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?

---

<div class="post-metadata">

**Author:** ![Musdev\_Musdev](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@Musdev\_Musdev](https://rubytalk.org/u/Musdev_Musdev)\
**Post date:** [1 June 2009 18:48 UTC](https://rubytalk.org/t/ruby-gem-issue/53661/3 "2009-06-01T18:48:59Z")

</div>

Eric Hodel wrote:

> **···**
>
> > On May 31, 2009, at 16:41, Zayd Connor 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  
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Eric\_Hodel1](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@Eric\_Hodel1](https://rubytalk.org/u/Eric_Hodel1)\
**Post date:** [2 June 2009 23:04 UTC](https://rubytalk.org/t/ruby-gem-issue/53661/4 "2009-06-02T23:04:07Z")

</div>

"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.

> **···**
>
> On Jun 1, 2009, at 11:48, Zayd Connor wrote:
> 
> > Eric Hodel wrote:
> > 
> > > On May 31, 2009, at 16:41, Zayd Connor 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?

---

<div class="post-metadata">

**Author:** ![Musdev\_Musdev](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@Musdev\_Musdev](https://rubytalk.org/u/Musdev_Musdev)\
**Post date:** [7 June 2009 05:25 UTC](https://rubytalk.org/t/ruby-gem-issue/53661/5 "2009-06-07T05:25:06Z")

</div>

Eric Hodel 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:  
&nbsp;&nbsp;- RUBYGEMS VERSION: 1.3.4  
&nbsp;&nbsp;- RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.6.0]  
&nbsp;&nbsp;- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8  
&nbsp;&nbsp;- RUBY EXECUTABLE: /usr/local/bin/ruby  
&nbsp;&nbsp;- EXECUTABLE DIRECTORY: /usr/local/bin  
&nbsp;&nbsp;- RUBYGEMS PLATFORMS:  
&nbsp;&nbsp;&nbsp;&nbsp;- ruby  
&nbsp;&nbsp;&nbsp;&nbsp;- x86-darwin-9  
&nbsp;&nbsp;- GEM PATHS:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- /usr/local/lib/ruby/gems/1.8  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- /Users/musdev/.gem/ruby/1.8  
&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;- REMOTE SOURCES:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- [http://gems.rubyforge.org/](http://gems.rubyforge.org/)

Kindest Regards

> **···**
>
> > On Jun 1, 2009, at 11:48, Zayd Connor wrote:
> 
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Eric\_Hodel1](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@Eric\_Hodel1](https://rubytalk.org/u/Eric_Hodel1)\
**Post date:** [9 June 2009 18:56 UTC](https://rubytalk.org/t/ruby-gem-issue/53661/6 "2009-06-09T18:56:51Z")

</div>

> Eric Hodel 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

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.

> **···**
>
> On Jun 6, 2009, at 22:25, Zayd Connor wrote:
> 
> > > On Jun 1, 2009, at 11:48, Zayd Connor wrote:
> 
> > 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:  
> > &nbsp;&nbsp;&nbsp;- ruby  
> > &nbsp;&nbsp;&nbsp;- x86-darwin-9  
> > - GEM PATHS:  
> > &nbsp;&nbsp;&nbsp;&nbsp;- /usr/local/lib/ruby/gems/1.8  
> > &nbsp;&nbsp;&nbsp;&nbsp;- /Users/musdev/.gem/ruby/1.8  
> > - GEM CONFIGURATION:  
> > &nbsp;&nbsp;&nbsp;&nbsp;- :update\_sources =\> true  
> > &nbsp;&nbsp;&nbsp;&nbsp;- :verbose =\> true  
> > &nbsp;&nbsp;&nbsp;&nbsp;- :benchmark =\> false  
> > &nbsp;&nbsp;&nbsp;&nbsp;- :backtrace =\> false  
> > &nbsp;&nbsp;&nbsp;&nbsp;- :bulk\_threshold =\> 1000  
> > - REMOTE SOURCES:  
> > &nbsp;&nbsp;&nbsp;&nbsp;- [http://gems.rubyforge.org/](http://gems.rubyforge.org/)
> > 
> > Kindest Regards
> > 
> > --  
> > Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).
