上記URLを参考にインストールを実行してみましたので、メモ残しておきます。
環境は以下の通り。
CentOS5系
ruby 1.9.3p448 (2013-06-27 revision 41675)
Redmine version                2.3.3.stable
実際の作業の流れです。
# cd /usr/local/src
# git clone https://github.com/backlogs/redmine_backlogs
# view /etc/httpd/conf.d/redmine.conf
# cp -rp redmine_backlogs /var/www/redmine/plugins/
# chown -R apache:apache redmine_backlogs/
# cd /var/www/redmine/plugins/
# cp -p Gemfile Gemfile.org
# vi Gemfile
+gem install”rake”
# bundle install –without development test
/usr/local/lib/ruby/1.9.1/yaml.rb:84:in `<top (required)>’:
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
Fetching gem metadata from https://rubygems.org/……..
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies…
Installing rake (10.4.2)
Installing daemons (1.2.2)
Installing eventmachine (1.0.7)
Installing holidays (1.0.8)
Installing icalendar (2.3.0)
Installing json (1.8.2)
Installing nokogiri (1.5.11)
Installing open-uri-cached (0.0.5)
Installing pdf-core (0.5.1)
Installing ttfunk (1.4.0)
Installing prawn (2.0.1)
Gem::InstallError: prawn requires Ruby version >= 2.0.0.
An error occurred while installing prawn (2.0.1), and Bundler cannot continue.
Make sure that `gem install prawn -v ‘2.0.1’` succeeds before bundling.
prawnというPDF関連のgemがインストールできない様子。
エラーに書かれている通りに実行してみる。
# gem install prawn -v ‘2.0.1’
/usr/local/lib/ruby/1.9.1/yaml.rb:84:in `<top (required)>’:
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
ERROR:  Error installing prawn:
    prawn requires Ruby version >= 2.0.0.
