I submitted a shorter version of this yesterday but it does not seem to
have ever shown up.
I have a fresh install of Ruby, RubyGems, FastCGI and ruby-fcgi (gem
install fcgi). I’ve done this under fc4 & fc5. Ruby & FastCGI were
compiled from source.
RubyGems was installed via setup.rb.
irb> require ‘fcgi.so’ gives a ‘no such file to load’ error.
Searching for the file locates it at:
Trying a require to the absolute path:
irb> require ‘/usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.so’ =>
I’d rather not have to use require ‘<path_to_fcgi>/fcgi.so’ whenever I
need to require ‘fcgi.so’. Is there any way to permanently add
path_to_fcgi.so to Ruby’s loadpath? I’ve added the path to
/etc/ld.so.conf.d/fcgi.conf without joy.
Is there a glitch in the way this gem has been installed?
I see that :
irb> require ‘mysql’ => true
irb> require ‘net-ssh’ and require ‘chronic’ among others all give the
‘no such file to load’ error.
each of these was loaded with ‘gem install xxx’ apparently without
hitch. Each seems to work when used within my rails apps. I do not
really have a handle on how the gem install mechanism and associated
load paths work. Perhaps all is ok, but at least one author, James
Duncan Davidson, uses testing with irb> require ‘fcgi.so’ to assure a
correct install of fcgi.so.
Oh, one last thing: irb> puts $LOADPATH => nil