# Ruby 1.9.1 unable to find ruby\_parser from an included .rb file, but can from irb?

**URL:** <https://www.ruby-forum.com/t/ruby-1-9-1-unable-to-find-ruby-parser-from-an-included-rb-file-but-can-from-irb/193453>\
**Category:** Ruby\
**Created:** [August 18, 2010, 1:18am UTC](https://www.ruby-forum.com/t/ruby-1-9-1-unable-to-find-ruby-parser-from-an-included-rb-file-but-can-from-irb/193453 "2010-08-18T01:18:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/57b2e6/32.png) [@akm](https://www.ruby-forum.com/u/akm)\
**Post date:** [August 18, 2010, 1:18am UTC](https://www.ruby-forum.com/t/ruby-1-9-1-unable-to-find-ruby-parser-from-an-included-rb-file-but-can-from-irb/193453/1 "2010-08-18T01:18:02Z")

</div>

Greetings,

For some reason which I have been unable to track down [tryruby.org](http://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/](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/](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/](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/](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/](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.

---

<div class="post-metadata">

**Author:** ![akm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/57b2e6/32.png) [@akm](https://www.ruby-forum.com/u/akm)\
**Post date:** [August 18, 2010, 11:26am UTC](https://www.ruby-forum.com/t/ruby-1-9-1-unable-to-find-ruby-parser-from-an-included-rb-file-but-can-from-irb/193453/2 "2010-08-18T11:26:12Z")

</div>

2010/8/18 andrew mcelroy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

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