我甚至无法通过我的代码的这个阶段:
require "rubygems"
require "open-uri"
require "mechanize"
puts "success"
我一直在custom_require.rb进入这些关键点:
gem_original_require path
并在nokogiri.rb下
begin
RUBY_VERSION =~ /(\d+.\d+)/
require "nokogiri/#{$1}/nokogiri"
rescue LoadError
require 'nokogiri/nokogiri'
end
我的custom_require.rb和nokogiri.rb出了问题,我无法弄清楚是什么。而且我很确定我的$PATH
不正确...这就是我运行rvm get stable
/Users/Yoshi/.bash_profile:2:export PATH=/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/Yoshi/.rvm/bin
/Users/Yoshi/.bash_profile:7:PATH=/usr/local/Cellar/ruby/1.9.3-[374/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/Yoshi/.rvm/bin
所有这些宝石都令人困惑。如果它有助于我运行ruby 2.0.0p353,nokogiri 1.6.2.1