# DRB Program Error

**URL:** <https://www.ruby-forum.com/t/drb-program-error/103319>\
**Category:** Ruby\
**Created:** [May 4, 2007, 6:28am UTC](https://www.ruby-forum.com/t/drb-program-error/103319 "2007-05-04T06:28:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 4, 2007, 6:28am UTC](https://www.ruby-forum.com/t/drb-program-error/103319/1 "2007-05-04T06:28:45Z")

</div>

Hai  
I am trying to do DRB program  
but the server program throws an error like  
“Error:TestServer.rb:10: uninitialized constant Drb (NameError)”

These are my program

require ‘drb’  
class TestServer  
def doit  
“Hello,Distributed World”  
end  
end

a=TestServer.new  
DRb.start\_service(‘druby://localhost:3000’,a)  
Drb.thread.join

* * *

require ‘drb’  
DRb.start\_service()  
obj=DRbObject.new(nil,‘druby://localhost:3000’)

p obj.doit

* * *

I dont know what is going wrong ,will anybody tell me the solution?

Ok  
Bye  
By  
P.S.Hussain

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 4, 2007, 7:31am UTC](https://www.ruby-forum.com/t/drb-program-error/103319/2 "2007-05-04T07:31:42Z")

</div>

Hussain wrote:

> ```
> "Hello,Distributed World"
> end
> 
> ```
> 
> end
> 
> a=TestServer.new  
> DRb.start\_service(‘druby://localhost:3000’,a)  
> Drb.thread.join  
> ^^^  
> DRb

It’s just a typo (and probably one many of us have made).

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 4, 2007, 7:35am UTC](https://www.ruby-forum.com/t/drb-program-error/103319/3 "2007-05-04T07:35:42Z")

</div>

Hussain wrote:

> “Error:TestServer.rb:10: uninitialized constant Drb (NameError)”

^^^

> Drb.thread.join  
> ^^^  
> DRb

> I dont know what is going wrong ,will anybody tell me the solution?

Never to make typo errors?  
Best regards,  
Gerald
