[Rails] An error occurred while installing eventmachine.


Problem

An error occurred while installing eventmachine (1.0.3), and Bundler cannot
continue.
Make sure that `gem install eventmachine -v ‘1.0.3’` succeeds before bundling.

Details

Building native extensions. This could take a while…
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.

/Users/scissor/.rvm/rubies/ruby-2.1.3/bin/ruby extconf.rb
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… yes
checking for sys/queue.h… yes
creating Makefile

make “DESTDIR=” clean

make “DESTDIR=”
compiling binder.cpp
In file included from binder.cpp:20:
./project.h:107:10: fatal error: ‘openssl/ssl.h’ file not found
#include
^
1 error generated.
make: *** [binder.o] Error 1

make failed, exit code 2

Solution

brew link openssl –force




歡迎您留言與分享!(Welcome for comments or sharing!)

Related Post:

Tagged on: