1

我不完全确定它何时发生,但现在尝试在我的 OSX Mountain Lion 机器上运行自制软件会产生一个奇怪的错误:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- checksums (LoadError)

这是在尝试使用以下命令安装 RVM 失败后发现的:

\curl -L https://get.rvm.io | bash -s stable --ruby

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                               Dload  Upload   Total   Spent    Left  Speed
100   184  100   184    0     0    136      0  0:00:01  0:00:01 --:--:--   155
100 13145  100 13145    0     0   6879      0  0:00:01  0:00:01 --:--:--  6879
Please read and follow further instructions.
Press ENTER to continue.
Downloading RVM from wayneeseguin branch stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   124  100   124    0     0    433      0 --:--:-- --:--:-- --:--:--   551
100 3263k  100 3263k    0     0  1245k      0  0:00:02  0:00:02 --:--:-- 1467k

Installing RVM to /Users/mike/.rvm/
    Adding rvm PATH line to /Users/mike/.bashrc /Users/mike/.zshrc.
    Adding rvm loading line to /Users/mike/.bash_profile /Users/mike/.zprofile.

  * WARNING: You have RUBYOPT set in your current environment.
    This may cause rubies to not work as you expect them to as it is not supported
    by all of them If errors show up, please try unsetting RUBYOPT first.


# RVM:  Shell scripts enabling management of multiple ruby environments.
# RTFM: https://rvm.io/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Cheatsheet: http://cheat.errtheblog.com/s/rvm
# Screencast: http://screencasts.org/episodes/how-to-use-rvm

# In case of any issues run 'rvm requirements' or read 'rvm notes'

Installation of RVM in /Users/mike/.rvm/ is almost complete:

  * To start using RVM you need to run `source /Users/mike/.rvm/scripts/rvm`
    in all your open shell windows, in rare cases you need to reopen all shell windows.

# Mike Greiling,
#
#   Thank you for using RVM!
#   I sincerely hope that RVM helps to make your life easier and
#   more enjoyable!!!
#
# ~Wayne


rvm 1.19.5 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p0.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for osx, might require sudo password.
Skipping `brew update` make sure your formulas are up to date.
RVM autolibs is now configured with mode '2' => 'check and stop if missing',
please run `rvm autolibs enable` to let RVM do its job or run and read `rvm autolibs [help]`
or visit https://rvm.io/rvm/autolibs for more information.
Missing required packages: automake, libtool, pkg-config, libyaml, readline, libxml2, libxslt, libksba, openssl, sqlite.
RVM autolibs is now configured with mode '2' => 'check and stop if missing',
please run `rvm autolibs enable` to let RVM do its job or run and read `rvm autolibs [help]`
or visit https://rvm.io/rvm/autolibs for more information.
There were package installation errors, make sure to read the log.
Check Homebrew requirements https://github.com/mxcl/homebrew/wiki/Installation

我不确定是否是因为安装 RVM 失败而导致我的默认 ruby​​ 安装失败,或者 homebrew 本身是否以某种方式损坏,但如果可能的话,我想让 homebrew 和 osx 的本机 ruby​​ 安装再次工作。

它可能归结为终端 PATH 设置或其他东西,但我是新手,不知道从哪里开始。

4

3 回答 3

1

我似乎已经解决了这个问题。问题似乎与自制软件本身有关。

我运行了以下命令来修复它:

$ cd /usr/local
$ git fetch origin
$ git reset --hard origin/master

一旦完成brew update了它应该的工作,我重新运行\curl -L https://get.rvm.io | bash -s stable --ruby以正确安装 rvm。

于 2013-04-15T16:26:45.400 回答
1

您需要阅读输出:

RVM autolibs 现在配置为模式 '2' => 'check and stop if missing',请运行rvm autolibs enable让 RVM 完成它的工作或运行并阅读rvm autolibs [help]

如果您按照rvm 站点安装说明中的说明进行操作,它会起作用:

\curl -#L https://get.rvm.io | bash -s stable --autolibs=3 --ruby
于 2013-04-16T04:16:51.433 回答
0

尝试:

rvm get head && rvm reload

更新您的 rvm 安装

于 2013-04-15T15:53:34.590 回答