2013-07-24 27 views
0

当试图运行引入nokogiri错误尝试使用MINITEST-Rails的水豚

rake minitest:features 
在我的轨道

首次3 App我OSX 10.8.4机器上我得到一个错误引入nokogiri

/Users/willbarker/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': dlopen(/Users/willbarker/.rvm/gems/ruby-2.0.0-p195/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.bundle, 9): Library not loaded: 

/Users/willbarker/.bundler/tmp/60826/gems/nokogiri-1.6.0/ports/i686-apple-darwin11/libxml2/2.8.0/lib/libxml2.2.dylib (LoadError) 

    Referenced from: /Users/willbarker/.rvm/gems/ruby-2.0.0-p195/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.bundle 

    Reason: Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib provides version 10.0.0 

有没有办法解决这个问题?它是创业板还是我的基础系统(这似乎找到一种方法,在引入nokogiri faily经常跳闸)

更新问题? - 锁定文件

GEM 
    remote: https://rubygems.org/ 
    specs: 
    actionmailer (3.2.13) 
     actionpack (= 3.2.13) 
     mail (~> 2.5.3) 
    actionpack (3.2.13) 
     activemodel (= 3.2.13) 
     activesupport (= 3.2.13) 
     builder (~> 3.0.0) 
     erubis (~> 2.7.0) 
     journey (~> 1.0.4) 
     rack (~> 1.4.5) 
     rack-cache (~> 1.2) 
     rack-test (~> 0.6.1) 
     sprockets (~> 2.2.1) 
    active_admin_editor (1.1.0) 
     activeadmin (>= 0.4.0) 
     ejs 
     rails (>= 3.0.0) 
    activeadmin (0.6.0) 
     arbre (>= 1.0.1) 
     bourbon (>= 1.0.0) 
     devise (>= 1.1.2) 
     fastercsv 
     formtastic (>= 2.0.0) 
     inherited_resources (>= 1.3.1) 
     jquery-rails (>= 1.0.0) 
     kaminari (>= 0.13.0) 
     meta_search (>= 0.9.2) 
     rails (>= 3.0.0) 
     sass (>= 3.1.0) 
    activemodel (3.2.13) 
     activesupport (= 3.2.13) 
     builder (~> 3.0.0) 
    activerecord (3.2.13) 
     activemodel (= 3.2.13) 
     activesupport (= 3.2.13) 
     arel (~> 3.0.2) 
     tzinfo (~> 0.3.29) 
    activeresource (3.2.13) 
     activemodel (= 3.2.13) 
     activesupport (= 3.2.13) 
    activesupport (3.2.13) 
     i18n (= 0.6.1) 
     multi_json (~> 1.0) 
    arbre (1.0.1) 
     activesupport (>= 3.0.0) 
    arel (3.0.2) 
    bcrypt-ruby (3.1.1) 
    better_errors (0.9.0) 
     coderay (>= 1.0.0) 
     erubis (>= 2.6.6) 
    binding_of_caller (0.7.2) 
     debug_inspector (>= 0.0.1) 
    bourbon (3.1.8) 
     sass (>= 3.2.0) 
     thor 
    builder (3.0.4) 
    callsite (0.0.11) 
    capybara (2.1.0) 
     mime-types (>= 1.16) 
     nokogiri (>= 1.3.3) 
     rack (>= 1.0.0) 
     rack-test (>= 0.5.4) 
     xpath (~> 2.0) 
    chunky_png (1.2.8) 
    climate_control (0.0.3) 
     activesupport (>= 3.0) 
    cocaine (0.5.1) 
     climate_control (>= 0.0.3, < 1.0) 
    coderay (1.0.9) 
    coffee-rails (3.2.2) 
     coffee-script (>= 2.2.0) 
     railties (~> 3.2.0) 
    coffee-script (2.2.0) 
     coffee-script-source 
     execjs 
    coffee-script-source (1.6.3) 
    compass (0.12.2) 
     chunky_png (~> 1.2) 
     fssm (>= 0.2.7) 
     sass (~> 3.1) 
    compass-rails (1.0.3) 
     compass (>= 0.12.2, < 0.14) 
    daemons (1.1.9) 
    debug_inspector (0.0.2) 
    devise (3.0.0) 
     bcrypt-ruby (~> 3.0) 
     orm_adapter (~> 0.1) 
     railties (>= 3.2.6, < 5) 
     warden (~> 1.2.3) 
    ejs (1.1.1) 
    erubis (2.7.0) 
    eventmachine (1.0.3) 
    execjs (1.4.0) 
     multi_json (~> 1.0) 
    fastercsv (1.5.5) 
    formtastic (2.2.1) 
     actionpack (>= 3.0) 
    fssm (0.2.10) 
    has_scope (0.5.1) 
    hashie (1.2.0) 
    high_voltage (1.2.4) 
    hike (1.2.3) 
    httparty (0.11.0) 
     multi_json (~> 1.0) 
     multi_xml (>= 0.5.2) 
    i18n (0.6.1) 
    inherited_resources (1.4.0) 
     has_scope (~> 0.5.0) 
     responders (~> 0.9) 
    journey (1.0.4) 
    jquery-rails (2.3.0) 
     railties (>= 3.0, < 5.0) 
     thor (>= 0.14, < 2.0) 
    json (1.8.0) 
    kaminari (0.14.1) 
     actionpack (>= 3.0.0) 
     activesupport (>= 3.0.0) 
    mail (2.5.4) 
     mime-types (~> 1.16) 
     treetop (~> 1.4.8) 
    meta_request (0.2.7) 
     callsite 
     rack-contrib 
     railties 
    meta_search (1.1.3) 
     actionpack (~> 3.1) 
     activerecord (~> 3.1) 
     activesupport (~> 3.1) 
     polyamorous (~> 0.5.0) 
    mime-types (1.23) 
    mini_portile (0.5.1) 
    minitest (4.7.5) 
    minitest-capybara (0.4.1) 
     capybara (~> 2.0) 
     minitest (~> 4.0) 
     rake 
    minitest-metadata (0.4.0) 
     minitest (~> 4.7) 
    minitest-rails (0.9.2) 
     minitest (~> 4.7) 
     rails (>= 3.0) 
    minitest-rails-capybara (0.10.0) 
     capybara (~> 2.0) 
     minitest-capybara (~> 0.4) 
     minitest-metadata (~> 0.4) 
     minitest-rails (~> 0.9.1) 
    multi_json (1.7.7) 
    multi_xml (0.5.4) 
    nokogiri (1.6.0) 
     mini_portile (~> 0.5.0) 
    orm_adapter (0.4.0) 
    paperclip (3.5.0) 
     activemodel (>= 3.0.0) 
     activesupport (>= 3.0.0) 
     cocaine (~> 0.5.0) 
     mime-types 
    pg (0.16.0) 
    polyamorous (0.5.0) 
     activerecord (~> 3.0) 
    polyglot (0.3.3) 
    rack (1.4.5) 
    rack-cache (1.2) 
     rack (>= 0.4) 
    rack-contrib (1.1.0) 
     rack (>= 0.9.1) 
    rack-ssl (1.3.3) 
     rack 
    rack-test (0.6.2) 
     rack (>= 1.0) 
    rails (3.2.13) 
     actionmailer (= 3.2.13) 
     actionpack (= 3.2.13) 
     activerecord (= 3.2.13) 
     activeresource (= 3.2.13) 
     activesupport (= 3.2.13) 
     bundler (~> 1.0) 
     railties (= 3.2.13) 
    railties (3.2.13) 
     actionpack (= 3.2.13) 
     activesupport (= 3.2.13) 
     rack-ssl (~> 1.3.2) 
     rake (>= 0.8.7) 
     rdoc (~> 3.4) 
     thor (>= 0.14.6, < 2.0) 
    rake (10.1.0) 
    rb_wunderground (0.1.2) 
     hashie (~> 1.2) 
     httparty (~> 0.9) 
     json (~> 1.7) 
    rdoc (3.12.2) 
     json (~> 1.4) 
    responders (0.9.3) 
     railties (~> 3.1) 
    sass (3.2.9) 
    sass-rails (3.2.6) 
     railties (~> 3.2.0) 
     sass (>= 3.1.10) 
     tilt (~> 1.3) 
    sprockets (2.2.2) 
     hike (~> 1.2) 
     multi_json (~> 1.0) 
     rack (~> 1.0) 
     tilt (~> 1.1, != 1.3.0) 
    thin (1.5.1) 
     daemons (>= 1.0.9) 
     eventmachine (>= 0.12.6) 
     rack (>= 1.0.0) 
    thor (0.18.1) 
    tilt (1.4.1) 
    treetop (1.4.14) 
     polyglot 
     polyglot (>= 0.3.1) 
    tzinfo (0.3.37) 
    uglifier (2.1.2) 
     execjs (>= 0.3.0) 
     multi_json (~> 1.0, >= 1.0.2) 
    warden (1.2.3) 
     rack (>= 1.0) 
    xpath (2.0.0) 
     nokogiri (~> 1.3) 
    zurb-foundation (4.3.1) 
     sass (>= 3.2.0) 

