重新安装rubygems [英] Reinstalling rubygems

查看:156
本文介绍了重新安装rubygems的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何重新安装RubyGems,如中没有要加载的文件 - rubygems(LoadError)



运行Mac OS X 10.8.2

解决方案<

我试图获得 gem update --system gem install ruby​​gems-update 正常工作。



唯一有效的工作是从源代码中直接下载并覆盖旧版本的RubyGems。


  1. 只需下载最新的此处 < (在写作时为2.0.3)。

  2. 解压下载的档案, cd c $ c>放到生成的目录中。
  3. 使用 ruby​​ setup.rb 运行安装程序。 (您可能需要使用 sudo 来做这件事,但是不要先尝试它。)


一切都好!

JP


How do you reinstall RubyGems as mentioned in no such file to load -- rubygems (LoadError)?

Running Mac OS X 10.8.2

解决方案

Download it right from the source.

I had massive trouble trying to get gem update --system or gem install rubygems-update working properly.

The only thing that worked was downloading right from the source and just overwriting your old version of RubyGems.

  1. Simply download the latest here (was 2.0.3 at time of writing).

  2. Extract the downloaded archive and cd into the resulting directory.

  3. Run the setup with ruby setup.rb. (You may need to use sudo for this, but try it without first.)

All good!

JP

这篇关于重新安装rubygems的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