Software⏱️ 2 min read📅 2026-05-31

How to Fix: gem eventmachine fatal error: 'openssl/ssl.h' file not found

Gem eventmachine installation issue on El Capitan.

Quick Answer: Try installing the latest version of OpenSSL using Homebrew or by manually downloading and installing it, then try installing eventmachine again with the --with-ssl-dir option.

To resolve the issue of the "gem eventmachine fatal error: 'openssl/ssl.h' file not found" on El Capitan, follow these steps:

🔧 Proven Troubleshooting Steps

Method 1: Update OpenSSL

  1. Step 1: Open the Terminal and run the following command to update OpenSSL: $ sudo gem install openssl -v '1.0.2t'

Method 2: Install Eventmachine with SSL Support

  1. Step 1: Open the Terminal and run the following command to install eventmachine with SSL support: $ sudo gem install eventmachine -v '1.0.7' -- --with-ssl-dir=/usr/local/Cellar/openssl/1.0.2t/include/openssl

🎯 Final Words

By following these steps, you should be able to resolve the "gem eventmachine fatal error: 'openssl/ssl.h' file not found" issue on El Capitan.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions