Ignoring Gem Because Its Extensions Are Not Built

Ignoring GEM because its extensions are not built

I came across this exact issue today - getting warnings like this for gems that weren't even installed!

... Well, it turns out the gems were installed - for a different ruby than the one I had set active with chruby (2.2.3 vs 2.3.1).

Switching to all the different rubies and running gem pristine --all on all of them solved the problem.

Ignoring gems because its extensions are not built

I ran the command gem pristine --all to remove all errors

This error occurs when you switch the ruby version

Ignoring bcrypt-3.1.11 because its extensions are not built. Try: gem pristine bcrypt --version 3.1.11

Probably during update you have also installed new XCode, it includes libs required to build extensions. But it will not work until you accept XCode licence, and install new components. XCode will do it for you on first run.

So, first run XCode, accept licence, install missing components (XCode should automatically ask if you like to install them).

It might be required to reinstall ruby. (Described here: https://stackoverflow.com/a/16775469/2074939)

Restart console.

If this is first time you install Ruby and Ruby on Rail on your system I recommend reading this:
https://gorails.com/setup/osx/10.12-sierra



Related Topics



Leave a reply



Submit