ばくのエンジニア日誌

技術的なメモなどを書いていきます。

RubyのDevKitをインストールする

DevKitとは?

Windows上で拡張ライブラリ付きのgemをビルドしてくれるツールのようです。
Meet the DevKit - RubyInstaller

DevKit

インストール方法

まず、こちらのページからDEVELOPMENT KITのexeファイルをダウンロードします。
ダウンロードしたら、exeファイルを実行して任意の場所に展開。
今回は、C:\devkit\に展開しました。

コマンドプロンプトを開いて以下のコマンドでinitializeします。

C:\devkit>ruby dk.rb init
[INFO] found RubyInstaller v1.8.7 at C:/Ruby187

Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.


次に、インストールします。

C:\devkit>ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/Ruby187'
[INFO] Installing 'C:/Ruby187/lib/ruby/site_ruby/devkit.rb'


これで完了。簡単でした!