ダメでした。
prawn自体をコメントアウトしてみる。
# vi Gemfile
#gem install “prawn”
# RAILS_ENV=production bundle exec rake redmine:backlogs:install
(in /var/www/redmine-2.3.3)
rake aborted!
LoadError: cannot load such file — rails/all
/var/www/redmine-2.3.3/config/application.rb:3:in `require’
/var/www/redmine-2.3.3/config/application.rb:3:in `<top (required)>’
/var/www/redmine-2.3.3/Rakefile:5:in `require’
/var/www/redmine-2.3.3/Rakefile:5:in `<top (required)>’
(See full trace by running task with –trace)
なんだかエラー。
ディレクトリを変えて実行。
# cd /var/www/redmine
# RAILS_ENV=production bundle exec rake redmine:backlogs:install
/usr/local/lib/ruby/1.9.1/yaml.rb:84:in `<top (required)>’:
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
/usr/local/lib/ruby/1.9.1/yaml.rb:84:in `<top (required)>’:
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
Could not find gem ‘inifile (>= 0) ruby’ in the gems available on this machine.
Run `bundle install` to install missing gems.
エラーがでてインストールが行えていない様子。。
やっぱりprawnが必要かな?ということで、バージョンを指定してインストールを実行。
バージョンについてはprawnをネットで検索するとprawnの公式サイトがあるので、
そこからバージョンを調べる。
2.0.0でダメだったので、その下の1.3.0を指定してみる。
# gem install prawn -v 1.3.0
/usr/local/lib/ruby/1.9.1/yaml.rb:84:in `<top (required)>’:
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
Fetching: pdf-core-0.4.0.gem (100%)
Successfully installed pdf-core-0.4.0
Fetching: prawn-1.3.0.gem (100%)
  ********************************************
  A lot has changed recently in Prawn.
  Please read the changelog for details:
  https://github.com/prawnpdf/prawn/wiki/CHANGELOG
  ********************************************
Successfully installed prawn-1.3.0
Parsing documentation for pdf-core-0.4.0
Installing ri documentation for pdf-core-0.4.0
Parsing documentation for prawn-1.3.0
Installing ri documentation for prawn-1.3.0
Done installing documentation for pdf-core, prawn after 5 seconds
2 gems installed
うまくいった様子。
もう一度インストールをトライ。
# RAILS_ENV=production bundle exec rake redmine:backlogs:install
同じエラー。
もう一度bundleのインストールを実行。
# bundle install –without development test
/usr/local/lib/ruby/1.9.1/yaml.rb:84:in `<top (required)>’:
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
Fetching gem metadata from https://rubygems.org/………
Fetching gem metadata from https://rubygems.org/………
Fetching gem metadata from https://rubygems.org/..
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies…
Using rake (10.1.0)
Using i18n (0.6.1)
Using multi_json (1.8.2)
Using activesupport (3.2.13)
Using builder (3.0.0)
Using activemodel (3.2.13)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.3)
Using tilt (1.4.1)
Using sprockets (2.2.2)
Using actionpack (3.2.13)
Using mime-types (1.25)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (3.2.13)
Using arel (3.0.2)
Using tzinfo (0.3.38)
Using activerecord (3.2.13)
Using activeresource (3.2.13)
Using bundler (1.3.5)
Using coderay (1.0.9)
Using daemons (1.2.2)
Using eventmachine (1.0.7)
Using holidays (1.0.8)
Using icalendar (2.3.0)
Using rack-ssl (1.3.3)
Using json (1.8.1)
Using rdoc (3.12.2)
Using thor (0.18.1)
Using railties (3.2.13)
Using jquery-rails (2.0.3)
Using mysql2 (0.3.13)
Using net-ldap (0.3.1)
Using nokogiri (1.5.10)
Using open-uri-cached (0.0.5)
Using ruby-openid (2.2.3)
Using rack-openid (1.4.0)
Using rails (3.2.13)
Using rmagick (2.13.2)
Using thin (1.6.3)
Your bundle is complete!
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
さっきとは違う感じでCompleteまでいった様子。
なので、もう一度トライ。
# RAILS_ENV=production bundle exec rake redmine:backlogs:install
/usr/local/lib/ruby/1.9.1/yaml.rb:84:in `<top (required)>’:
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
/usr/local/lib/ruby/1.9.1/yaml.rb:84:in `<top (required)>’:
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
rake aborted!
No such file to load — prawn
/var/www/redmine-2.3.3/plugins/redmine_backlogs/init.rb:44:in `block in <top (required)>’
/var/www/redmine-2.3.3/config/environment.rb:26:in `<top (required)>’
Tasks: TOP => redmine:backlogs:install => environment
(See full trace by running task with –trace)
ダメ。
ディレクトリがおかしいようで、Redmineのディレクトリ直下に移動してもう一度トライ。
# RAILS_ENV=production bundle exec rake redmine:backlogs:install
/usr/local/lib/ruby/1.9.1/yaml.rb:84:in `<top (required)>’:
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
/usr/local/lib/ruby/1.9.1/yaml.rb:84:in `<top (required)>’:
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
2.3.3.stable. You are running backlogs v1.0.6, latest version is 1.0.6
=====================================================
             Redmine Backlogs Installer
=====================================================
Installing to the production environment.
Fetching card labels from http://git.gnome.org…done!
Configuring story and task trackers…
—————————————————–
Which trackers do you want to use for your stories?
  1. 新しいトラッカーのテスト
  2. バグ
  3. タスク
  4. temp_tracker
  5. tracker investigation
  6. 障害報告
  7. リクエスト
  8. 未実装報告
  9. 旧チケット
  10. チケット
Separate values with a space (e.g. 1 3): 1 3
You selected the following trackers: 新しいトラッカーのテスト, タスク. Is this correct? (y/n) y
—————————————————–
Which tracker do you want to use for your tasks?
  1. バグ
  2. temp_tracker
  3. tracker investigation
  4. 障害報告
  5. リクエスト
  6. 未実装報告
  7. 旧チケット
  8. チケット
Choose one from above (or choose none to create a new tracker): 1
You selected バグ. Is this correct? (y/n) y
Story and task trackers are now set.
Migrating the database…/usr/local/lib/ruby/1.9.1/yaml.rb:84:in `<top (required)>’:
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:plugins:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:schema:dump
/usr/local/lib/ruby/1.9.1/yaml.rb:84:in `<top (required)>’:
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
** Invoke redmine:backlogs:fix_positions (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:backlogs:fix_positions
done!
Installation complete. Please restart Redmine.
Thank you for trying out Redmine Backlogs!
うまくいった様子。
Redmineへログインしたところ、スクラム統計という項目が表示された。
プロジェクトの設定を変えてあげることでつかえるようになるみたいです。
以上。
使い方参考URL

カテゴリー: Tech