Saturday, November 20, 2010

Re: [Rails] Gem environment has wrong ruby version

On Nov 20, 2010, at 5:33 PM, Eddie Du wrote:

> Hi all,
>
> This appears to be wrong, I'm not sure how to fix it.
> Here's my output from "gem environment"
>
>
> RubyGems Environment:
> - RUBYGEMS VERSION: 1.3.7
> - RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]
> - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
> - RUBY EXECUTABLE: /usr/bin/ruby1.8
> - EXECUTABLE DIRECTORY: /usr/bin
> - RUBYGEMS PLATFORMS:
> - ruby
> - x86_64-linux
> - GEM PATHS:
> - /usr/lib/ruby/gems/1.8
> - /home/ed/.gem/ruby/1.8
> - GEM CONFIGURATION:
> - :update_sources => true
> - :verbose => true
> - :benchmark => false
> - :backtrace => false
> - :bulk_threshold => 1000
> - REMOTE SOURCES:
> - http://rubygems.org/
>
>
> And here's "ruby -v"
>
>
> ruby 1.9.1p0 (2009-01-30 revision 21907) [x86_64-linux]
>
>
> So gem has the wrong version of ruby in the environment. I suspect
> this
> may be the reason of some weird errors I've been seeing. So how do I
> change the gem environment?

You need to install gem (and all your gems) again, under the new ruby.
Each ruby gets its own gems, stored in its own version tree.

Walter

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate