# Gem error

**URL:** <https://www.ruby-forum.com/t/gem-error/132584>\
**Category:** Ruby\
**Created:** [March 21, 2008, 5:39pm UTC](https://www.ruby-forum.com/t/gem-error/132584 "2008-03-21T17:39:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eoghan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ac91a4/32.png) [@eoghan](https://www.ruby-forum.com/u/eoghan)\
**Post date:** [March 21, 2008, 5:39pm UTC](https://www.ruby-forum.com/t/gem-error/132584/1 "2008-03-21T17:39:05Z")

</div>

Hi  
Im attempting to install mongrel using gem, i have:  
gem 1.0.1  
ruby 1.8.6  
when i run sudo gem install mongrel  
i get the following message:  
Building native extensions. This could take a while…  
ERROR: Error installing mongrel:  
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb install mongrel  
creating Makefile

make  
sh: make: command not found

Gem files will remain installed in  
/usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1 for inspection.  
Results logged to  
/usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/fastthread/gem\_make.out

I have checked google but not found anything to solve my problem,  
could anyone help me?  
Im using linux (foresight 2)  
Thanks  
Eoghan

---

<div class="post-metadata">

**Author:** ![eoghan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ac91a4/32.png) [@eoghan](https://www.ruby-forum.com/u/eoghan)\
**Post date:** [March 21, 2008, 11:05pm UTC](https://www.ruby-forum.com/t/gem-error/132584/2 "2008-03-21T23:05:08Z")

</div>

On Sat, Mar 22, 2008 at 01:38:03AM +0900, eoghan wrote:

> /usr/bin/ruby extconf.rb install mongrel  
> creating Makefile
> 
> make  
> sh: make: command not found

Looks like you don’t have `make’ on your system (or in your $PATH).  
If that’s the case, install it (dunno anything about foresight Linux,  
so can’t help with that) and try again.

> Gem files will remain installed in  
> /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1 for inspection.  
> Results logged to  
> /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/fastthread/gem\_make.out

Taking a peep in here might tell you more about what went wrong.

> I have checked google but not found anything to solve my problem,  
> could anyone help me?  
> Im using linux (foresight 2)

Dan

---

<div class="post-metadata">

**Author:** ![eoghan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ac91a4/32.png) [@eoghan](https://www.ruby-forum.com/u/eoghan)\
**Post date:** [March 22, 2008, 11:06am UTC](https://www.ruby-forum.com/t/gem-error/132584/3 "2008-03-22T11:06:33Z")

</div>

On Fri, Mar 21, 2008 at 10:03 PM, Daniel B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > /usr/bin/ruby extconf.rb install mongrel  
> > creating Makefile
> > 
> > make  
> > sh: make: command not found
> 
> Looks like you don’t have `make’ on your system (or in your $PATH).  
> If that’s the case, install it (dunno anything about foresight Linux,  
> so can’t help with that) and try again.

DOH! Thanks Dan, problem solved.

Eoghan
