错误安装rubyracer错误“invalid gem:package is corrupt”

前端之家收集整理的这篇文章主要介绍了错误安装rubyracer错误“invalid gem:package is corrupt”前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当尝试在OSX 10.9上安装the rubyracer时,使用以下命令:
$gem install therubyracer -v '0.12.0'

我得到错误

ERROR:  Error installing therubyracer:
    invalid gem: package is corrupt,exception while verifying: undefined method `path2class' for #<Psych::ClassLoader:0x000001018cf210> (NoMethodError) in /Users/doved/.rvm/gems/ruby-2.0.0-p353/cache/therubyracer-0.12.0.gem

安装了XCode开发工具,我已经尝试删除缓存文件,但我仍然收到错误.

解决方法

删除/Users/doved/.rvm/gems/ruby-2.0.0-p353/cache/therubyracer-0.12.0.gem并再次安装宝石. RubyGems没有正确下载文件,并且系统正确地报告宝石已损坏.
原文链接:https://www.f2er.com/ruby/272113.html

猜你在找的Ruby相关文章