# Installing mongrel

**URL:** <https://www.ruby-forum.com/t/installing-mongrel/160128>\
**Category:** Ruby\
**Created:** [February 12, 2009, 12:10am UTC](https://www.ruby-forum.com/t/installing-mongrel/160128 "2009-02-12T00:10:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@Stewart](https://www.ruby-forum.com/u/Stewart)\
**Post date:** [February 12, 2009, 12:10am UTC](https://www.ruby-forum.com/t/installing-mongrel/160128/1 "2009-02-12T00:10:01Z")

</div>

Hey I am having some trouble install the mongrel gem. I am using ruby  
1.9.1  
Here is the stack trace i get when i try the install. Any ideas?

Snowflake:/usr/local/src/rubygems-1.3.1 stewart$ sudo gem install  
mongrel  
Building native extensions. This could take a while…  
ERROR: Error installing mongrel:  
ERROR: Failed to build gem native extension.

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

make  
gcc -I. -I/usr/local/include/ruby-1.9.1/i386-darwin8.11.1 -I/usr/local/  
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -  
D\_XOPEN\_SOURCE -D\_DARWIN\_C\_SOURCE -fno-common -O2 -g -Wall -Wno-  
parentheses -fno-common -pipe -fno-common -o fastthread.o -c  
fastthread.c  
fastthread.c:13:20: error: intern.h: No such file or directory  
In file included from fastthread.c:14:  
/usr/local/include/ruby-1.9.1/ruby/backward/rubysig.h:14:2: warning:  
#warning rubysig.h is obsolete  
fastthread.c:349: error: static declaration of ‘rb\_mutex\_locked\_p’  
follows non-static declaration  
/usr/local/include/ruby-1.9.1/ruby/intern.h:707: error: previous  
declaration of ‘rb\_mutex\_locked\_p’ was here  
fastthread.c:366: error: static declaration of ‘rb\_mutex\_try\_lock’  
follows non-static declaration  
/usr/local/include/ruby-1.9.1/ruby/intern.h:708: error: previous  
declaration of ‘rb\_mutex\_try\_lock’ was here  
fastthread.c: In function ‘lock\_mutex’:  
fastthread.c:392: error: ‘rb\_thread\_critical’ undeclared (first use in  
this function)  
fastthread.c:392: error: (Each undeclared identifier is reported only  
once  
fastthread.c:392: error: for each function it appears in.)  
fastthread.c: At top level:  
fastthread.c:406: error: static declaration of ‘rb\_mutex\_lock’ follows  
non-static declaration  
/usr/local/include/ruby-1.9.1/ruby/intern.h:709: error: previous  
declaration of ‘rb\_mutex\_lock’ was here  
fastthread.c: In function ‘set\_critical’:  
fastthread.c:438: error: ‘rb\_thread\_critical’ undeclared (first use in  
this function)  
fastthread.c: In function ‘unlock\_mutex’:  
fastthread.c:447: error: ‘rb\_thread\_critical’ undeclared (first use in  
this function)  
fastthread.c: At top level:  
fastthread.c:463: error: static declaration of ‘rb\_mutex\_unlock’  
follows non-static declaration  
/usr/local/include/ruby-1.9.1/ruby/intern.h:710: error: previous  
declaration of ‘rb\_mutex\_unlock’ was here  
fastthread.c: In function ‘rb\_mutex\_exclusive\_unlock’:  
fastthread.c:499: error: ‘rb\_thread\_critical’ undeclared (first use in  
this function)  
fastthread.c: At top level:  
fastthread.c:524: error: conflicting types for ‘rb\_mutex\_synchronize’  
/usr/local/include/ruby-1.9.1/ruby/intern.h:712: error: previous  
declaration of ‘rb\_mutex\_synchronize’ was here  
fastthread.c: In function ‘wait\_condvar’:  
fastthread.c:620: error: ‘rb\_thread\_critical’ undeclared (first use in  
this function)  
fastthread.c:626: warning: passing argument 1 of ‘rb\_ensure’ from  
incompatible pointer type  
fastthread.c: In function ‘rb\_condvar\_broadcast’:  
fastthread.c:684: error: ‘rb\_thread\_critical’ undeclared (first use in  
this function)  
fastthread.c: In function ‘signal\_condvar’:  
fastthread.c:703: error: ‘rb\_thread\_critical’ undeclared (first use in  
this function)  
fastthread.c: In function ‘rb\_queue\_marshal\_load’:  
fastthread.c:824: error: ‘struct RArray’ has no member named ‘len’  
fastthread.c:828: error: ‘struct RArray’ has no member named ‘ptr’  
fastthread.c:828: error: ‘struct RArray’ has no member named ‘len’  
fastthread.c: In function ‘Init\_fastthread’:  
fastthread.c:1182: error: ‘rb\_thread\_critical’ undeclared (first use  
in this function)  
make: \*\*\* [fastthread.o] Error 1

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

---

<div class="post-metadata">

**Author:** ![Stewart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@Stewart](https://www.ruby-forum.com/u/Stewart)\
**Post date:** [February 12, 2009, 10:04am UTC](https://www.ruby-forum.com/t/installing-mongrel/160128/2 "2009-02-12T10:04:27Z")

</div>

On 12 févr. 09, at 00:03, Stewart wrote:

> Hey I am having some trouble install the mongrel gem. I am using ruby  
> 1.9.1

[http://www.ruby-forum.com/topic/132022](http://www.ruby-forum.com/topic/132022)
