Forum: Ruby on Rails Problem with 'require xmlsimple' in vendor code

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
320b651f98fa44b807d99bd7f4aac40d?d=identicon&s=25 Richard Sandilands (Guest)
on 2006-05-17 03:32
(Received via mailing list)
Hi there

I'm trying to "require 'xmlsimple'" in some code that lives in vendor/

I've installed the xml-simple gem, and can confirm this at the command
line
with 'gem  list --local' which shows I have v.1.0.8 of the gem.

However, when I start up lighttpd I get this:

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__': No
such file to load -- xmlsimple (MissingSourceFile)

I've tried adding in "require 'rubygems'" before the "require
'xmlsimple'"
but to no avail.

The file that requires the xmlsimple gem lives in
vendor/payment-1.0.1a/lib/payment
which is a hacked version of the Payment credi card processing module so
that it works with another gateway.

My dispatcg.fcgi has this line: require File.dirname(__FILE__) +
"/../config/environment"

but am not sure if this relevant.

I've also added the following line to config/environment.rb:

 config.load_paths += %W( #{RAILS_ROOT}/vendor/payment-1.0.1a/lib )

Any clues would be greatly appreciated.
This topic is locked and can not be replied to.