The Great Remine Challenge

I've been trying to get Redmine running on my NAS drive for a while now and I've been getting weird Ruby/Rake/Rails errors (mostly related to version compatibility). I'm not familiar with any of this Ruby stuff at all so I haven't had enough time to solve these problems. But here is what I've done s

I've been trying to get Redmine running on my NAS drive for a while now and I've been getting weird Ruby/Rake/Rails errors (mostly related to version compatibility). I'm not familiar with any of this Ruby stuff at all so I haven't had enough time to solve these problems. But here is what I've done so far.

svn co http://redmine.rubyforge.org/svn/trunk redmine
and followed http://www.redmine.org/wiki/redmine/RedmineInstall Then I got some errors related to not being able to find test/unit/error or something.http://newsgroups.derkeiler.com/Archive ... 02366.html So I've cleaned up gems using gem clean. Since I'm using the latest trunk, I figured I should use Rails 2.3.4. But this version of rails is apparently incompatible with RubyGems. So I did a gem update --system to get the latest RubyGems. But now gem cannot find any rake install. So I installed rails 2.3.4 again. Waiting for the install to finish (taking a long time, being a NAS and all) Progress! I've installed the following gems
  • actionmailer (2.3.5, 2.3.4)
  • actionpack (2.3.5, 2.3.4)
  • activerecord (2.3.5, 2.3.4)
  • activeresource (2.3.5, 2.3.4)
  • activesupport (2.3.5, 2.3.4)
  • mocha (0.9.8)
  • postgres-pr (0.6.3, 0.6.1)
  • rack (1.1.0, 1.0.1)
  • rails (2.3.5, 2.3.4)
  • rake (0.8.7)
  • rubygems-update (1.3.5)
After that, redmine was working on Webrick with postgres as the production database. (obviously postgres and the database needed had to be set up according to the official documentation) I then spent ages trying to deploy redmine to apache. First, i tried mongrel:
gem install mongrel
...fail. Can't remember what the error was, but something to do with mkmf.rb... So I tried passenger, according tohttp://www.modrails.com/install.html :
gem install passenger
...fail, again. But this time the error message was more helpful. It complained about the location of gcc. So I made a symbolic link to /opt/bin/gcc as /home/slug/optware/cs05q3armel/toolchain/arm-none-linux-gnueabi/gcc-2005q3-glibc-2.3.6/bin/arm-none-linux-gnueabi-gcc And tried
gem install passenger
... success! And now for the apache module itself:
# passenger-install-apache2-module
...fail. Something to do with missing apr-1-config and apu-1-config So I downloaded apache2 source, compiled srclib/ and made some symbolic links to the apr-1-config and apu-1-config I've just installed:
ln -s /usr/local/apache2/bin/apr-1-config /home/slug/optware/cs05q3armel/staging/opt/bin/
ln -s /usr/local/apache2/bin/apu-1-config /home/slug/optware/cs05q3armel/staging/opt/bin/
passenger-install-apache2-module
...success! After the module build, I added a new file /opt/etc/apache2/conf.d/passenger.conf:
LoadModule passenger_module /opt/lib/ruby/gems/1.9.1/gems/passenger-2.2.9/ext/apache2/mod_passenger.so
PassengerRoot /opt/lib/ruby/gems/1.9.1/gems/passenger-2.2.9
PassengerRuby /opt/bin/ruby
# <VirtualHost *:3000>
#   ServerName www.yourhost.com
#   DocumentRoot /mnt/array1/share/proj.web/redmine/public
#   <Directory /mnt/array1/share/proj.web/redmine/public>
#     AllowOverride all
#     Options -MultiViews
#   </Directory>
# </VirtualHost>
RailsBaseURI /redmine