undefined method `rakefile' for #<Rake::Application:0x2abda98aaf20>
Added by Nikolay Khokhlov over 16 years ago
Hello.
Sorry for my English.
I'm trying to install redmine on debian using postgres.
I do all steps from manual on this site:
apt-get install ruby rake rubygems gem install rails postgres-pr
Then i create postgres database redmine for user redmine and checkout redmine from svn:
cd /opt svn co http://redmine.rubyforge.org/svn/branches/0.7-stable redmine-0.7 cd redmine-0.7
Edit file config/database.yml:
server:/opt/redmine-0.7# cat config/database.yml # MySQL (default setup). Versions 4.1 and 5.0 are recommended. # # Get the fast C bindings: # gem install mysql # (on OS X: gem install mysql -- --include=/usr/local/lib) # And be sure to use new-style password hashing: # http://dev.mysql.com/doc/refman/5.0/en/old-client.html production: adapter: postgresql database: redmine host: localhost username: redmine password: r3dmin3 encoding: utf8
And then i run command from tutorial to setup database:
server:/opt/redmine-0.7# rake db:migrate RAILS_ENV="production" (in /opt/redmine-0.7) rake aborted! undefined method `rakefile' for #<Rake::Application:0x2ba910648f40> /opt/redmine-0.7/Rakefile:10 (See full trace by running task with --trace)
server:/opt/redmine-0.7# rake db:migrate RAILS_ENV="production" --trace (in /opt/redmine-0.7) rake aborted! undefined method `rakefile' for #<Rake::Application:0x2acc9508df18> /var/lib/gems/1.8/gems/rake-0.8.3/lib/rake/rdoctask.rb:105:in `define' /var/lib/gems/1.8/gems/rake-0.8.3/lib/rake/rdoctask.rb:81:in `initialize' /var/lib/gems/1.8/gems/rails-2.1.1/lib/tasks/documentation.rake:3:in `new' /var/lib/gems/1.8/gems/rails-2.1.1/lib/tasks/documentation.rake:3 /usr/lib/ruby/1.8/rake.rb:1548:in `in_namespace' /usr/lib/ruby/1.8/rake.rb:640:in `namespace' /var/lib/gems/1.8/gems/rails-2.1.1/lib/tasks/documentation.rake:1 /var/lib/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:503:in `load' /var/lib/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:503:in `load' /var/lib/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in `new_constants_in' /var/lib/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:503:in `load' /var/lib/gems/1.8/gems/rails-2.1.1/lib/tasks/rails.rb:4 /var/lib/gems/1.8/gems/rails-2.1.1/lib/tasks/rails.rb:4:in `each' /var/lib/gems/1.8/gems/rails-2.1.1/lib/tasks/rails.rb:4 /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require' /opt/redmine-0.7/Rakefile:10 /usr/lib/ruby/1.8/rake.rb:1828:in `load' /usr/lib/ruby/1.8/rake.rb:1828:in `load_rakefile' /usr/lib/ruby/1.8/rake.rb:1900:in `run' /usr/bin/rake:4
What might be the problem?
Replies (2)
RE: undefined method `rakefile' for #<Rake::Application:0x2abda98aaf20>
-
Added by Mischa The Evil over 16 years ago
Nikolay Khokhlov wrote:
[...]
What might be the problem?
See the requirements of Redmine here. The 0.7-Stable branch requires Rails 2.0.2 instead of Rails 2.1.1.
So the issue can be solved by freezing Rails 2.0.2 when using the 0.7-Stable branch or by updating to the current (pretty stable) trunk which is compatible with (and requires at least) Rails 2.1.0.
Though I'm not 100% certain that current trunk is fully compatible with Rails 2.1.1.
HTH, Mischa.
RE: undefined method `rakefile' for #<Rake::Application:0x2abda98aaf20>
-
Added by Nikolay Khokhlov over 16 years ago
Thanks!
It works :)