On Feb 19, 2006, at 5:08 AM, Jay Levitt wrote: > On Sun, 19 Feb 2006 10:13:44 +0900, Eric Hodel wrote: > >>> What's going on? It works fine when run as drb.rb. >> >> It would be easier to tell you with an example. > > $ cp /usr/local/lib/ruby/1.8/drb/drb.rb jrb.rb > $ cat > test.rb > > #!/usr/local/bin/ruby > > require "jrb" drb is more than one file so you need to fix your requires. $ ruby test.rb ./jrb.rb:1059: undefined method `to_s' for class `DRb::DRbObject' (NameError) from test.rb:3 $ cat -n jrb.rb | grep 1059 1059 undef :to_s $ grep require jrb.rb require 'socket' require 'thread' require 'fcntl' require 'drb/eq' [...] $ grep require /usr/local/lib/ruby/1.8/drb/eq.rb require 'drb/drb' -- Eric Hodel - drbrain / segment7.net - http://segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com