sdsykes / slim_scrooge

SlimScrooge heavily optimises your database interactions
313 stars 25 forks source link

unable to install gem under ruby 1.9 #5

Closed gravis closed 14 years ago

gravis commented 14 years ago

Hi,

I have a compile issue while installing slim_scrooge gem 1.0.4 under ruby 1.9.1 :

/opt/local/bin/ruby1.9 extconf.rb
creating Makefile
checking for rb_trap_immediate in ruby.h,rubysig.h... no

make
/usr/bin/gcc-4.2 -I. -I/opt/local/include/ruby1.9-1.9.1/i386-darwin10 -I/opt/local/include/ruby1.9-1.9.1/ruby/backward -I/opt/local/include/ruby1.9-1.9.1 -I. -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -O2 -arch x86_64 -O2 -g -Wall -Wno-parentheses  -fno-common -pipe -fno-common  -o callsite_hash.o -c callsite_hash.c
callsite_hash.c:4:18: error: node.h: No such file or directory
callsite_hash.c:5:17: error: env.h: No such file or directory
callsite_hash.c: In function ‘rb_f_callsite’:
callsite_hash.c:20: error: ‘ruby_frame’ undeclared (first use in this function)
callsite_hash.c:20: error: (Each undeclared identifier is reported only once
callsite_hash.c:20: error: for each function it appears in.)
callsite_hash.c:21: error: ‘NODE’ undeclared (first use in this function)
callsite_hash.c:21: error: ‘n’ undeclared (first use in this function)
callsite_hash.c:25: error: dereferencing pointer to incomplete type
callsite_hash.c:26: error: dereferencing pointer to incomplete type
callsite_hash.c:29: warning: implicit declaration of function ‘ruby_set_current_source’
callsite_hash.c:30: error: dereferencing pointer to incomplete type
callsite_hash.c:31: error: dereferencing pointer to incomplete type
callsite_hash.c:43: error: dereferencing pointer to incomplete type
callsite_hash.c:50: error: dereferencing pointer to incomplete type
callsite_hash.c:50: error: dereferencing pointer to incomplete type
callsite_hash.c:51: error: dereferencing pointer to incomplete type
callsite_hash.c:51: error: dereferencing pointer to incomplete type
callsite_hash.c:52: error: dereferencing pointer to incomplete type
callsite_hash.c:53: error: dereferencing pointer to incomplete type
callsite_hash.c:53: error: dereferencing pointer to incomplete type
callsite_hash.c:55: warning: implicit declaration of function ‘nd_line’
callsite_hash.c:55: error: dereferencing pointer to incomplete type
make: *** [callsite_hash.o] Error 1

The trace above occurs on snow leopard. Thanks

sdsykes commented 14 years ago

Please try with version 1.0.5 and let me know if it works.

gravis commented 14 years ago
Building native extensions.  This could take a while...
Successfully installed slim_scrooge-1.0.5
1 gem installed
Installing RDoc documentation for slim_scrooge-1.0.5...

Sweat ! Thank you :)

sdsykes commented 14 years ago

Good, it installs, that's a start :)