From: Jano Svitok Date: 2007-09-30T06:59:39+09:00 Subject: Re: Calling Ruby from PHP fails on "requires 'mysql'" On 9/29/07, Mark Meijer wrote:>> I'm calling Ruby from PHP using system().> This works fine until I add "require 'mysql'".>> I think it's likely missing a path for the Ruby MySQL gem.>>> I can call the same script successfully from crontab by adding the line> $LOAD_PATH << File.expand_path(File.dirname(__FILE__))>> Any experience or ideas? If the problem is in gems, try adding require "rubygems" before require "mysql".(the same may be achieved by setting RUBYOP�=rubygems in the environment) If it doesn't help, please post the exact error message with exception trace.