# Installing Acts\_as\_ferret - 0.4.3 config question

**URL:** <https://www.ruby-forum.com/t/installing-acts-as-ferret-0-4-3-config-question/121771>\
**Category:** Ferret\
**Created:** [November 30, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/installing-acts-as-ferret-0-4-3-config-question/121771 "2007-11-30T19:45:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddancer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecb155/32.png) [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Post date:** [November 30, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/installing-acts-as-ferret-0-4-3-config-question/121771/1 "2007-11-30T19:45:50Z")

</div>

hello,

installing ferret / aaf for the first time

following instructions on aaf trac page

I’m to the point of copying the DRb server start/stop scripts and  
config, where I read …  
“Sorry for the inconvenience, things will get better with 0.4.2”

So, question is, since I’m deploying 0.4.3 - have things got better? Do  
I still need to do this copy step?

Regards

---

<div class="post-metadata">

**Author:** ![ddancer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecb155/32.png) [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Post date:** [November 30, 2007, 7:56pm UTC](https://www.ruby-forum.com/t/installing-acts-as-ferret-0-4-3-config-question/121771/2 "2007-11-30T19:56:08Z")

</div>

Andy K. wrote:

> hello,
> 
> installing ferret / aaf for the first time
> 
> following instructions on aaf trac page
> 
> I’m to the point of copying the DRb server start/stop scripts and  
> config, where I read …  
> “Sorry for the inconvenience, things will get better with 0.4.2”
> 
> So, question is, since I’m deploying 0.4.3 - have things got better? Do  
> I still need to do this copy step?
> 
> Regards

Ah, sorry

found the README and ran aaf\_install

but, it throws an exception…

Do I need to define RAILS\_ROOT somewhere? I’m calling aaf\_install from  
my proejct dir.

/var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active\_support/dependencies.rb:477:in  
`const_missing': uninitialized constant ActsAsFerret::Remote::Config::RAILS_ROOT (NameError) from /var/lib/gems/1.8/gems/acts_as_ferret-0.4.3/lib/ferret_server.rb:17 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in`gem\_original\_require’  
from /usr/lib/ruby/1.8/rubygems/custom\_require.rb:27:in  
`require' from /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in`require’  
from  
/var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active\_support/dependencies.rb:342:in  
`new_constants_in' from /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in`require’  
from  
/var/lib/gems/1.8/gems/acts\_as\_ferret-0.4.3/lib/acts\_as\_ferret.rb:44  
from /usr/lib/ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in`require’  
from /usr/lib/ruby/1.8/rubygems.rb:237:in `activate' from /usr/lib/ruby/1.8/rubygems.rb:236:in`each’  
from /usr/lib/ruby/1.8/rubygems.rb:236:in `activate' from /usr/lib/ruby/1.8/rubygems.rb:65:in`active\_gem\_with\_options’  
from /usr/lib/ruby/1.8/rubygems.rb:58:in `require\_gem’  
from /var/lib/gems/1.8/bin/aaf\_install:17

---

<div class="post-metadata">

**Author:** ![ddancer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecb155/32.png) [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Post date:** [January 22, 2008, 8:09am UTC](https://www.ruby-forum.com/t/installing-acts-as-ferret-0-4-3-config-question/121771/3 "2008-01-22T08:09:13Z")

</div>

Andy K. wrote:

> /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active\_support/dependencies.rb:477:in  
> `const\_missing’: uninitialized constant  
> ActsAsFerret::Remote::Config::RAILS\_ROOT (NameError)

Hi Andy.

I am experiencing the exact same thing.  
Did you ever find a solution to your problem?

---

<div class="post-metadata">

**Author:** ![ddancer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecb155/32.png) [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Post date:** [January 23, 2008, 9:13pm UTC](https://www.ruby-forum.com/t/installing-acts-as-ferret-0-4-3-config-question/121771/4 "2008-01-23T21:13:16Z")

</div>

Torben Koch wrote:

> Andy K. wrote:
> 
> > /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active\_support/dependencies.rb:477:in  
> > `const\_missing’: uninitialized constant  
> > ActsAsFerret::Remote::Config::RAILS\_ROOT (NameError)
> 
> Hi Andy.
> 
> I am experiencing the exact same thing.  
> Did you ever find a solution to your problem?

Hi Torben,

actually I’m having a hard time remembering how this worked out, I did  
get it working.

As best I recall the aaf\_install script never did work. I think I  
looked at the source of the  
“…/gems/acts\_as\_ferret-0.4.3/bin/aaf\_install” - looking at that I saw  
that it really only copies two files - “ferret\_server” into script  
folder and “ferret\_server.yml” into config folder. Which I did  
manually.

Maybe that helps?

---

<div class="post-metadata">

**Author:** ![ddancer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecb155/32.png) [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Post date:** [March 30, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/installing-acts-as-ferret-0-4-3-config-question/121771/5 "2008-03-30T18:29:10Z")

</div>

Had the same issue. Try to move require ‘acts\_as\_ferret’ after  
Rails::Initializer block

eg.

RAILS\_GEM\_VERSION = ‘2.0.2’ unless defined? RAILS\_GEM\_VERSION  
require File.join(File.dirname( **FILE** ), ‘boot’)

Rails::Initializer.run do |config|  
end

require ‘acts\_as\_ferret’
