刚刚安装El Capitan,无法安装gemeventmachine1.0.7openssl位于1.0.2a-1。试图将--与ssl目录一起使用,但似乎被忽略
也向他们的github回购报告了这一情况
非常感谢您的建议。谢谢
$ls/usr/local/cillar/openssl/1.0.2a-1/include/openssl/ssl.h
/usr/local/ceral/openssl/1.0.2a-1/include/openssl/ssl.h
$gem install eventmachine-v'1.0.7'--with ssl dir=/usr/local/ceral/openssl/1.0.2a-1/include
/Users/pain/.rbenv/versions/2.1.2/bin/ruby-r./siteconf20150612-56154-1hsjz2n.rb extconf.rb——带ssl dir=/usr/local/ceral/openssl/1.0.2a-1/include
正在检查ruby.h、rubysig.h中的rb_陷阱_立即数。。。不
正在检查rb\u线程\u阻塞\u区域()。。。对
正在检查ruby/thread.h。。。对
正在检查ruby/thread.h中是否有rb\u线程调用\u而没有\u gvl()。。。对
正在检查sys/inotify.h中的inotify_init()。。。不
正在检查sys/syscall.h中的\uu NR\u inotify\u init。。。不
正在检查sys/uio.h中的writev()。。。对
正在检查rb\U线程\U fd\U select()。。。对
正在检查ruby/intern.h中的rb_fdset_t。。。对
正在检查rb_wait_for_single_fd()。。。对
正在检查rb_启用_中断()。。。不
正在检查rb_time_new()。。。对
正在检查sys/event.h。。。对
正在检查系统/队列。。。对
正在检查时钟\u gettime()。。。不
正在检查gethrtime()。。。不
创建Makefile
使“DESTDIR=”干净
使“DESTDIR=”
编译binder.cpp
在binder.cpp:20中包含的文件中:
./project.h:116:10:致命错误:“未找到openssl/ssl.h”文件
#包括<;openssl/ssl.h>;
^
生成1个错误。
make:**[binder.o]错误1
make失败,退出代码2
$gem安装eventmachine--with cppflags=-I/usr/local/opt/openssl/include
构建本机扩展时使用:'--with cppflags=-I/usr/local/opt/openssl/include'
这可能需要一段时间。。。
已成功安装eventmachine-1.0.8
已安装1个gem
您也可以像这样设置bundler,但我认为这是肤浅的
bundle config build.eventmachine——带有cppfaglass=-I/usr/local/opt/openssl/include