PLATFORMS 
    ruby 

DEPENDENCIES 
    active_admin_editor 
    activeadmin 
    better_errors 
    binding_of_caller 
    coffee-rails (~> 3.2.1) 
    compass-rails 
    high_voltage 
    jquery-rails (= 2.3.0) 
    meta_request 
    minitest-rails 
    minitest-rails-capybara 
    paperclip (~> 3.0) 
    pg 
    rails (= 3.2.13) 
    rb_wunderground 
    sass-rails (~> 3.2.3) 
    thin 
    uglifier (>= 1.0.3) 
    zurb-foundation 
+0

你可以发布你的Gemfile.lock文件的内容吗? – blowmage

+0

感谢您的关注。问题用lockfile更新。 – Will

回答

0

您需要升级libxml2和的libxslt。如果使用的是啤酒,你可以做到以下几点:

$ brew install libxml2 libxslt 
$ brew link libxml2 libxslt 

更多信息,请参见Nokogiri documentation

+0

警告:已安装libxml2-2.9.1 警告:已安装libxslt-1.1.28 – Will

+0

这就是我尝试的错误消息。我需要更新而不是安装吗?无法找到如何做到这一点的信息。 – Will

+0

看着nokogiri网站,1.6捆绑了libxml&libxslt - 看起来很奇怪,这是跌倒 – Will