2012-06-07 :-(
_ [BitNami Redmine][Backlogs]BitNami Redmine と Backlogs 入れてみた
環境
- BitNami Redmine
- Backlogs
- Microsoft Windows 7 64bit
BitNami Redmine
Redmine 1.4.2-1 を使う。
BitNami Redmine からダウンロードして実行すれば ok
Backlogs
Redmine Backlogs :: Installation の手順どおり。なのだがいろいろトラブル。
BitNami RedmineとBacklogsをインストールしてみたよ! - うさぎ組
BitNamiでインストールしたruby/binパス上でgem installしないと、他のRubyのgem installが実行されてRedmineに反映されない。Redmineで使用するRubyで実行すること。
ということで C:\Redmine\use_redmine.bat を実行。コマンドプロンプトが起動する。
C:\Redmine\apps\redmine\vendor\plugins\redmine_backlogs へ移動。
HTTP プロキシ内ならば環境変数を設定しておく( Windows の環境変数 )
> set HTTP_PROXY=http://USER:PASS@proxy.example.net:8080
RAILS_ENV 設定する。
> set RAILS_ENV=production
bundle install する。Development Kit をインストールしろと言われた。
> bundle install Updating https://github.com/Vanuan/cucumber-rails.git Fetching source index for http://rubygems.org/ Using Ascii85 (1.0.1) Using holidays (1.0.3) Using icalendar (1.1.6) Installing json (1.7.3) Gem::InstallError: The 'json' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit' An error occured while installing json (1.7.3), and Bundler cannot continue. Make sure that `gem install json -v '1.7.3'` succeeds before bundling.
Development Kit
ということで Development Kit をインストールする。
Development Kit · oneclick/rubyinstaller Wiki の手順どおり。
Development Kit をダウンロードし、自己展開形式なので .exe を実行する。書庫名などのフォルダを作っておいて、その中に展開しないとファイルが散らかることになる。
C:\Redmine\use_redmine.bat を実行したときのコマンドプロンプトをそのまま使う。DevKit は C:\Redmine の ruby 環境にインストールしないといけないんだが、ruby が複数インストールしてある環境の場合( cygwin とかいろいろ入れてあるとか )はちゃんと PATH を適切に設定しておかないと DevKit が C:\Redmine の ruby 環境にインストールされない。
C:\Redmine\scripts\setenv.bat ( C:\Redmine\use_redmine.bat から呼ばれる。ここで環境変数を設定している )を実行したうえで devkitvars.bat を実行しておく。
init する
> ruby dk.rb init
config.yml が生成されるけど中身が空っぽなので追記。
- C:/Redmine/ruby
インストール
> ruby dk.rb install
再度 Backlogs
上で起動したコマンドプロンプトのまま C:\Redmine\apps\redmine へ移動
> set RAILS_ENV=production
> bundle exec rake db:migrate
gem が不足していると bundle install しろと言われるので実行しておく。
> bundle install
再度
> bundle exec rake db:migrate
redmine
redmine 再起動
> C:\Redmine\servicerun.bat STOP
> C:\Redmine\servicerun.bat START
バックログ
BitNami RedmineとBacklogsをインストールしてみたよ! - うさぎ組 をコピペ
9.プロジェクトを新規作成する。モジュールでBacklogsのチェックボックスをオンにする。
http://localhost/redmine/projects/new
10.プロジェクトのバージョンを設定する(Backlogsのスプリントになる)
http://localhost/redmine/projects/sample/settings
11.BacklogsのMasterBacklogsでストーリーを追加する。
http://localhost/redmine/rb/master_backlogs/sample
12.Backlogsのタスクボードでストーリーに対するタスクを追加、更新する。
http://localhost/redmine/rb/taskboards/1
An error occured while installing json (1.7.3), and Bundler cannot continue
上記の bat の環境を作り C:\Redmine の ruby 環境にインストールしておかないと DevKit が意図しないところにインストールされたことになるなどして以下のように怒られたりする。
> bundle install Updating https://github.com/Vanuan/cucumber-rails.git Fetching source index for http://rubygems.org/ Using Ascii85 (1.0.1) Using holidays (1.0.3) Using icalendar (1.1.6) Installing json (1.7.3) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. C:/Redmine/ruby/bin/ruby.exe extconf.rb creating Makefile make Makefile:121: *** target pattern contains no `%'. Stop. Gem files will remain installed in C:/Redmine/ruby/lib/ruby/gems/1.8/gems/json-1.7.3 for inspection. Results logged to C:/Redmine/ruby/lib/ruby/gems/1.8/gems/json-1.7.3/ext/json/ext/parser/gem_make.out An error occured while installing json (1.7.3), and Bundler cannot continue. Make sure that `gem install json -v '1.7.3'` succeeds before bundling.