Ruby on Rails Sunday, February 27, 2011

On Feb 27, 9:59 am, Magnusvb <mag...@studioalice.se> wrote:
> Hi
> I have installed Ruby 1.9.2 and upgraded Rails to 3.0.4 (Mac OS X
> 10.6). Running "ruby -v" this is the output:
> ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.6.0]
>
> Running "which ruby", the output is:
> /usr/local/ruby1.9/bin/ruby
>
> The problem is then I'm starting the WEBrick server with "rails
> server":
> [2011-02-27 10:56:13] INFO  WEBrick 1.3.1
> [2011-02-27 10:56:13] INFO  ruby 1.8.7 (2009-06-12) [universal-
> darwin10.0]
> [2011-02-27 10:56:13] INFO  WEBrick::HTTPServer#start: pid=21069
> port=3000
>
> Why is Ruby 1.8.7 used, and what to do to have WEBrick using Ruby
> 1.9.2 instead?
>
I'd guess that you have both ruby 1.8.6 and 1.9.2 installed, both are
on the path but you've only installed the rails gem for ruby 1.8.7, so
while 'ruby' finds 1.9.2, running 'rails' finds the one installed with
ruby 1.8.7. If you install rails in your ruby 1.9.2 environment you
should be ok.

Fred
> Best regards,
> Magnus

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

No comments:

Post a Comment