Ruby Gem Issue

Z

Zayd Connor

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
 
E

Eric Hodel

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?

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

Zayd Connor

Eric said:
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
 
E

Eric Hodel

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

Zayd Connor

Eric said:
"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/


Kindest Regards
 
E

Eric Hodel

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


Kindest Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,787
Messages
2,569,627
Members
45,329
Latest member
InezZ76898

Latest Threads

Top