Ignoring extensions

I’m on OS X Yosemite, trying to update RoR and am getting some odd messages. Google has failed to turn up anything specific. When I run rails -v to check which version is running, I get this return

$ rails -v
Ignoring json-1.8.3 because its extensions are not built.  Try: gem pristine json --version 1.8.3
Ignoring nokogiri-1.6.5 because its extensions are not built.  Try: gem pristine nokogiri --version 1.6.5
Ignoring nokogiri-1.6.6.2 because its extensions are not built.  Try: gem pristine nokogiri --version 1.6.6.2
Rails 4.2.1

so, running gem pristine… fails in all kinds of ways. but I can run gem install json

$ gem install json
Fetching: json-1.8.3.gem (100%)
Building native extensions.  This could take a while...
Successfully installed json-1.8.3
Parsing documentation for json-1.8.3
Installing ri documentation for json-1.8.3
Done installing documentation for json after 2 seconds
1 gem installed

but when I run rails -v again, I get the same response as before. what gives? is it anything to worry about?

Are you running rvm or rbenv? If so, make sure you’re in the ruby/gemset as your rails app.

You could try gem pristine --all to get all gems that need a kick in the butt.

1 Like

you know I bet that’s it. I was switching over to rbenv from rvm. I need to remove rvm. duh… thanks.

Thanks @ruprict, that did indeed solve the issue

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.