redMineをWindowsで試す。

redMineというRubyで書かれたプロジェクト管理ツール、評価してみたいのでWindows Vistaな自分のマシンに入れてみようと思う。
 
RadRailsにて散々苦労したことも脳裏によぎる・・・
 
 
redMineのインストール手順のページ(英語)を参考にしてみる。
 

Requirements
Ruby on Rails 1.2.2

コマンドプロンプトで確かめる

C:\Ruby>rails -v
Rails 1.2.3

OKらしい。
 

Optional:
RedCloth (to enable textile formatting)

オプション扱いだけど、redMineをWindowsにインストールするメモを参照するとwikiが動かないというので入れてみる。

C:\Ruby>set http_proxy=http://(proxy_url):port
C:\Ruby>gem install RedCloth
Bulk updating Gem source index for: http://gems.rubyforge.org
Successfully installed RedCloth-3.0.4


たぶん大丈夫。
 
MySQLでの操作

  • MySQL AdministratorでCatalog「redmine」を作成する
  • MySQL Administratorの「User Administration」で「Add new user」ボタンを押して「redmine」を作成
  • 上の「Schema Privileges」にて「Assigned Privileges」に「Availabel Privieges」から全部移動!

 
Aptana IDEでの操作

  • Aptaneを使っているので、Aptanaで「ファイル→新規→プロジェクト」で「redmaine」を作る。
  • 「config/database.yml」というファイルが出来ている

production:
adapter: mysql
database: redmine
username: redmine
password:
host: localhost

こんな感じにする。
 

rake db:migrate RAILS_ENV="production"

ここでエラーになる。
また明日!!
 
http://syo.cocolog-nifty.com/freely/2007/05/redmine_8f5b.html

明日になった。

アーカイブを展開したルートフォルダで実行するらしい。

C:\Aptana IDE Beta\redmine>rake db:migrate RAILS_ENV="production"
(in C:/Aptana IDE Beta/redmine)

次に

rake load_default_data RAILS_ENV="production"

こいつを試すとエラーになる。
 
MySQLスキーマを作成するときに適当にやっちまったのがよろしくないのか?

C:\Aptana IDE Beta\redmine>mysql -u root -p
Enter password: **************
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.0.41-community-nt MySQL Community Edition (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> create database redmine default character set utf8;
Query OK, 1 row affected (0.00 sec)

mysql> exit
Bye

C:\Aptana IDE Beta\redmine>

なんだかうまくいかない。何かが違う・・・