1

실패 'init.rb'는 레드 마인 플러그인에 보석을 필요로 'ice_cube는'설치하고 난 루비 1.9.3p0 (2011-10-30 개정 33570) [x86_64에-darwin11.2.0]와 RVM을 사용하고 '보석리스트' 을 수행 할 때 다음 내가 레드 마인 2.0 및</p> <pre><code>require 'ice_cube' </code></pre> <p>내가 비록 심지어 부하 오류 'init.rb'플러그인의 다음 행에 대한 플러그인을 구축하고

오류 로그입니다 표시됩니다 :

/Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- ice_cube (LoadError) 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require' 
    from /Users/myth/Learn/Code/Berkman GSOC 2012/Berkman/redmine/plugins/redmine_asset_tracker/init.rb:2:in `<top (required)>' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require' 
    from /Users/myth/Learn/Code/Berkman GSOC 2012/Berkman/redmine/lib/redmine/plugin.rb:129:in `block in load' 
    from /Users/myth/Learn/Code/Berkman GSOC 2012/Berkman/redmine/lib/redmine/plugin.rb:120:in `each' 
    from /Users/myth/Learn/Code/Berkman GSOC 2012/Berkman/redmine/lib/redmine/plugin.rb:120:in `load' 
    from /Users/myth/Learn/Code/Berkman GSOC 2012/Berkman/redmine/config/initializers/30-redmine.rb:13:in `<top (required)>' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `load' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `block in load' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `load' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/engine.rb:587:in `each' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/engine.rb:587:in `block in <class:Engine>' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `instance_exec' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `run' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/initializable.rb:55:in `block in run_initializers' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `each' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `run_initializers' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/application.rb:136:in `initialize!' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in `method_missing' 
    from /Users/myth/Learn/Code/Berkman GSOC 2012/Berkman/redmine/config/environment.rb:14:in `<top (required)>' 
    from /Users/myth/Learn/Code/Berkman GSOC 2012/Berkman/redmine/config.ru:4:in `require' 
    from /Users/myth/Learn/Code/Berkman GSOC 2012/Berkman/redmine/config.ru:4:in `block in <main>' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize' 
    from /Users/myth/Learn/Code/Berkman GSOC 2012/Berkman/redmine/config.ru:1:in `new' 
    from /Users/myth/Learn/Code/Berkman GSOC 2012/Berkman/redmine/config.ru:1:in `<main>' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/server.rb:200:in `app' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/commands/server.rb:46:in `app' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/server.rb:252:in `start' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/commands/server.rb:70:in `start' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/commands.rb:55:in `block in <top (required)>' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap' 
    from /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/commands.rb:50:in `<top (required)>' 
    from script/rails:6:in `require' 
    from script/rails:6:in `<main>' 

답변

2

문제점에 대한 해결책을 찾았습니다 :

나열된 모든 보석과 함께 'Gemfile'을 'Gemfile'에 추가하고 'bundle'을 누르면 완벽하게 작동해야합니다.