事件机器宝石错误El Capitan上的OpenSSL

时间:2016-05-20 16:23:34

标签: ruby openssl rubygems eventmachine

我正在尝试使用Faye-Websocket gem和EventMachine gem编写一个带websockets的简单ruby应用程序。

我正在开发OS X El Capitan 10.11.4

我使用自制软件安装了OpenSSL /usr/local/Cellar/openssl

并成功将eventmachine安装到我的本地宝石中:

$ KG_CONFIG_PATH="$(brew --prefix openssl)/lib/pkgconfig" sudo gem install  eventmachine

Building native extensions.  This could take a while...
Successfully installed eventmachine-1.2.0.1
1 gem installed

我在我的应用程序中运行了一个成功的bundle install:

$ bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Using addressable 2.4.0
Using unf_ext 0.0.7.2
Using eventmachine 1.2.0.1
Using websocket-extensions 0.1.2
Using http-form_data 1.0.1
Using http_parser.rb 0.6.0
Using json 1.8.3
Using bundler 1.11.2
Using unf 0.1.4
Installing websocket-driver 0.6.4 with native extensions
Using domain_name 
Installing faye-websocket 0.10.4
Using http-cookie 1.0.2
Using http 2.0.1
Bundle complete! 3 Gemfile dependencies, 14 gems now installed.

但是,在尝试运行我的应用程序时,我仍然收到以下错误:

$ bundle exec ruby shield.rb
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: Encryption not available on this event-machine
Abort trap: 6

有关如何解决这个问题的想法吗?

0 个答案:

没有答案