Skip to content

Instantly share code, notes, and snippets.

@rhenium
Created April 15, 2014 09:50
Show Gist options
  • Save rhenium/10718767 to your computer and use it in GitHub Desktop.
Save rhenium/10718767 to your computer and use it in GitHub Desktop.
SmartOS で EventMachine gem の native extensions がコンパイルできないたすけて
[root@gitlab /home/git/gitlab]# gem install eventmachine
Fetching: eventmachine-1.0.3.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for main() in -lssl... yes
checking for main() in -lcrypto... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... no
checking for rb_time_new()... yes
checking for sys/event.h... no
checking for main() in -lnsl... yes
checking for main() in -lsocket... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling binder.cpp
In file included from /usr/local/include/ruby-2.1.0/ruby/defines.h:68:0,
from /usr/local/include/ruby-2.1.0/ruby/ruby.h:29,
from /usr/local/include/ruby-2.1.0/ruby.h:33,
from em.h:24,
from project.h:150,
from binder.cpp:20:
/usr/local/include/ruby-2.1.0/ruby/missing.h:215:17: error: expected unqualified-id before '__extension__'
/usr/local/include/ruby-2.1.0/ruby/missing.h:215:17: error: expected unqualified-id before ')' token
Makefile:216: recipe for target 'binder.o' failed
make: *** [binder.o] Error 1
make failed, exit code 2
Gem files will remain installed in /usr/local/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.3 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.1.0/extensions/x86_64-solaris-2.11/2.1.0/eventmachine-1.0.3/gem_make.out
@face
Copy link

face commented Dec 2, 2014

gem install eventmachine -- --with-cppflags="-DHAVE_SIGNBIT"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment