From: Mark Meijer Date: 2007-10-02T04:35:18+09:00 Subject: Re: Calling Ruby from PHP fails on "requires 'mysql'" Thanks again! Saving the stderr gave me /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': No such file to load -- mysql (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from /Users/mark/scripts/myscript.rb:31 Line 31 is require 'mysql' So, looks like it can't find the gem in the path. I'm able to call the same script from crontab by adding $LOAD_PATH << File.expand_path(File.dirname(__FILE__)) Any ideas on massaging the path? cheers -- Posted via http://www.ruby-forum.com/.