InstallRailsWindows » 履歴 » バージョン 52
Yuumi Yoshida, 2012-03-11 15:46
| 1 | 32 | Yuumi Yoshida | h1. Ruby on Rails 開発環境の作り方(Windows) |
|---|---|---|---|
| 2 | 1 | Yuumi Yoshida | |
| 3 | 25 | Yuumi Yoshida | |
| 4 | 27 | Yuumi Yoshida | WindowsPC で Ruby on Rails の開発できる環境を作ってみましょう。 |
| 5 | 4 | Yuumi Yoshida | 初心者にもインストールが簡単なソフトを選んでみました。 |
| 6 | 1 | Yuumi Yoshida | |
| 7 | |||
| 8 | 41 | Yuumi Yoshida | h2. WindowsPCの仕様 |
| 9 | |||
| 10 | 51 | Yuumi Yoshida | * メモリー : 1Gbyte以上 |
| 11 | * ディスク空き容量: 500Mbyte以上 |
||
| 12 | 41 | Yuumi Yoshida | * CPUの性能: 制限はありませんが、ここ3年以内に作られたPCが望ましい |
| 13 | 44 | Yuumi Yoshida | * OS: Windows XP 以降 |
| 14 | 41 | Yuumi Yoshida | |
| 15 | 25 | Yuumi Yoshida | h2. インストール |
| 16 | 1 | Yuumi Yoshida | |
| 17 | |||
| 18 | 25 | Yuumi Yoshida | |
| 19 | 52 | Yuumi Yoshida | h3. 1. Ruby |
| 20 | 25 | Yuumi Yoshida | |
| 21 | 1 | Yuumi Yoshida | |
| 22 | 52 | Yuumi Yoshida | http://rubyinstaller.org/ のDownload ページから "Ruby 1.9.3-p125":http://rubyforge.org/frs/download.php/75848/rubyinstaller-1.9.3-p125.exe をダウンロドし、実行して下さい。 |
| 23 | 25 | Yuumi Yoshida | |
| 24 | 51 | Yuumi Yoshida | # 最初の画面でライセンスに同意し |
| 25 | # 次の画面でインストル先とオプションを選択します。 |
||
| 26 | ** インストル先は C:\Ruby193 や D:\Ruby193 にして下さい。 |
||
| 27 | 1 | Yuumi Yoshida | ** Add Ruby excutables to your PATH をチェックして下さい |
| 28 | !rubyInstaller.png! |
||
| 29 | 52 | Yuumi Yoshida | # Installボタンを押す |
| 30 | 1 | Yuumi Yoshida | |
| 31 | 52 | Yuumi Yoshida | h3. 2. DEVELOPMENT KIT |
| 32 | 1 | Yuumi Yoshida | |
| 33 | 52 | Yuumi Yoshida | OSに依存したライブラリーをWindows環境にインストールする為のツールもインストールします |
| 34 | 1 | Yuumi Yoshida | |
| 35 | 52 | Yuumi Yoshida | http://rubyinstaller.org/ のDownload ページから "DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe":https://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe をダウンロドし、実行して下さい。 |
| 36 | 1 | Yuumi Yoshida | |
| 37 | 52 | Yuumi Yoshida | ファイルを展開するディレクトリーを入力するダイアログが表示されるので、1で指定いたRubyのインストール先 (例 C:\Ruby193) を指定して下さい。 |
| 38 | 1 | Yuumi Yoshida | |
| 39 | 25 | Yuumi Yoshida | |
| 40 | |||
| 41 | 52 | Yuumi Yoshida | h3. 3. Rubyの確認とDEVELOPMENT KITのインストール作業 |
| 42 | 49 | Yuumi Yoshida | |
| 43 | 52 | Yuumi Yoshida | コマンドプロンプトを起動し ruby -v を実行し、以下のように表示されればOKです。 |
| 44 | <pre> |
||
| 45 | C:\>ruby -v |
||
| 46 | ruby 1.9.3p125 (2012-02-16) [i386-mingw32] |
||
| 47 | </pre> |
||
| 48 | 1 | Yuumi Yoshida | |
| 49 | 52 | Yuumi Yoshida | 次に、DEVELOPMENT KITのインストール作業をコマンドプロンプトで行います。 |
| 50 | 25 | Yuumi Yoshida | <pre> |
| 51 | 52 | Yuumi Yoshida | C:\> cd \Ruby193\DevKit |
| 52 | C:\Ruby193\DevKit> ruby dk.rb init |
||
| 53 | [INFO] found RubyInstaller v1.9.3 at C:/Ruby193 |
||
| 54 | ..... |
||
| 55 | C:\Ruby193\DevKit> ruby dk.rb install |
||
| 56 | [INFO] Updating convenience notice gem override for 'C:/Ruby193' |
||
| 57 | ... |
||
| 58 | </pre> |
||
| 59 | 33 | Yuumi Yoshida | |
| 60 | 52 | Yuumi Yoshida | |
| 61 | 1 | Yuumi Yoshida | </pre> |
| 62 | 33 | Yuumi Yoshida | |
| 63 | |||
| 64 | 52 | Yuumi Yoshida | h3. 3. Ruby on Rails のインストール(1) |
| 65 | 1 | Yuumi Yoshida | |
| 66 | 52 | Yuumi Yoshida | 引き続きコマンドプロンプトで、gemコマンドの更新を行います。 |
| 67 | 1 | Yuumi Yoshida | |
| 68 | 33 | Yuumi Yoshida | <pre> |
| 69 | 52 | Yuumi Yoshida | C:\>gem update --system --no-ri --no-rdoc |
| 70 | Updating rubygems-update |
||
| 71 | .... |
||
| 72 | 1 | Yuumi Yoshida | </pre> |
| 73 | 33 | Yuumi Yoshida | |
| 74 | 52 | Yuumi Yoshida | 次に Ruby on Railsをインストールします。 ある程度時間がかかります。 |
| 75 | 2 | Yuumi Yoshida | |
| 76 | 33 | Yuumi Yoshida | <pre> |
| 77 | 52 | Yuumi Yoshida | C:\>gem install rails --no-ri --no-rdoc |
| 78 | ... |
||
| 79 | 1 | Yuumi Yoshida | </pre> |
| 80 | |||
| 81 | 47 | Yuumi Yoshida | |
| 82 | 52 | Yuumi Yoshida | Ruby on Rails の確認、以下のように表示されればOKです。 |
| 83 | 39 | Yuumi Yoshida | <pre> |
| 84 | 52 | Yuumi Yoshida | C:\Users\yy\RailsWorks>rails -v |
| 85 | Rails 3.2.2 |
||
| 86 | 25 | Yuumi Yoshida | </pre> |
| 87 | 39 | Yuumi Yoshida | |
| 88 | 25 | Yuumi Yoshida | |
| 89 | 3 | Yuumi Yoshida | h2. その他の準備 |
| 90 | 6 | Yuumi Yoshida | |
| 91 | 48 | Yuumi Yoshida | |
| 92 | 25 | Yuumi Yoshida | Ruby (Ruby on Rails) の開発はWindowsの 「メモ帳」でも出来ますが、Notepad++ や サクラエディタ、秀丸(シェアウェア)などのプログラミング向きのエデイタ ソフトをインストールしておくと良いと思います。 |
| 93 | |||
| 94 | |||
| 95 | 24 | Yuumi Yoshida | h2. 質問 |
| 96 | 6 | Yuumi Yoshida | |
| 97 | 1 | Yuumi Yoshida | |
| 98 | ご質問のある方は、"私のBlog":http://d.hatena.ne.jp/yuum3/comment?date=20080607#c にコメント願います。 |