# Running the DRb script

**URL:** <https://www.ruby-forum.com/t/running-the-drb-script/85715>\
**Category:** Ferret\
**Created:** [February 15, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/running-the-drb-script/85715 "2007-02-15T19:53:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bsubbu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/4bbf92/32.png) [@bsubbu](https://www.ruby-forum.com/u/bsubbu)\
**Post date:** [February 15, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/running-the-drb-script/85715/1 "2007-02-15T19:53:43Z")

</div>

Hi,

I seem to have rather silly problem. I’m trying to run the script for  
the DRb server in the acts\_as\_ferret trunk for setting up a centralized  
index server. When I try to run script/runner  
vendor/plugins/acts\_as\_ferret/script/ferret\_server, I get a ruby error

/opt/csw/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/runner.rb:27:  
undefined local variable or method `vendor' for #<Object:0x8090300> (NameError) from /opt/csw/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in`eval’  
from  
/opt/csw/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/runner.rb:27  
from  
/opt/csw/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in  
`require' from /opt/csw/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in`require’  
from script/runner:3

I’m guessing that eval is not able to run the ferret\_server script. Is  
there something basic that I’m doing wrong here?

Cheers

---

<div class="post-metadata">

**Author:** ![bsubbu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/4bbf92/32.png) [@bsubbu](https://www.ruby-forum.com/u/bsubbu)\
**Post date:** [February 16, 2007, 10:15am UTC](https://www.ruby-forum.com/t/running-the-drb-script/85715/2 "2007-02-16T10:15:08Z")

</div>

On Thu, Feb 15, 2007 at 07:53:43PM +0100, Subbu Balakrishnan wrote:

> ```
> from
> 
> ```
> 
> /opt/csw/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in `eval’  
> from  
> /opt/csw/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/runner.rb:27

I’m not sure but it might be that it won’t work with 1.1.6. At least I  
didn’t test with this version of Rails.

You could try to copy the script to RAILS\_ROOT/lib and just do  
script/runner “require ‘ferret\_server’”  
maybe this will work.

Jens

–  
Jens Krämer  
webit! Gesellschaft für neue Medien mbH  
Schnorrstraße 76 | 01069 Dresden  
Telefon +49 351 46766-0 | Telefax +49 351 46766-66  
removed\_email\_address@domain.invalid | [www.webit.de](http://www.webit.de)

Amtsgericht Dresden | HRB 15422  
GF Sven Haubold, Hagen Malessa
