为什么我在运行“gem pristine –all”后不断出现这些错误
我尝试运行gem pristine --all
并且我一直在控制台中获取它。
当我运行gem pristine --all
我得到这个:
Permission denied
….
我甚至试图为每个gem
做gem install
,但仍然得到这个:
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-5.0.0 because its extensions are not built. Try: gem pristine byebug --version 5.0.0 Ignoring debug_inspector-0.0.2 because its extensions are not built. Try: gem pristine debug_inspector --version 0.0.2 Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2 Ignoring gem-wrappers-1.2.7 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.2.7 Ignoring json-1.8.3 because its extensions are not built. Try: gem pristine json --version 1.8.3 Ignoring mysql-2.9.1 because its extensions are not built. Try: gem pristine mysql --version 2.9.1 Ignoring mysql2-0.3.18 because its extensions are not built. Try: gem pristine mysql2 --version 0.3.18 Ignoring nokogiri-1.6.6.2 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.6.2 Ignoring pg-0.18.2 because its extensions are not built. Try: gem pristine pg --version 0.18.2
将您的RVM更新为> 1.26.11
或稳定:
rvm get stable
从这里开始 。
对我来说,它就像安装Bundler一样简单:
gem install bundler
我知道这是一个旧案例,我最近遇到了这样的错误,没有一个解决方案有帮助。 以下是我解决问题的方法。
运行任何’gem’命令时,我收到此错误:
忽略executable-hooks-1.3.2,因为它的扩展没有构建。
在获取此错误之前我所做的是用rvm升级了我的ruby
rvm upgrade 2.0.0 2.4.0
我通过卸载2.4.0解决了这个问题
rvm uninstall 2.4.0
然后重新安装它
rvm install 2.4.0
问题已解决。