Ruby 1.9.1 unable to find ruby_parser from an included .rb file, but can from irb?

Greetings,

For some reason which I have been unable to track down tryruby.org is
down again.

What makes almost no sense is the error log is stating:
[Tue Aug 17 23:09:20 2010] [error] [client x.x.x.x] \tfrom
/where/tr/is/hosted/TryRuby/public/tryruby.rb:4:in <top (required)>', referer: http://tryruby.org/ [Tue Aug 17 23:09:20 2010] [error] [client x.x.x.x] \tfrom /where/tr/is/hosted/TryRuby/public/irb.cgi:3:inrequire’, referer:
http://tryruby.org/
[Tue Aug 17 23:09:20 2010] [error] [client x.x.x.x] \tfrom
/where/tr/is/hosted/TryRubyTryRuby/public/irb.cgi:3:in <main>', referer: http://tryruby.org/ [Tue Aug 17 23:09:20 2010] [error] [client x.x.x.x] Premature end of script headers: irb.cgi, referer: http://tryruby.org/ [Tue Aug 17 23:09:20 2010] [error] [client x.x.x.x] /where/tr/is/hosted/TryRuby/public/tryruby.rb:4:inrequire’: no such
file to load – ruby_parser (LoadError), referer: http://tryruby.org/
[Tue Aug 17 23:09:20 2010] [error] [client x.x.x.x] \tfrom
/where/tr/is/hosted/TryRuby/public/tryruby.rb:4:in <top (required)>', referer: http://tryruby.org/ [Tue Aug 17 23:09:20 2010] [error] [client x.x.x.x] \tfrom /where/tr/is/hosted/TryRuby/public/irb.cgi:3:inrequire’, referer:
http://tryruby.org/
[Tue Aug 17 23:09:20 2010] [error] [client x.x.x.x] \tfrom
/where/tr/is/hosted/TryRuby/public/irb.cgi:3:in `’, referer:
http://tryruby.org/
[Tue Aug 17 23:09:20 2010] [error] [client x.x.x.x] Premature end of
script headers: irb.cgi, referer: http://tryruby.org/

How earth would tryruby.rb be unable to find ruby_parser, when if i
drop into irb and require ‘ruby_parser’
it returns true?

I don’t recall changing a single thing relevant to ruby1.9 on the
server. I have also tried just dropping in ruby_parser’s code into
tryruby, but no avail.

This really makes no sense why it would all of a sudden stop pulling
in ruby_parser.

2010/8/18 andrew mcelroy [email protected]:

/where/tr/is/hosted/TryRuby/public/irb.cgi:3:in require', referer: /where/tr/is/hosted/TryRuby/public/tryruby.rb:4:in<top (required)>’,
How earth would tryruby.rb be unable to find ruby_parser, when if i
drop into irb and require ‘ruby_parser’
it returns true?

I don’t recall changing a single thing relevant to ruby1.9 on the
server. I have also tried just dropping in ruby_parser’s code into
tryruby, but no avail.

This really makes no sense why it would all of a sudden stop pulling
in ruby_parser.

Different environments? Maybe it helps if you dump the current
environment at the start of your CGI script - at least temporary for
debugging purposes.

Cheers

robert

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs