gem eventmachine fatal error: ‘openssl/ssl.h’ file not found

Just installed El Capitan and can’t install gem eventmachine 1.0.7. openssl is at 1.0.2a-1. Tried to use –with-ssl-dir but it seems ignored. Reported it to their github repo as well. Any suggestions are really 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 for … Read more