Closed jankeesvw closed 8 years ago
brew install openssl
You can try to reinstall ruby rbenv install 2.0.0
(you should update to latest patch version or 2.2.3)
Note: I don't have a Mac.. yet.
brew install openssl
Warning: openssl-1.0.2d_1 already installed
Sorry, I can't help much since afaik Apple removed the headers of openssl from El Captain. Also this issue is unrelated to state_machines, the bug is in eventmachine(which is another gem).
@jankeesvw After upgrading Mac OS X, you will likely have to reinstall all Rubies, or compiled gems will fail when they re-build on updates. I did a writeup here: http://www.railsbling.com/posts/el-capitan-homebrew-ruby-qt5-java/
@jankeesvw Found the solution on this blog: http://aliswell.com/. It worked for me. It's in Japanese but google is your friend. However, the solution is to refer to the openssl installed with homebrew when compile. Run the following command: $ bundle config build . EventMachine - with - CPPFLAGS = - I $ ( brew - prefix openssl ) / include and then the usual: $ bundle install
For those trying to copy/paste @mikev-mogo's solution (which worked for me), here's the proper spacing:
bundle config build.eventmachine --with-cppflags=-I$(brew --prefix openssl)/include
bundle install
@mikev-mogo @benbalter :+1:
When I'm trying to install this gem with OSX El Capitan I get this error: