# Mongrel - Missing required gems - but THEY ARE THERE!

**URL:** <https://www.ruby-forum.com/t/mongrel-missing-required-gems-but-they-are-there/178628>\
**Category:** Deployment\
**Created:** [November 8, 2009, 9:01am UTC](https://www.ruby-forum.com/t/mongrel-missing-required-gems-but-they-are-there/178628 "2009-11-08T09:01:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bzouchir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b5ac83/32.png) [@bzouchir](https://www.ruby-forum.com/u/bzouchir)\
**Post date:** [November 8, 2009, 9:01am UTC](https://www.ruby-forum.com/t/mongrel-missing-required-gems-but-they-are-there/178628/1 "2009-11-08T09:01:28Z")

</div>

Hi guys,

the strangest thing is all the below was not happening before this  
latest deployment, attempting to use Capistrano, didn’t work so manually  
deploying.

* * *

RUBYGEMS VERSION: 1.3.1  
RUBY VERSION: 1.8.6  
Rails 2.3.2

* * *

Now I am using formtastic gem for my forms.  
in my environment.rb I have:  
config.gem ‘justinfrench-formtastic’, :lib =\> ‘formtastic’, :source =\>  
‘[http://gems.github.com](http://gems.github.com)’

works fine locally of course, and funny it worked the first deployment  
on the same host. (Joyent shared accelerator)

Now when i deploy and restart mongrel, here’s what I get in a loop:

* * *

\*\* Starting Rails with production environment…  
Missing these required gems:  
justinfrench-formtastic

You’re running:  
ruby 1.8.6.368 at /usr/local/bin/ruby18  
rubygems 1.3.1 at /.gem/ruby/1.8, /usr/local/lib/ruby/gems/1.8

Run `rake gems:install` to install the missing gems.

* * *

Now when I check my gems  
rake gems  
it prints

* * *

- [I] justinfrench-formtastic

I = Installed  
F = Frozen  
R = Framework (loaded before rails starts)

* * *

so the gems is there right!?  
I mean it was installed before the very first deployment.  
and now if i run rake gems:install  
nothing happens!  
rake gems:install --trace  
\*\* Invoke gems:install (first\_time)  
\*\* Invoke gems:base (first\_time)  
\*\* Execute gems:base  
\*\* Invoke environment (first\_time)  
\*\* Execute environment  
\*\* Execute gems:install

I can also see the gem listed in the “gem list”  
\*\*\* LOCAL GEMS \*\*\*  
…  
justinfrench-formtastic (0.2.4)  
…

So not sure what is happening :S

Why can’t mongrel find the gem if it is installed an was working fine  
before!  
Where should i even start looking! :S

Driving me nuts for days now! please help!!  
thanks

---

<div class="post-metadata">

**Author:** ![bzouchir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b5ac83/32.png) [@bzouchir](https://www.ruby-forum.com/u/bzouchir)\
**Post date:** [March 4, 2010, 3:05am UTC](https://www.ruby-forum.com/t/mongrel-missing-required-gems-but-they-are-there/178628/2 "2010-03-04T03:05:32Z")

</div>

probably a path issue.

try re-installing, or updating the $Path

Bac

---

<div class="post-metadata">

**Author:** ![bzouchir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b5ac83/32.png) [@bzouchir](https://www.ruby-forum.com/u/bzouchir)\
**Post date:** [March 4, 2010, 3:05am UTC](https://www.ruby-forum.com/t/mongrel-missing-required-gems-but-they-are-there/178628/3 "2010-03-04T03:05:37Z")

</div>

probably a path issue.

try re-installing, or updating the $Path
