#215 ✓resolved
Giacomo Graziosi

datamapper can't be installed on ruby 1.9

Reported by Giacomo Graziosi | April 16th, 2008 @ 05:07 PM

This is the proble:

$ ~/apps/ruby1901/bin/gem install datamapper

Building native extensions. This could take a while...

/home/flowolf/apps/ruby1901/lib/ruby/1.9.0/rubygems/ext/builder.rb:48: warning: Insecure world writable dir /home/flowolf/apps in PATH, mode 040777

ERROR: Error installing datamapper:

ERROR: Failed to build gem native extension.

/home/flowolf/apps/ruby1901/bin/ruby extconf.rb install datamapper

creating Makefile

make

gcc -I. -I/home/flowolf/apps/ruby1901/include/ruby-1.9.0/x86_64-linux -I/home/flowolf/apps/ruby1901/include/ruby-1.9.0 -I. -fPIC -g -O2 -o fastthread.o -c fastthread.c

fastthread.c:13:20: error: intern.h: No such file or directory

fastthread.c:349: error: static declaration of ‘rb_mutex_locked_p’ follows non-static declaration

/home/flowolf/apps/ruby1901/include/ruby-1.9.0/ruby/intern.h:565: 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

/home/flowolf/apps/ruby1901/include/ruby-1.9.0/ruby/intern.h:566: error: previous declaration of ‘rb_mutex_try_lock’ was here

fastthread.c:406: error: static declaration of ‘rb_mutex_lock’ follows non-static declaration

/home/flowolf/apps/ruby1901/include/ruby-1.9.0/ruby/intern.h:567: error: previous declaration of ‘rb_mutex_lock’ was here

fastthread.c:463: error: static declaration of ‘rb_mutex_unlock’ follows non-static declaration

/home/flowolf/apps/ruby1901/include/ruby-1.9.0/ruby/intern.h:568: error: previous declaration of ‘rb_mutex_unlock’ was here

fastthread.c:524: error: static declaration of ‘rb_mutex_synchronize’ follows non-static declaration

/home/flowolf/apps/ruby1901/include/ruby-1.9.0/ruby/intern.h:570: error: previous declaration of ‘rb_mutex_synchronize’ was here

fastthread.c: In function ‘wait_condvar’:

fastthread.c:626: warning: passing argument 1 of ‘rb_ensure’ from incompatible pointer type

make: *** [fastthread.o] Error 1

Gem files will remain installed in /home/flowolf/apps/ruby1901/lib/ruby/gems/1.9.0/gems/fastthread-1.0.1 for inspection.

Results logged to /home/flowolf/apps/ruby1901/lib/ruby/gems/1.9.0/gems/fastthread-1.0.1/ext/fastthread/gem_make.out

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages