I have problem with generating secret token.
I'm was trying this:
[redmine]# rake generate_secret_token rake aborted! LoadError: cannot load such file -- 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:inblock in require' /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:251:inrequire' /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:inload' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:245:inblock in load' /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:inload' /redmine/plugins/easyproject/lib/tasks/easyproject.rake:1:inblock in ' /redmine/plugins/easyproject/lib/tasks/easyproject.rake:1:ineach' /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:inload' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:245:inblock in load' /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:inload' /redmine/lib/tasks/redmine.rake:179:inblock in <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:inload' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:245:inblock in load' /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:inload' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.19/lib/rails/engine.rb:425:inblock in load_tasks' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.19/lib/rails/engine.rb:425:ineach' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.19/lib/rails/engine.rb:425:inload_tasks' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.19/lib/rails/application.rb:145:inload_tasks' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.19/lib/rails/railtie/configurable.rb:30:inmethod_missing' /redmine/Rakefile:7:in<top (required)>' /usr/local/rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:ineval' /usr/local/rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in `' (See full trace by running task with --trace)
With adding before "bundle exec" errors are same.
Gem list:
> [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)
Anyone can help?
Something is looking for rspec. But you don't have it in your Gemfile, which is why rake cannot find it (nor bundler). It appears to be installed, so just add it to your Gemfile , then bundle and you should be all set.
As it looks like a rails project, adding this and then running bundle should be all set you need.
group :development, :test do
gem 'rspec-rails', '~> 3.0'
end
Rails only uses the gems specified in your bundle.
来源:https://stackoverflow.com/questions/27621202/redmine-cant-generate-secret-token