On 2/14/07, Tony Cosentini <starnix17 / gmail.com> wrote:
> I'm trying to deploy a simple Camping application using plain old CGI.
> When I access the page I get a 500 error and in my logs it says:
> [Wed Feb 14 17:18:46 2007] [error] [client 70.105.220.65] fortunes.cgi:
> 4:in `require': no such file to load -- camping (LoadError)
>
> This makes it seem like Camping isn't installed, but if I do gem list
> Camping is shown on the list. WIth that being said, I fired up IRB,
> and entered require 'camping' which resulted in a "no such file to
> load" error. After playing around with it a bit I noticed that if I
> did require 'rubygems' and then require 'camping' the files would
> load.
>
> Anyone have any ideas as to why my application can't load Camping?
> Thanks
>
> --
> Posted via http://www.ruby-forum.com/.
>
>
Hi Tony,
As you discovered in irb you must require 'rubygems' first, and you
need to do that in your script too.  require 'rubygems' rewrites the
require method to search your gems too.

-- 
Chris Carter
concentrationstudios.com
brynmawrcs.com