Solution: Ignoring GEM because its extensions are not built

Nov 09, 2021 · 1 min read · Post a comment

Solutions to common issues in Ruby dev environment series:

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.