
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
-
Dan Kubb (dkubb) April 16th, 2008 @ 05:09 PM
- State changed from new to open
- Milestone cleared.
Here is how we handle it in DM 0.9:
http://github.com/sam/dm-core/tr...
Would someone with SVN commit rights to DM 0.3 mind updating it to do something similar?
-
Sam Smoot May 9th, 2008 @ 11:23 AM
- State changed from open to resolved
Pushed to SVN in r754. FastThread is no longer a DM dependency, though it will be used if installed/available.
Also removed a dup require from 0.9.0 in DOA (it was already required in data_mapper.rb).
-
Roger July 3rd, 2008 @ 01:44 PM
- Tag set to fastthred, ruby1.9
I assume do_mysql can compile in 1.9, too, as well?
-
Piotr Solnica (solnic) August 6th, 2012 @ 01:14 AM
- Milestone order changed from 0 to 0
(from [3c7a2e73d902f7cd11423cf6b7f744f1c2f82415]) Bump addressable dep to ~> 2.3
closes #215
https://github.com/datamapper/dm-core/commit/3c7a2e73d902f7cd11423c...
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »