# Mongrel installed, but "command not found"

**URL:** <https://www.ruby-forum.com/t/mongrel-installed-but-command-not-found/110696>\
**Category:** Deployment\
**Created:** [July 29, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/mongrel-installed-but-command-not-found/110696 "2007-07-29T21:15:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![makenai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@makenai](https://www.ruby-forum.com/u/makenai)\
**Post date:** [July 29, 2007, 9:15pm UTC](https://www.ruby-forum.com/t/mongrel-installed-but-command-not-found/110696/1 "2007-07-29T21:15:27Z")

</div>

Hi,

I just installed mongrel on my server, but can’t use it. I am using  
debian server. I installed mongrel by “gem install mongrel”, and  
everything worked fine, I’ve seen “Successfully installed  
mongrel-1.0.1”. But when I issue command “mongrel\_rails”, there is  
“command not found” message. Also when I issue “gem contents mongrel”, I  
can see “Unable to find gem ‘mongrel’ in default gem paths”. When I do  
“gem list”, I can see mongrel there.

What is going on? What am I doing wrong?

Best regards  
Pawel S.

---

<div class="post-metadata">

**Author:** ![makenai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@makenai](https://www.ruby-forum.com/u/makenai)\
**Post date:** [July 30, 2007, 12:01am UTC](https://www.ruby-forum.com/t/mongrel-installed-but-command-not-found/110696/2 "2007-07-30T00:01:25Z")

</div>

On Jul 29, 2007, at 12:15 PM, Pawel S. wrote:

> “gem list”, I can see mongrel there.
> 
> What is going on? What am I doing wrong?

Sounds like an issue with your path.

Does this work?

/var/lib/gems/1.8/bin/mongrel\_rails

I’ve had this problem on Debian servers in the past and the way to  
get around it is to modify your PATH to include “/var/lib/gems/1.8/  
bin” or create symlinks.

Good luck,  
Robby

–  
Robby R.  
Founder and Executive Director

PLANET ARGON, LLC  
Design, Development, and Hosting with Ruby on Rails

> **[Planet Argon](https://www.planetargon.com/)**
>
> Planet Argon is a Ruby on Rails development agency specializing in maintenance and support for existing Rails apps. Based in Portland, OR, Planet Argon has been a member of the Rails community since 2004.

[http://www.robbyonrails.com/](http://www.robbyonrails.com/)

+1 503 445 2457  
+1 877 55 ARGON [toll free]  
+1 815 642 4068 [fax]

---

<div class="post-metadata">

**Author:** ![makenai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@makenai](https://www.ruby-forum.com/u/makenai)\
**Post date:** [July 30, 2007, 8:50pm UTC](https://www.ruby-forum.com/t/mongrel-installed-but-command-not-found/110696/3 "2007-07-30T20:50:37Z")

</div>

> Does this work?
> 
> /var/lib/gems/1.8/bin/mongrel\_rails
> 
> I’ve had this problem on Debian servers in the past and the way to  
> get around it is to modify your PATH to include “/var/lib/gems/1.8/  
> bin” or create symlinks.

Yes, looks like it is the issue. On my local comp there is also mongrel  
installed, and there is /usr/bin/mongrel\_rails. I am sure I didn’t make  
it myself, so some gem must have done this. Do you know which one could  
it be?

I am also worried about this “Unable to find gem ‘mongrel’ in default  
gem paths”. It is the same with all the gems, not only mongrel.

Best regards  
Pawel S.

---

<div class="post-metadata">

**Author:** ![makenai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/8797f3/32.png) [@makenai](https://www.ruby-forum.com/u/makenai)\
**Post date:** [July 30, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/mongrel-installed-but-command-not-found/110696/4 "2007-07-30T22:18:26Z")

</div>

Ok, solved this. I had gem installed from rubygems debian package.  
Uninstalled it, downloaded ruby executable installer from gems page, run  
it as root. Gems installed. Then I installed some libs (ruby1.8-dev,  
libyaml-ruby, libzlib-ruby and rdoc, as this libraries are needed but  
ruby package does not depend on them on debian). Then installed mongrel  
and rails by my newly installed gems and everything works fine.

Best regards  
Pawel S.
