[Ruby] Windows Ruby Installation Steps

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.