Error while installing: "An error occurred while installing raindrops (0.9.0), and Bundler cannot continue"
Created by: moerazem
I get this error when trying to run the bundle command.
Using rack-protection (1.2.0)
Installing raindrops (0.9.0) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for mmap() in sys/mman.h... yes
checking for munmap() in sys/mman.h... yes
checking for mremap() in sys/mman.h... yes
checking for getpagesize() in unistd.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_thread_io_blocking_region()... no
checking for GCC 4+ atomic builtins... yes
creating Makefile
make
compiling linux_inet_diag.c
In file included from linux_inet_diag.c:17:
/usr/local/include/ruby-1.9.1/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete
linux_inet_diag.c:19: error: redefinition of typedef ‘rb_unblock_function_t’
/usr/local/include/ruby-1.9.1/ruby/intern.h:809: note: previous declaration of ‘rb_unblock_function_t’ was here
linux_inet_diag.c:20: error: redefinition of typedef ‘rb_blocking_function_t’
/usr/local/include/ruby-1.9.1/ruby/intern.h:810: note: previous declaration of ‘rb_blocking_function_t’ was here
linux_inet_diag.c:22: error: static declaration of ‘rb_thread_blocking_region’ follows non-static declaration
/usr/local/include/ruby-1.9.1/ruby/intern.h:813: note: previous declaration of ‘rb_thread_blocking_region’ was here
linux_inet_diag.c: In function ‘rb_thread_blocking_region’:
linux_inet_diag.c:28: warning: ‘rb_thread_blocking_region_begin’ is deprecated (declared at /usr/local/include/ruby-1.9.1/ruby/backward/rubysig.h:31)
linux_inet_diag.c:30: warning: ‘rb_thread_blocking_region_end’ is deprecated (declared at /usr/local/include/ruby-1.9.1/ruby/backward/rubysig.h:32)
make: *** [linux_inet_diag.o] Error 1
Gem files will remain installed in /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/raindrops-0.9.0 for inspection.
Results logged to /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/raindrops-0.9.0/ext/raindrops/gem_make.out
An error occurred while installing raindrops (0.9.0), and Bundler cannot continue.
Make sure that `gem install raindrops -v '0.9.0'` succeeds before bundling.