From: Wai-Sun Chia Date: 2002-12-10T12:38:52+09:00 Subject: mod_ruby CVS and ruby CVS working with Apache 1.3.23 Just to let you folks know that I have the combination below working: mod_ruby CVS (as of today) ruby CVS (as of today) Apache 1.3.23 The next milestone I believe would be to have this combo working with Apache2. p.s. mod_ruby CVS works flawlessly with ruby 1.7.3 without all the fudging or kludging at the source level. Chris Pine wrote: > OK. It's all working, except that mod_ruby starts with it's $LOAD_PATH > variable all screwed up. I guess it's a problem with configure.rb? > > Here's what $LOAD_PATH starts with in mod_ruby: > > [ > "/usr/lib/site_ruby/1.6", > "/usr/lib/site_ruby/1.6/i386-linux", > "/usr/lib/site_ruby", > "/usr/lib/ruby/1.6", > "/usr/lib/ruby/1.6/i386-linux", > "." > ] > > Here's what it is for me normally: > > [ > "/usr/local/lib/ruby/site_ruby/1.7" > "/usr/local/lib/ruby/site_ruby/1.7/i686-linux" > "/usr/local/lib/ruby/site_ruby" > "/usr/local/lib/ruby/1.7" > "/usr/local/lib/ruby/1.7/i686-linux" > "." > ] > > So, at the top of each of apache/ruby-run.rb and apache/eruby-run.rb I > added: > > $LOAD_PATH.replace [ > "/usr/local/lib/ruby/site_ruby/1.7", > "/usr/local/lib/ruby/site_ruby/1.7/i686-linux", > "/usr/local/lib/ruby/site_ruby", > "/usr/local/lib/ruby/1.7", > "/usr/local/lib/ruby/1.7/i686-linux", > "." > ] > > When I restarted httpd I got no errors, so that's a good sign! However, > when I tried to get a simple .rbx or .rhtml page, I got the follow in my > error logs: > > (eval): undefined method `instance' for Apache::RubyRun:Class (NameError) > from ruby:0:in `value' > from ruby:0 > > Am I close?? Should I just give up? (I'm about to...) > > Chris > > > -- Wai-Sun "Squidster" Chia Consulting & Integration Linux/Unix/Web Developer Dude "Just Another Ruby Miner"