With gem install
$ gem install eventmachine -v '1.0.7' --with-cppflags=-I/usr/local/opt/openssl/include
With bundler:
- Make sure you have bundle config file
~/.bundle/config
- Add options when building gem
$ bundle config build.eventmachine --with-cppflags=-I/usr/local/opt/openssl/include