Windows rails2.0.2 installation tutorial

Source: Internet
Author: User
ArticleDirectory
    • 1. Download the ruby installation package
    • Ii. Run the installation package
    • 3. Install rails using gem
    • 4. Install the sqlite3-ruby package
    • 5. Download The SQLite Library
    • 6. Run rails2.0.2
Rails2.0.2 installation tutorials are certainly available on the Internet, but I am a little lazy, so my installation tutorials must have my own style, what style? Lazy!

1. Download the ruby installation package

Since I am a little lazy, I will download Ruby 1.8.6 one-click installer from http://www.ruby-lang.org/en/downloads. What is one-click installer? To put it bluntly, it contains a lot of frequently-used Ruby packages, such as rdoc, RI, and gem. I believe you are also very lazy. Click here to download it.

Ii. Run the installation package

A standard Windows EXE package is the next step after it is run. There is nothing to talk about. However, the ruby installation path may need to be modified according to your personal preferences, I personally like to install it in the E: \ Program Files directory and display it.

3. Install rails using gem

It is good to use one-click Installer. After installing the gem, we can simply run the command. Open a cmd window and directly execute gem install rails all the way to y, he will connect to the official site and then follow the dependency prompts to install several other packages.

4. Install the sqlite3-ruby package

Since rails2.0.2 uses the SQLite database by default, We need to install the sqlite3-ruby package for Ruby, the specific installation method is similar to rails. Use the command gem install sqlite3-ruby to get it done with one click. In this step, he will let you choose which version of the sqlite3-ruby to install, we just choose the new version of mswin32.

5. Download The SQLite Library

Although the SQLite library of Ruby already exists, the SQLite library of the system does not exist. Therefore, we need to go to the SQLite official website to download a dll library of SQLite.

: Http://www.sqlite.org/sqlitedll-3_5_4.zip

After the download, extract the DLL file to the bin directory of your ruby installation directory.

6. Run rails2.0.2

Find a directory, use the rails demo command to create a project named demo for rails, and create a demo directory under the current directory. What is saved in the directory is the demo project'sCode.

Use Ruby demo \ Script \ Server to start this demo project, and then use your browser to open: http: // localhost: 3000/

Check whether rails2.0.2 is displayed in front of your eyes?

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.