# No such file to load -- ferret

**URL:** <https://www.ruby-forum.com/t/no-such-file-to-load-ferret/180637>\
**Category:** Deployment\
**Created:** [December 24, 2009, 3:58pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-ferret/180637 "2009-12-24T15:58:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![craigrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c2a13f/32.png) [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Post date:** [December 24, 2009, 3:58pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-ferret/180637/1 "2009-12-24T15:58:41Z")

</div>

Hi there,

I’m just trying to deploy my very 1st app to my vhost, and i’m getting  
an error

on the phusion passenger page:

no such file to load – ferret

now everything worked fine in development.

DO i need to reinstall the plugin and gem again?

if so - would these  
be in [domain.com/public](http://domain.com/public)? or should it be installed at [domain.com](http://domain.com)?  
ANy advice would be great!

THank you.

---

<div class="post-metadata">

**Author:** ![craigrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c2a13f/32.png) [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Post date:** [December 26, 2009, 8:52am UTC](https://www.ruby-forum.com/t/no-such-file-to-load-ferret/180637/2 "2009-12-26T08:52:15Z")

</div>

Hmmm…

I may have to keep looking, just tried: /usr/bin/ruby1.8 extconf.rb –  
with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib  
–with-mysql-include=/usr/local/mysql/include

and it returns with:

ERROR: Error installing mysql:  
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb --with-mysql-dir=/usr/local/mysql --with-  
mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/  
include  
checking for mysql\_query() in -lmysqlclient… no  
checking for main() in -lm… yes  
checking for mysql\_query() in -lmysqlclient… no  
checking for main() in -lz… no  
checking for mysql\_query() in -lmysqlclient… no  
checking for main() in -lsocket… no  
checking for mysql\_query() in -lmysqlclient… no  
checking for main() in -lnsl… yes  
checking for mysql\_query() in -lmysqlclient… no  
checking for main() in -lmygcc… no  
checking for mysql\_query() in -lmysqlclient… no  
\*\*\* extconf.rb failed \*\*\*  
Could not create Makefile due to some reason, probably lack of  
necessary libraries and/or headers. Check the mkmf.log file for more  
details. You may need configuration options.

Is this a problem with the host, of am I doing something wrong?

Thanks again,

On 24 Dec, 18:27, Gintautas Å imkus [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > checking for mysql\_query() in -lmysqlclient… no
> 
> > > > > > Ah yes… 🙂 correct.
> 
> > > > > > > > ferret (0.11.6)  
> > > > > > > > will\_paginate (2.3.11)  
> > > > > > > > goes
> > > > > > > > 
> > > > > > > > > > just to elaborate on this:  
> > > > > > > > > > {Regexp.escape path}\z/ and  
> > > > > > > > > > false,  
> > > > > > > > > > On 24 Dec, 14:09, RubyonRails\_newbie \<
> > > > > > > > > > 
> > > > > > > > > > > no such file to load – ferret  
> > > > > > > > > > > ANy advice would be great!  
> > > > > > > > > > > removed\_email\_address@domain.invalid
> 
> > > > > > > > removed\_email\_address@domain.invalid\<rubyonrails-talk%2Bunsubscrib removed\_email\_address@domain.invalid\>\<rubyonrails-talk%2Bunsubscrib  
> > > > > > > > Groups  
> > > > > > > > [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).  
> > > > > > > > To post to this group, send email to removed\_email\_address@domain.invalid  
> > > > > > > > You received this message because you are subscribed to the Google G.  
> > > > > > > > “Ruby on Rails: Talk” group.  
> > > > > > > > To post to this group, send email to removed\_email\_address@domain.invalid.  
> > > > > > > > To unsubscribe from this group, send email to  
> > > > > > > > removed\_email\_address@domain.invalid\<rubyonrails-talk%2Bunsubscrib removed\_email\_address@domain.invalid\>  
> > > > > > > > .  
> > > > > > > > For more
> 
> …
> 
> read more Â»

–

You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![craigrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c2a13f/32.png) [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Post date:** [January 19, 2010, 9:15pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-ferret/180637/3 "2010-01-19T21:15:46Z")

</div>

Hi Craig W.,

Seems it be the solution.

> **[How to "gem install mysql" ?](http://shriikant.blogspot.com/2009/08/how-to-gem-install-mysql.html)**
>
> If you trying to install mysql gem, and you are not able to install. ----------------------------------------------------- gem install mysql...

Let me know if any kind of issue in rails deployment. i will help.

Craig W. wrote:

> Hmmm…
> 
> I may have to keep looking, just tried: /usr/bin/ruby1.8 extconf.rb –  
> with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib  
> –with-mysql-include=/usr/local/mysql/include

---

<div class="post-metadata">

**Author:** ![craigrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c2a13f/32.png) [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Post date:** [February 4, 2010, 2:21pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-ferret/180637/4 "2010-02-04T14:21:41Z")

</div>

Craig W. wrote:

> Hi there,
> 
> I’m just trying to deploy my very 1st app to my vhost, and i’m getting  
> an error
> 
> on the phusion passenger page:
> 
> no such file to load – ferret
> 
> now everything worked fine in development.
> 
> DO i need to reinstall the plugin and gem again?
> 
> if so - would these  
> be in [domain.com/public](http://domain.com/public)? or should it be installed at [domain.com](http://domain.com)?  
> ANy advice would be great!
> 
> THank you.

If you finished installing the ferret gem, don’t forget to start the  
ferret server

ruby script/ferret\_server -e production

In development mode, ferret uses a file, in production mode ferret  
automaticly connects to the ferret server.
