Problems during Redmine 2 installation on Debian 6 (Squeeze)
by admin on Jun.11, 2012, under Web Development
I tried to install Redmine 2.0.2. on a Debian 6 (Squeeze) server and ran into some problems. Especially running the rake command was a bit tricky. Luckiliy I managed to fix it
My first output was:
$ rake generate_secret_token (in /home/acy/domains/test/redmine) rake aborted! uninitialized constant Rake::DSL /home/acy/domains/test/redmine/Rakefile:8 (See full trace by running task with --trace) |
I fixed this by adding the following line to my Rakefile:
require 'rake/dsl_definition' |
So my Rakefile looks like this:
#!/usr/bin/env rake # Add your own tasks in files placed in lib/tasks ending in .rake, # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. require File.expand_path('../config/application', __FILE__) require 'rake/dsl_definition' RedmineApp::Application.load_tasks |
Great. Oh no… I still got errors:
$ rake generate_secret_token (in /home/acy/domains/test/redmine) /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:9: warning: already initialized constant RUBY /var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/file_utils.rb:86: warning: already initialized constant LN_SUPPORTED |
You can bypass this by using the following command:
$ bundle exec rake generate_secret_token |
That’s it. Good luck!