2012年3月21日水曜日

Redmine 1.3.2 インストールのちょっとした罠 at さくらのVPS



Redmineには、日頃からよくお世話になっていますが、
インストールをすることってほとんどありませんよね。
でも、たまにインストールすると軽い罠が待っていますw

今回はちょっとした罠をメモしておきます。
次のバージョンの時にも別の罠があるとは思いますが、その時はその時で。

ちなみに、こちらのドキュメントを見てインストールしていますが、
きめ細やかな手順ですよね。すごく助かりますね。


Redmine 1.3をCentOS 6にインストールする手順
http://blog.redmine.jp/articles/redmine-1_3-installation_centos/


次の内容は、「さくらのVPS 512」のCentOS 6.2環境でインストールしました。


  • Apache HTTP Serverが見つからない

  • 初期設定とデータベースのテーブル作成の警告メッセージ

  • メールが送信されない at さくらVPS


Apache HTTP Serverが見つからない


Apache httpdをyumからインストールしている場合は、この問題おこりませんが、
ソースコードからビルドしている場合は、たぶんこの問題に遭遇します。

次のコマンドを実行してもapahceが見つからないので中断するのですが、
passenger-install-apache2-module

この場合は、次の2つの環境変数で場所を教えてあげればいいようです。


export APXS2=/usr/local/apache2/bin/apxs
export PATH=/usr/local/apache2/bin:$PATH
passenger-install-apache2-module
※Apache httpdのインストール先に合わせ変更してください。



初期設定とデータベースのテーブル作成の警告メッセージ


Redmineの初期設定とデータベースのテーブル作成の作業で、次のコマンドを実行します。
rake generate_session_store

下記のメッセージが出力され最後に「Please install RDoc 2.4.2+ to generate documentation.」と言われますが、
Redmineインストールの際は、このメッセージの対応はNGのようです。


/usr/local/ruby-enterprise-1.8.7-2012.02/bin/rake generate_session_store
(in /[インストールディレクトリ]/redmine-1.3.2)
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /[インストールディレクトリ]/redmine-1.3.2/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21.
NOTE: Gem::SourceIndex#initialize is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#initialize called from /[インストールディレクトリ]/redmine-1.3.2/config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:100.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/local/ruby-enterprise-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/local/ruby-enterprise-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/local/ruby-enterprise-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/local/ruby-enterprise-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/local/ruby-enterprise-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/local/ruby-enterprise-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/local/ruby-enterprise-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/local/ruby-enterprise-1.8.7-2012.02/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:91.
Please install RDoc 2.4.2+ to generate documentation.


対応した方法ですが、gemをダウングレードしました。


gem update --system 1.6.2


これでコマンドが無事通りました。

メールが送信されない at さくらのVPS(2週間おためし無料期間中)


Redmineからメールが送信されないのですが、
「さくらのVPS」の2週間おためし無料期間中は、25番ポートが閉じられているようです。
まあ、お試しなので別の方法にしてみます。
http://sakura.cb-faq.com/faq/public/app/servlet/qadoc?QID=001401

ちなみに「さくらのVPS 512」思ってたよりいいですね。
クラウドもすごく良くなることを願います。




0 件のコメント:

コメントを投稿