# Can' t install

**URL:** <https://www.ruby-forum.com/t/can-t-install/66708>\
**Category:** Ferret\
**Created:** [August 28, 2006, 3:54pm UTC](https://www.ruby-forum.com/t/can-t-install/66708 "2006-08-28T15:54:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dave](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://www.ruby-forum.com/u/dave)\
**Post date:** [August 28, 2006, 3:54pm UTC](https://www.ruby-forum.com/t/can-t-install/66708/1 "2006-08-28T15:54:42Z")

</div>

Hi,

I want to install the Acts\_as\_ferret plugin so I tried “gem install  
ferret” and I get the following error:

C:\InstantRails\rails\_apps\eatnewcastle\>gem install ferret  
Attempting local installation of ‘ferret’  
Local gem file not found: ferret\*.gem  
Attempting remote installation of ‘ferret’  
Building native extensions. This could take a while…  
ERROR: While executing gem … (Errno::ENOENT)  
No such file or directory - nmake

Any ideas?

---

<div class="post-metadata">

**Author:** ![dave](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://www.ruby-forum.com/u/dave)\
**Post date:** [August 28, 2006, 5:05pm UTC](https://www.ruby-forum.com/t/can-t-install/66708/2 "2006-08-28T17:05:09Z")

</div>

Hi Dave,

first of all: With gem install ferret you are installing ferret, the  
search  
engine library of Dave Balmain. acts\_as\_ferret integrates this lib  
nicely  
into rails applications. You install plugins by utilizing the ruby  
script/plugin from withing your rails root. Check the acts\_as\_ferret  
trac  
for details.

There are projects trac for ferret as well as for acts\_as\_ferret.  
Doublecheck that you read the installation instructions on both of them.

The base for acts\_as\_ferret is ferret the library. Unfortunatly you are  
trying to build the gem (for ferret the library) on windows. The latest  
and  
greatest ferret (0.10.1) isn’t building without some heavy work that  
seems  
to be not suitable for a beginner. I’m myself didn’t further try to  
build it  
on windows. Dave Balmain will probably make a win32 gem of ferret in the  
next few days that you won’t need to compile for yourself. The error you  
are  
reading complains about nmake not on your path which you would need for  
building ferret. But you’d better wait for the win32 gem because nmake  
alone  
won’t help you anyways the bindings code isn’t yet optimized for  
building on  
windows.

So what should you do right now? You might install a gem of ferret below  
version 0.10.0. The latest on this branch is 0.9.6 and then you might  
install an acts\_as\_ferret plugin that is working with that branch of  
ferret.  
For further details check out the acts\_as\_ferret trac.

That said even with the 0.9.6 gem you’ll be on the ‘slow’ pure ruby  
version  
of ferret while you are on windows. If you’ve got some time your best  
option  
might wait for the win32 gem of the ferret 0.10 branch.

Does this make sense to you? Don’t hesitate to ask!

Cheers,  
Jan

---

<div class="post-metadata">

**Author:** ![dave](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://www.ruby-forum.com/u/dave)\
**Post date:** [August 29, 2006, 8:40am UTC](https://www.ruby-forum.com/t/can-t-install/66708/3 "2006-08-29T08:40:21Z")

</div>

Hi!

On Tue, Aug 29, 2006 at 07:03:41AM +0200, Raj S. wrote:

> Hi Jan,
> 
> Thanks for the detailed explanation. I myself tried to install ferret on  
> windows. After going through a lot of hoops I gave up. I hit the dead  
> end after a lot of work.

seems to be easier to switch your working env to Linux or OS/X than  
getting Ferret to build on Windows 😉

> keeping it in memory.  
> aaf does store the index in the filesystem. The default path for doing  
> so is RAILS\_ROOT/index//class\_name. So if your class is  
> named Article and you’re in development mode, the index will be stored  
> in RAILS\_ROOT/index/development/article/.

If you like, you can specify another index directory with the index\_dir  
option:

class Article  
acts\_as\_ferret :index\_dir =\> “#{RAILS\_ROOT}/shared/index/article”  
[…]  
end

Jens

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

---

<div class="post-metadata">

**Author:** ![dave](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://www.ruby-forum.com/u/dave)\
**Post date:** [August 29, 2006, 7:03am UTC](https://www.ruby-forum.com/t/can-t-install/66708/4 "2006-08-29T07:03:41Z")

</div>

Hi Jan,

Thanks for the detailed explanation. I myself tried to install ferret on  
windows. After going through a lot of hoops I gave up. I hit the dead  
end after a lot of work.

Anyway I spoke to my hosting provider about using ferret installed on  
their server and they allowed me to work with it. That was nice given  
that I would be doing sort of development work there.

I used aaf and everything works like a charm.

Since the only thing I did was to add a line stating ‘acts\_as\_ferret’, I  
believe the indexing is being done on the memory. In order to get the  
indexing on the hard drive I need to do something like

index = Index::Index.new(:path =\> ‘/path/to/index’)

When I’m using aaf where do I specify this path. How do I tell aaf to  
keep all the indexed information at a particular path rather than  
keeping it in memory.

thanks.  
Raj
