Installing mongrel.

S

Stewart

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top