From: Robert Hicks Date: 2006-07-26T03:25:10+09:00 Subject: Re: Apache using older ruby Max Benjamin wrote: > Hello List, > I'm running into some problems serving rhtml files on OSX Tiger. I'm a > bit of a noob so I apologize if the answer to my question is an obvious > one. I have both 1.8.2 and 1.8.4 installed on my computer. I setup my > environment(I think) to use .4 if I start ruby up in bash: > > ruby -v > ruby 1.8.4 (2005-12-24) [powerpc-darwin8.6.0] > > but RUBY_VERION in an rhtml file says .2 > > I'm also unsure of how to include gems in my rhtml file. > > <% > require 'rubygems' > require 'active_record' > %> > > throws: > ########### > Script Error > > No such file to load -- rubygems > > Backtrace > > (erb):3:in `require' > (erb):3 > /Users/maxb/Sites/cgi-bin/erb.cgi:36 > ########## > > I used Martin Dittus' howto when setting up apache > http://dekstop.de/weblog/2006/01/rhtml_on_osx_with_apache_and_erb/ > > > best > Max > > -- > Posted via http://www.ruby-forum.com/. Open up Terminal.app and do "echo $PATH" then at the prompt do "which ruby", notice which path is first and which ruby version shows up. Chances are you haven't set your path correctly. :Robert