簡體   English   中英

打開bundle exec rails console時,ruby中的LoadError

[英]LoadError in ruby when open the bundle exec rails console

我遇到一個問題,當我輸入“ br c”(運行bundle exec c的捷徑)時,它給了我下面的錯誤。

ependencies.rb:251:in `require': cannot load such file -- nokogiri/nokogiri (LoadError)
    from /Users/johnhenry/valcuqw/vendor/bundle/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require'
    from /Users/johnhenry/valcuqw/vendor/bundle/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'
    from /Users/johnhenry/valcuqw/vendor/bundle/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
    from /Users/johnhenry/valcuqw/vendor/bundle/gems/nokogiri-1.5.6/lib/nokogiri.rb:27:in `<top (required)>'
    from /Users/johnhenry/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
    from /Users/johnhenry/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
    from /Users/johnhenry/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
    from /Users/johnhenry/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
    from /Users/johnhenry/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
    from /Users/johnhenry/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
    from /Users/johnhenry/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
    from /Users/johnhenry/valcuqw/config/application.rb:7:in `<top (required)>'
    from /Users/johnhenry/valcuqw/vendor/bundle/gems/railties-3.2.14/lib/rails/commands.rb:39:in `require'
    from /Users/johnhenry/valcuqw/vendor/bundle/gems/railties-3.2.14/lib/rails/commands.rb:39:in `<top (required)>'
    from script/rails:14:in `require'
    from script/rails:14:in `<main>'

有人可以幫我嗎?

看來您的應用程式需要nokogiri,但您並未將nokogiri放入Gemfile中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM