ruby - gem eventmachine fatal error: 'openssl/ssl.h' file not found -
just installed el capitan , can't install gem eventmachine
1.0.7
. openssl
@ 1.0.2a-1
. tried use --with-ssl-dir
seems ignored.
reported github repo well.
any suggestions appreciated. thanks.
$ ls /usr/local/cellar/openssl/1.0.2a-1/include/openssl/ssl.h /usr/local/cellar/openssl/1.0.2a-1/include/openssl/ssl.h $ gem install eventmachine -v '1.0.7' -- --with-ssl-dir=/usr/local/cellar/openssl/1.0.2a-1/include /users/pain/.rbenv/versions/2.1.2/bin/ruby -r ./siteconf20150612-56154-1hsjz2n.rb extconf.rb --with-ssl-dir=/usr/local/cellar/openssl/1.0.2a-1/include checking rb_trap_immediate in ruby.h,rubysig.h... no checking rb_thread_blocking_region()... yes checking ruby/thread.h... yes checking rb_thread_call_without_gvl() in ruby/thread.h... yes checking inotify_init() in sys/inotify.h... no checking __nr_inotify_init in sys/syscall.h... no checking writev() in sys/uio.h... yes checking rb_thread_fd_select()... yes checking rb_fdset_t in ruby/intern.h... yes checking rb_wait_for_single_fd()... yes checking rb_enable_interrupt()... no checking rb_time_new()... yes checking sys/event.h... yes checking sys/queue... yes checking clock_gettime()... no checking gethrtime()... no creating makefile make "destdir=" clean make "destdir=" compiling binder.cpp in file included binder.cpp:20: ./project.h:116:10: fatal error: 'openssl/ssl.h' file not found #include <openssl/ssl.h> ^ 1 error generated. make: *** [binder.o] error 1 make failed, exit code 2
$ gem install eventmachine -- --with-cppflags=-i/usr/local/opt/openssl/include building native extensions with: '--with-cppflags=-i/usr/local/opt/openssl/include' take while... installed eventmachine-1.0.8 1 gem installed
you can set bundler think superficial
bundle config build.eventmachine --with-cppflags=-i/usr/local/opt/openssl/include
Comments
Post a Comment