Re:Start

いまはディレクターやってます

Let's start ruby on rails

rubyはちょろっと触ったけど、railsは触ってなかったのだ。

まずはインストールする。
ここが肝心でして、環境設定に苦手意識ある私にとってはかなりきつい!

http://rubyinstaller.org/downloads
取得対象:Ruby 1.9.2-p290

インストーラーを実行するだけ。
または、DLして環境変数設定するだけ。
ちなみに私はコマンドプロンプト再起動しなかったからrubyのバージョンでなくてオロオロしてもうた。
くそぅ。

成功画面

C:\Users\user>ruby -v
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]

http://www.sqlite.org/download.html
対象:sqlite-dll-win32-x86-3070900.zip
対象:sqlite-shell-win32-x86-3070900.zip

C:\Users\user>sqlite3 -version
'sqlite3' は、内部コマンドまたは外部コマンド、
操作可能なプログラムまたはバッチ ファイルとして認識されていません。

って出た。2つともDLしてなかったからや。くそぅ。

成功画面

C:\Users\user>sqlite3 -version
3.7.9 2011-11-01 00:52:41 c7c6050ef060877ebe77b41d959e9df13f8c9b5e

コマンドプロンプトにて、

gem install rails

しかーし、errorが出た。

ERROR: Error installing rails:
The 'json' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

http://memoroid.seesaa.net/article/194747396.html
↑を実行した後に、再度、コマンド実行(ここ大事)

C:\Users\user\Downloads\devkit>gem install rails
Fetching: railties-3.1.3.gem (100%)
Fetching: bundler-1.0.21.gem (100%)
Fetching: rails-3.1.3.gem (100%)
Successfully installed railties-3.1.3
Successfully installed bundler-1.0.21
Successfully installed rails-3.1.3
3 gems installed
Installing ri documentation for railties-3.1.3...
Installing ri documentation for bundler-1.0.21...
Installing ri documentation for rails-3.1.3...
Installing RDoc documentation for railties-3.1.3...
Installing RDoc documentation for bundler-1.0.21...
Installing RDoc documentation for rails-3.1.3...

C:\Users\user\Downloads\devkit>rails -v
Rails 3.1.3

無事に完了
おつかれさまでした。