警告:运行`gem pristine --all`重新生成已安装的gemspecs [英] Warning: Running `gem pristine --all` to regenerate your installed gemspecs
问题描述
我一生无法摆脱这个错误-尝试了一天都无济于事。 gem pristine --all
没有执行任何操作,也没有删除并重新安装捆绑软件。其他人遇到这个,知道该怎么办吗?
Cannot for the life of me get rid of this error - been trying for a day to no avail. gem pristine --all
did nothing, and neither did deleting and reinstalling bundle. Anyone else come across this and know what to do? I would be externally grateful for the answer!
完整的错误在这里:
警告:运行
gem pristine --all
来重新生成已安装的gem规范(如果使用bundle --path,则删除然后重新安装您的软件包)将提高的启动性能。春天。
Warning: Running
gem pristine --all
to regenerate your installed gem specs(and deleting then reinstalling your bundle if you use bundle --path) will improve the startup performance of Spring.
每次我运行Rails或Rails控制台时都会发生这种情况。
and this happens every time I run Rails, or Rails console.
推荐答案
我实际上必须删除rvm捆绑包中的 gems
目录缓存目录。对我来说是
I actually had to delete the gems
directory in my rvm bundle cache directory. For me that was:
rm -rf ~/.rvm/gems/ruby-1.9.3-p392@< my-gemset- name-here> / bundler / gems
。
之后,我重做以下内容:
After that I redid the following:
宝石纯正--all
捆绑安装
捆绑执行spring binstub --all
现在可以正常使用了。
这篇关于警告:运行`gem pristine --all`重新生成已安装的gemspecs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!