ruby 1.9.1 unable to find ruby_parser from an included .rb file, butcan from irb?

A

andrew mcelroy

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:in `require', 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:in `require': 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:in `require', 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 `<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/

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

Robert Klemme

2010/8/18 andrew mcelroy said:
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:in `require', 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:in `require': 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:in `require', 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 `<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/

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,269
Latest member
vinaykumar_nevatia23

Latest Threads

Top