Pit Capitain
1/25/2007 8:10:00 AM
Dale schrieb:
> I'm (brand) new to Ruby, so treat my questions in that light. On trying
> to install Beast (web forum software on Rails) I am required to test
> that requiring fcgi, or fcgi.so returns true from within irb.
>
> $ irb
> irb(main):001:0> require fcgi.so
> NameError: undefined local variable or method `fcgi' for main:Object
> from (irb):1
Hi Dale, welcome to Ruby!
You have to put quotes around fcgi, like
require "fcgi"
or
require "fcgi.so"
Otherwise Ruby tries to find a local variable or a method called fcgi,
and then you get the NameError you've shown.
Regards,
Pit