From: ts Date: 2003-12-22T23:38:39+09:00 Subject: Re: Ruby 1.8.1 preview4 >>>>> "S" == Simon Strandgaard writes: S> /stow/ruby/lib/ruby/1.8/drb/drb.rb:705:in `open': druby://server.neoneye.home:64 Same here : I've error with drb nasun% cat s.rb require 'drb/drb' # The URI for the server to connect to URI="druby://localhost:8787" class TimeServer def get_current_time return Time.now end end # The object that handles requests on the server FRONT_OBJECT=TimeServer.new # $SAFE = 1 # disable eval() and friends DRb.start_service(URI, FRONT_OBJECT) # Wait for the drb server thread to finish before exiting. DRb.thread.join nasun% nasun% cat c.rb require 'drb/drb' # The URI to connect to SERVER_URI="druby://localhost:8787" # # Start a local DRbServer to handle callbacks. # # Not necessary for this small example, but will be required # as soon as we pass a non-marshallable object as an argument # to a dRuby call. DRb.start_service timeserver = DRbObject.new_with_uri(SERVER_URI) puts timeserver.get_current_time # nasun% nasun% /opt/sparcv9/bin/ruby -vrrbconfig -e 'p Config::CONFIG["CC"]' ruby 1.8.1 (2003-10-31) [sparc-solaris2.8] "/opt/gcc332/bin/gcc -m64 -mcpu=ultrasparc" nasun% nasun% /opt/sparcv9/bin/ruby s.rb & [2] 25727 nasun% nasun% /opt/sparcv9/bin/ruby c.rb Mon Dec 22 15:30:53 MET 2003 nasun% nasun% ruby -vrrbconfig -e 'p Config::CONFIG["CC"]' ruby 1.8.1 (2003-12-22) [sparc-solaris2.8] "gcc -m64 -mcpu=ultrasparc" nasun% this is the same gcc nasun% gcc -v Reading specs from /opt/sparcv9/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/specs Configured with: /j/ts/gcc-3.3.2/configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --prefix=/opt/gcc332 Thread model: posix gcc version 3.3.2 nasun% nasun% ruby s.rb & [2] 25739 nasun% nasun% ruby c.rb /usr/home/msys/decoux/local/r181/lib/ruby/1.8/drb/drb.rb:553:in `read': Resource temporarily unavailable (DRb::DRbConnError) from /usr/home/msys/decoux/local/r181/lib/ruby/1.8/drb/drb.rb:553:in `load' from /usr/home/msys/decoux/local/r181/lib/ruby/1.8/drb/drb.rb:610:in `recv_reply' from /usr/home/msys/decoux/local/r181/lib/ruby/1.8/drb/drb.rb:864:in `recv_reply' from /usr/home/msys/decoux/local/r181/lib/ruby/1.8/drb/drb.rb:1090:in `send_message' from /usr/home/msys/decoux/local/r181/lib/ruby/1.8/drb/drb.rb:1015:in `method_missing' from /usr/home/msys/decoux/local/r181/lib/ruby/1.8/drb/drb.rb:1014:in `open' from /usr/home/msys/decoux/local/r181/lib/ruby/1.8/drb/drb.rb:1014:in `method_missing' from c.rb:14 nasun% Guy Decoux