我有生成秘密令牌的问题 .
我正在尝试这个:
[redmine]#rake generate_secret_token rake aborted! LoadError:无法加载此类文件 - rspec / core /usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in require'/ usr / local / rvm / gems / ruby-1.9.3-p551 / gems / activesupport-3.2.19 / lib / active_support / dependencies.rb:251:在require'/ usr / local / rvm / gems / ruby-中的块中1.9.3-p551 / gems / activesupport-3.2.19 / lib / active_support / dependencies.rb:236:in load_dependency'/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2 . 19 / lib / active_support / dependencies.rb:251:in require'/redmine/plugins/easyproject/easy_plugins/easy_extensions/lib/tasks/tests.rake:3:in <top(required)>'/ usr / local / rvm /gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:245:in load'/usr/local/rvm/gems/ruby-1.9.3-p551/gems /activesupport-3.2.19/lib/active_support/dependencies.rb:245:in block in load'/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support /dependencies.rb:236:in load_dependency'/usr/local/rvm/gems/ruby-1.9.3-p 551 / gems / activesupport-3.2.19 / lib / active_support / dependencies.rb:245:在'/ redmine / plugins / easyproject中加载'/redmine/plugins/easyproject/lib/tasks/easyproject.rake:1:in块/lib/tasks/easyproject.rake:1:in每个'/redmine/plugins/easyproject/lib/tasks/easyproject.rake:1:in'/usr/local/rvm/gems/ruby-1.9.3-p551/ gems / activesupport-3.2.19 / lib / active_support / dependencies.rb:245:in load'/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/ dependencies.rb:245:在加载块'/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:inload_dependency'/ usr / local / rvm / gems / ruby-1.9.3-p551 / gems / activesupport-3.2.19 / lib / active_support / dependencies.rb:245:in load'/redmine/lib/tasks/redmine.rake:179:在<top(required)>'/ redmine/lib/tasks/redmine.rake:179:ineach'/redmine/lib/tasks/redmine.rake:179:in <top(required)>'/ usr / local /rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies .rb:245:在加载'/usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:245:in block in load'/ usr /local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in load_dependency'/usr/local/rvm/gems/ruby-1.9.3 -p551 / gems / activesupport-3.2.19 / lib / active_support / dependencies.rb:245:in load'/usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.19/lib /rails/engine.rb:425:in load_tasks'/usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.19/lib/rails/engine.rb:425:in每个'/usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.19/lib/rails/engine.rb:425:in load_tasks'/ usr / local / rvm / gems / ruby -1.9.3-p551 / gems / railties-3.2.19 / lib / rails / application.rb:145:in load_tasks'/usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.2 .19 / lib / rails / railtie / configurable.rb:30:in method_missing'/ redmine / Rakefile:7:in <top(required)>'/usr/local/rvm/gems/ruby-1.9.3-p551/ bin / ruby_executable_hooks:15:在eval'/ usr / local / rv中m / gems / ruby-1.9.3-p551 / bin / ruby_executable_hooks:15:in''(通过使用--trace运行任务查看完整跟踪)
添加之前“bundle exec”错误是相同的 .
宝石清单:
> [redmine]# gem list | grep rspec
rspec (3.1.0)
rspec-core (3.1.7)
>rspec-expectations (3.1.2)
rspec-mocks (3.1.3)
rspec-support (3.1.2)
> [redmine]# gem list | grep core
core (0.0.6)
rspec-core (3.1.7)
有人可以帮忙吗?
1 回答
有事正在寻找
rspec
. 但是你的Gemfile中没有它,这就是为什么rake
找不到它(也不是捆绑器) . 它似乎已安装,所以只需将其添加到Gemfile
,然后bundle
,您应该全部设置 .因为它看起来像一个rails项目,添加它然后运行
bundle
应该是你需要的全部设置 .Rails仅使用捆绑包中指定的gem .