Running Redmine On Mac OS X

...until you get toYou'll probably get an error saying:(in /Volumes/Datadrive/Users/gash/Server/app/redmine)rake aborted!Object is not missing constant Issue! Reinstall mysql gem using the correct configuration provided by the mysql package you have installed.sudo env ARCHFLAGS="-arch

By Takeshi Kanemoto
On June 19, 2011, 6:18 p.m.

Setting Up (How To Solve MySQL Issues)

  1. Follow http://www.redmine.org/projects/redmine/wiki/RedmineInstall
  2. ...until you get to
    RAILS_ENV=production rake db:migrate
    You'll probably get an error saying:
    (in /Volumes/Datadrive/Users/gash/Server/app/redmine) rake aborted! Object is not missing constant Issue!
  3. Reinstall mysql gem using the correct configuration provided by the mysql package you have installed.
    sudo env ARCHFLAGS="-arch i386" gem install --no-rdoc --no-ri \ mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
  4. If the mysql lib directory is not in the DYLD_LIBRARY_PATH, you need to set it, either by
    export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/mysql/lib
    or adding an entry in ~/.MacOSX/environment.plist (or /etc/launchd.conf)
  5. RAILS_ENV=production rake config/initializers/session_store.rb rake generate_session_store RAILS_ENV=production rake db:migrate
    That should do the trick :)

Running Behind Apache Proxy

  1. Create a new launch daemon plist, with something like:
    Label tk.redmine UserName root GroupName daemon WorkingDirectory /path/to/your/app/redmine StandardOutPath log/launchd.log StandardErrorPath log/launchd.log ProgramArguments script/server --environment=production --path=/redmine RunAtLoad KeepAlive EnvironmentVariables DYLD_LIBRARY_PATH /usr/local/mysql/lib/
  2. Add the following to your apache config:
    RewriteRule /redmine/(.*) http://127.0.0.1:3000/redmine/$1 [P,L]

Source: http://www.redmine.org/boards/2/topics/15663

About the author

Takeshi Kanemoto

I'm a software engineer based in Cambridge, UK.