Windows Ruby Installation Steps
preparatory work:
1.http://rubyinstaller.org/downloads/Download select Ruby 1.9.3
2.http : //rubyinstaller.org/downloads/Download Development KIT Note version and 1 correspondence
3.http://www.sqlite.org/download.html Select Precompiled Binaries for Windowsthen download the top two:SQLite-Shell-Win32-x86-3071502.zip,SQLite-DLL-Win32-x86-3071502.zip
Installation process:
install ruby 1.9 , the installation process prompts whether to put Ruby add environment variable all hooked up
2.UnzipSQLite-Shell-Win32-x86-3071502.zip,SQLite-DLL-Win32-x86-3071502.zipPut everything in the extract.Rubyof the installation directorybindirectory inside
open cmd , execute the following command:
gem sources -- remove http Span style= "Font-family:monaco, Courier, monospace; Line-height:1.428571em; " >: //rubygems.org/
Gem Sources - a HTTP : //ruby.taobao.org/
Gem Sources - L
4.Unzip the downloadDevelopment KITto a directory such asD:\ruby-Dev-tools
cmd enter d : \ruby - dev - tools Execute the following command
Ruby DK . RB Init
Ruby DK . RB Review
Ruby DK . RB Install
Gem Install Sqlite3
5. Install rails, under cmd , execute gem install rails
6. Create a simple demo application:
first create your own working directory, mine is:D:\ruby\works, and then enterCD D:\ruby\works,command Line input:RailsNewDemo--Skip-Bundle, wait a minute, after the completion,into theDemodirectory, findGemfilefile, open, will be the first line:Source' https://rubygems.org 'modified to:Source' http://ruby.taobao.org/'
cmd go to directory, execute command bundle Install
run the application As long as you enter the last command, You will be able to run your app
demo rails server see? Your The application server started successfully, open the browser to experience it: http : //localhost:3000
This address: http://www.host900.com/index.php/articles/285/
[Ruby] Windows Ruby Installation Steps