Problems installing Redmine on (mt) DV

I was having some major problems installing the latest stable release of redmine and I had been getting the error “rake aborted! undefined method `register_template_handler’ for ActionView::Base:Class” after running $rake db:migrate RAILS_ENV=”production”.

I was able to resolve the issue and I wish I took better notes (or notes at all, using my bash history) so I’ll have to go off memory. And even though I spent countless hours trying – it’s worth it.

First, I wasn’t able to use the latest stable release on .7, I gave up near the end of this install and just checked out the latest stable of .8 and viola!

svn co http://redmine.rubyforge.org/svn/branches/0.8-stable/ .

Originally I had commented out the rails version requirement in the enviroment.rb, but I uncommented it when I started this process.

Essentially I uninstalled the re-installed (removed and installed) ruby and all gems. I’m on a (mt) DV so it was good to install yum and break from the existing knowledge base FAQ about installing rails and a test app.

I used:

$yum remove ruby
$yum update ruby
$gem remove rails [got some error, which made me run]
$gem clean rails
$gem install rails -v=2.1.2
$gem install actionview
$rake db:migrate RAILS_ENV="production" --trace
[not sure why I ran] $gem update [then] $gem update --system [before I was able to run]
$rake redmine:load_default_data RAILS_ENV="production"
[could explain why my rails version was update after the specific version I previously installed]

Pretty ugly but it worked.

Here is my latest config.. Mileage may vary.

[root@scatter3d httpdocs]# ruby -v
*ruby 1.8.6* (2007-09-24 patchlevel 111) [i686-linux]
[root@scatter3d httpdocs]# rails -v
*Rails 2.2.2*
[root@scatter3d httpdocs]# svn info
Path: .
URL: *http://redmine.rubyforge.org/svn/branches/0.8-stable*
Repository Root: http://redmine.rubyforge.org/svn
Repository UUID: e93f8b46-1217-0410-a6f0-8f06a7374b81
Revision: 2170
Node Kind: directory
Schedule: normal
Last Changed Author: jplang
Last Changed Rev: 2146
Last Changed Date: 2008-12-19 03:45:33 -0800 (Fri, 19 Dec 2008)

I wish I knew what I was doing exactly, I was pretty burnt at the end of this cycle and I tried a lot of things. All in all, it’s a matter of certain version requirements on ruby and rails and redmine.

About the Author, Dan Cameron:

I'm the owner and solution engineer at Sprout Venture, a web solutions company that specializes in web development including WordPress.

I started my first blog in 2003 and transitioned to WordPress in 2004. Since moving to WordPress I've written a few plugins and themes for public consumption. Lately I'm busy engineering/building/coding and have only been able to share a few code snippets.

If you're in need of some web development, web design or custom WordPress plugins and/or themes contact me, I'll be happy to discuss it with you.

Read More »

blog comments powered by Disqus