file_columnのインストール

「file_column」はRuby on Railsからファイルのアップロードや加工を行うプラグインだ。
ここを参考に「file_column」をインストール。
RMagickというImageMagickを使用して画像の加工処理を行うRuby用のInterfaceが必要とのことでRubyForgeから「RMagick-2.7.1-ImageMagick-6.4.5-3-Q8.zip」ダウンロード。
RMagickが使用する「ImageMagick」も同梱されている。

「RMagick-2.7.1-ImageMagick-6.4.5-3-Q8.zip」を解凍してできる「ImageMagick-6.4.5-3-Q8-windows-dll.exe」でImageMagickをインストール。
"Update executable search path."にチェックを入れること。(README.html参照)

RMagickのインストールは、コマンドプロンプトから解凍したディレクトリに移動して下記を実行。

D:\>gem install rmagick --local
Successfully installed rmagick-2.7.1-x86-mswin32
1 gem installed

と表示されればインストール成功。

最後にfile_columnのインストール。
対象プロジェクトにて下記を実行。

D:\>ruby script/plugin install http://opensvn.csie.org/rails_file_column/plugins/file_column/trunk
 ./CHANGELOG
 ./README
 ./Rakefile
 ./TODO
 ./init.rb
 ./lib/file_column.rb
 ./lib/file_column_helper.rb
 ./lib/file_compat.rb
 ./lib/magick_file_column.rb
 ./lib/rails_file_column.rb
 ./lib/test_case.rb
 ./lib/validations.rb
 ./test/abstract_unit.rb
 ./test/connection.rb
 ./test/file_column_helper_test.rb
 ./test/file_column_test.rb
 ./test/fixtures/entry.rb
 ./test/fixtures/invalid-image.jpg
 ./test/fixtures/kerb.jpg
 ./test/fixtures/mysql.sql
 ./test/fixtures/schema.rb
 ./test/fixtures/skanthak.png
 ./test/magick_test.rb
 ./test/magick_view_only_test.rb
D:\>

今日はここまで。