在我的工作电脑和家用电脑上,我最近使用ruby-install
将Ruby升级到2.3.1。我使用chruby
作为Ruby切换器。
我开始在我的终端上看到这样的警告:
Ignoring bcrypt-3.1.11 because its extensions are not built. Try: gem pristine bcrypt --version 3.1.11
Ignoring bcrypt-3.1.10 because its extensions are not built. Try: gem pristine bcrypt --version 3.1.10
Ignoring binding_of_caller-0.7.2 because its extensions are not built. Try: gem pristine binding_of_caller --version 0.7.2
Ignoring byebug-9.0.5 because its extensions are not built. Try: gem pristine byebug --version 9.0.5
Ignoring byebug-5.0.0 because its extensions are not built. Try: gem pristine byebug --version 5.0.0
Ignoring concurrent-ruby-ext-1.0.2 because its extensions are not built. Try: gem pristine concurrent-ruby-ext --version 1.0.2
Ignoring debug_inspector-0.0.2 because its extensions are not built. Try: gem pristine debug_inspector --version 0.0.2
在我的工作电脑上,清单要长得多,但很容易解决。当我尝试建议的gem pristine GEM
时,它告诉我它找不到宝石,所以我运行gem install GEM
,这解决了它。
在家里,一切都不正常。
我从常识和其他Stack问题中尝试过的事情:
gem pristine GEM
gem pristine --all
gem update
gem update --system
bundle update
bundler
rails
(尽管,这不是Rails特有的问题。)~/.bundle/
XCode
并让它安装一些扩展(它确实需要这样做,但它没有修复任何东西)。brew doctor
并解决所有次要问题,然后是brew update
和brew upgrade
gem install curb
(我无法想象这个宝石与此问题有什么关系,但两个不同的人将其列为修复同一警告的最后一步。)