重新安装rubygems [英] Reinstalling rubygems
问题描述
如何重新安装RubyGems,如中没有要加载的文件 - rubygems(LoadError)?
运行Mac OS X 10.8.2
我试图获得 gem update --system
或 gem install rubygems-update
正常工作。
唯一有效的工作是从源代码中直接下载并覆盖旧版本的RubyGems。
-
只需下载最新的此处 < (在写作时为2.0.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.
Simply download the latest here (was 2.0.3 at time of writing).
Extract the downloaded archive and
cd
into the resulting directory.Run the setup with
ruby setup.rb
. (You may need to usesudo
for this, but try it without first.)
All good!
JP
这篇关于重新安装rubygems的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!