由于Float#roundRuby 1.8.6中的一个错误,我被迫升级到1.9.3,而男孩则非常糟糕.安装后,irb无法正常工作,抱怨缺乏psych.所以我尝试安装gem,但它很生气,libyaml不存在,所以我安装了.不确定如果他们如此重要,他们为什么不被包括在内.
现在当我使用require 'Location.rb'(必须指定我实际上想要查看当前文件夹...使用$LOAD_PATH)后,我收到此错误:
LoadError: cannot load such file -- crack/xml
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/ap-0.1.1/lib/ap.rb:2:in `<top (required)>'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from /Users/tyre77/Dropbox/Aurora/GMap.rb:4:in `<top (required)>'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from (irb):3
from /usr/local/bin/irb:12:in `<main>'
Run Code Online (Sandbox Code Playgroud)
这是什么意思?另外,当我执行时ruby -v,它将我的版本列为1.9.3p0,但这在1.9.1中是不是很有用?我想要的只是我的回归和工作!
事实证明,Ruby正在寻找一种名为'crack'的XML解析器.我不知道为什么它引用了2个版本的Ruby或为什么这些依赖项不包含在Ruby构建中(因为如果没有它们,irb将无法工作)但是为了修复我安装了破解的gem.sudo gem install crack