Solutions to common issues in Ruby dev environment series:
- Solution: cannot load such file – webrick (LoadError)
- Solution: gem eventmachine fatal error: ‘openssl/ssl.h’ file not found
- Solution: Unknown ruby interpreter version (do not know how to handle): RUBY_VERSION
As the title says, today’s solution will be related to
Ignoring GEM because its extensions are not built error.
The issue occurs mostly after major MacOS releases. If you are not using a MacOS, please skip to Step 3.
- Ruby environment
Step 1. If you have already installed a ruby version via brew, make sure to uninstall it first.
$ brew uninstall ruby $ brew autoremove
Step 2. Install Apple Command Line Tools.
$ xcode-select --install
Step 3. Reinstall ruby. A preferred approach will be the
rvm (Ruby Version Manager).
$ rvm reinstall $(rvm current)
By following the above steps, the error was gone. If that’s not the case for you though, please let me know. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on telegram.