ubyのインストール
本手順ではPassengerの開発元であるPhusionが開発しているRuby Enterprise Editionをインストールします。
Ruby Enterprise EditionはRuby 1.8.7をベースに変更を加えたもので、オリジナルのRubyと比較すると、Passenger上でRuby on Railsアプリケーションを実行する際にメモリ使用量を減らせるというメリットがあります。
1. Ruby Enterprise Editionのダウンロード
http://www.rubyenterpriseedition.com/download.html
2. インストーラ実行
ダウンロードしたtarballを展開して installer を実行します。以下のコマンド例においてinstallerが格納されているディレクトリはRuby Enterprise Editionのバージョンによって変わります。適宜読み替えて実行してください。
# ./ruby-enterprise-1.8.7-2011.03/installer --dont-install-useful-gems --no-dev-docsインストーラーオプション:
--dont-install-useful-gems後の手順でRedmineに必要なgemパッケージを手動でインストールするのでここではインストールしません --no-dev-docs不要なので開発者向けドキュメントをインストールしません インストーラを実行すると、Ruby Enterprise Editionをビルドするのに必要なソフトウェアがOSにインストールされているか確認が行われます。不足しているものがあるとエラーが表示され先に進 めません。前述の「必要なパッケージのインストール」を実行していれば、エラーが発生することなく先に進めるはずです。
Checking for required software... * C compiler... found at /usr/bin/gcc * C++ compiler... found at /usr/bin/g++ * The 'make' tool... found at /usr/bin/make * The 'patch' tool... found at /usr/bin/patch * Zlib development headers... found * OpenSSL development headers... found * GNU Readline development headers... found依存するソフトウェアのチェックが終わると、インストール先(Target Directory)の入力を求められます。デフォルトのインストール先は”/opt/ruby-enterprise-1.8.7-2011.03 /“などですが、”/usr/local/”と入力すれば、オリジナルのRubyをビルドしたときと同様に/usr/local/以下にインストールされ ます。
Target directory Where would you like to install Ruby Enterprise Edition to? (All Ruby Enterprise Edition files will be put inside that directory.) [/opt/ruby-enterprise-1.8.7-2011.03] : /usr/local/
Redmine 1.1をCentOS5.5にインストールする手順 | Redmine.JP Blog
Ruby-Enterprizeはお勧めです。

