?ここよりRubyをダウンロードする。
http://rubyforge.org/projects/rubyinstaller/
現時点だとこのファイル。
One-Click Ruby Installer 186-26 Final Release
http://rubyforge.org/frs/download.php/29263/ruby186-26.exe
?インストールをする。
その前に、ruby用フォルダを作成する。
僕の場合は、D:\iRails\newにて作成。
Ruby Installer for Windows Ruby Version 1.8.6 Installer Version 186-26 ------------------------------ RELEASE NOTES ------------------------------ Contents: Version: -------- -------- ruby-mswin32 ruby-1.8.6-p111 zlib-lib 1.2.3 ZLib 0.6.0 RubyGems 0.9.4 Rake 0.7.3 RubySrc 1.8.6-p111 OpenSSL 0.9.8d FXRuby 1.6.12 FXri 0.3.6 SciTE 1.72 OpenGL 0.50.0 GLUT 3.7.6 SWin 070409 VRuby 061102 Expat 2.0.0 XMLParser 0.6.8 Hpricot 0.6 RubyDBI 0.1.1 DBD/ODBC 0.9995 win32-api 1.0.4 windows-api 0.2.0 windows-pr 0.7.2 win32-file-stat 1.2.7 win32-file 0.5.4 win32-clipboard 0.4.3 win32-dir 0.3.2 win32-eventlog 0.4.6 win32-process 0.5.3 win32-sapi 0.1.4 win32-sound 0.4.1 log4r 1.0.5 Programming Ruby 1st Edition libfcgi 2.4.0 ruby-fcgi 0.8.7 Iconv 1.8 readline 4.3-2 PDCurses 2.60-1 GDBM 1.8.3-1 Installer-Patches 1.8.6
?Gemsのインストール
コマンドプロンプトより
C:\Documents and Settings\***user_name***>d: D:\iRails\new>ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] D:\iRails\new>gem install rails -y
D:\iRails\new>gem install rails -y Bulk updating Gem source index for: http://gems.rubyforge.org Successfully installed rails-2.3.2 Successfully installed rake-0.8.4 Successfully installed activesupport-2.3.2 Successfully installed activerecord-2.3.2 Successfully installed actionpack-2.3.2 Successfully installed actionmailer-2.3.2 Successfully installed activeresource-2.3.2 Installing ri documentation for rake-0.8.4... Installing ri documentation for activesupport-2.3.2... Installing ri documentation for activerecord-2.3.2... Installing ri documentation for actionpack-2.3.2... Installing ri documentation for actionmailer-2.3.2... Installing ri documentation for activeresource-2.3.2... Installing RDoc documentation for rake-0.8.4... Installing RDoc documentation for activesupport-2.3.2... Installing RDoc documentation for activerecord-2.3.2... Installing RDoc documentation for actionpack-2.3.2... Installing RDoc documentation for actionmailer-2.3.2... Installing RDoc documentation for activeresource-2.3.2...
Gemのバージョンアップ
D:\iRails\new>gem update --system
Gemsインストール完了
各バージョンは下記のとおり。
D:\iRails\new>ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] D:\iRails\new>rails -v Rails 2.3.2 D:\iRails\new>gem -v 1.3.1 D:\iRails\new>
?Railsテスト
D:\iRails\new>mkdir www D:\iRails\new>cd www D:\iRails\new\www>mkdir test D:\iRails\new\www>cd test D:\iRails\new\www\test>cd test D:\iRails\new\www\test>ruby script\server => Booting WEBrick => Rails 2.3.2 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2009-03-26 06:09:11] INFO WEBrick 1.3.1 [2009-03-26 06:09:11] INFO ruby 1.8.6 (2007-09-24) [i386-mswin32] [2009-03-26 06:09:12] INFO WEBrick::HTTPServer#start: pid=3456 port=3000
http://localhost:3000/
にて下記のページが表示される。
?Mysqlのインストール
Mysql5.1の場合は、
http://dev.mysql.com/downloads/mysql/5.1.html#win32
#ダウンロードの場合は、ID取得する必要あり。
http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.32-win32.msi/from/http://ftp.iij.ad.jp/pub/db/mysql/
http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.32-win32.msi/from/ftp://ftp.iij.ad.jp/pub/db/mysql/
http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.32-win32.msi/from/http://ftp.jaist.ac.jp/pub/mysql/
http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.32-win32.msi/from/ftp://ftp.jaist.ac.jp/pub/mysql/
にてダウンロードをする。l
パスワードは、passtextにテスト的に設定する。
これにてインストールは完了。
補足
MYsqlのGUItoolをインストールする。
http://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-gui-tools-5.0-r17-win32.msi/from/pick
defaultだと
localhost
root
passtext
でログインできるはず。