Win7 Installing Ruby on Rails

Source: Internet
Author: User
Tags ruby on rails



Development machine: Win7 flagship-64-bit


1, install ruby, download Rubyinstaller-2.0.0-p451.exe


: http://rubyinstaller.org/downloads/


1.1 Select the installation directory: (for example: D:\Ruby200)


1.2 During installation: All options need to be checked (install plugin, execute RB extension file)


Ruby-v Display version number indicates normal


Gem-v


2, install Devkit, download Devkit-mingw64-32-4.7.2-20130224-1151-sfx.exe



2.1 Extract to a directory (for example: D:\ DevKit ) 2.2 Run cmd execute ruby dk.rb init  and Ruby dk.rb install command in the Ruby-kit  directory 3  Replace the Rubygem library address (very important because there is a line problem in the extranet, not only slow updates, but also cause the update to fail) 3.1 Gem sources--remove https://rubygems.org/ 3.2 Gem Sources-a http://ruby.taobao.org/



4, install Rails


 Note: Download the latest version to run the gem install rails directly (the latest version is 4.1.4), each version of the query version can go to http://rubygems.org/to search.



Release Rollup:


C:\users\administrator>ruby-v Ruby 2.0.0p451 (2014-02-24) [I386-mingw32]



C:\users\administrator>gem-v 2.0.14



C:\users\administrator>rails-v Rails 3.2.19



5 test environment Rails Create a new directory 5.1. Create a new working directory (E:\rubyWorkspace) and enter the working directory in cmd 5.2. Create a new project run rails new TestWeb



5.3.2 Executing ruby Rails server Test: Access to http://localhost:3000 after successful startup see the Welcome screen, that means it's successful.



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.