Create one of your ror Learning Environments (Windows)

Source: Internet
Author: User

To create a learning ror environment on Windows, you must first select the packaging environment to install.

Instant rails, one click Ruby installer, and Ruby on windows? Instant rails

Is a Windows ror environment that integrates Ruby, rails, Apache, MySQL, and other components. It is recommended in Agile web development with rails. The software has been updated recently. The latest release is just instant rails 2.0 released on February 29,. It seems that there will be no new updates in the short term.

Instant rails contains a lot of internal content, so it is a little big and useless (a m compressed Package). For example, I don't like Apache and MySQL integrated into it. I 'd rather install a separate MySQL.

Currently, the supported Ruby version is 1.8.

One click Ruby Installer

Is an integrated Ruby environment on Windows. It is recommended in programming RUBY: the pragmatic programmer's guide.CommunityIt is also widely supported. The software has also encountered a pause in updates. After the one-click Ruby installer 186-27 release canditate 2 was released on February 21, 1.9, there was no new version released, not to mention support for Ruby, even Ruby 1.86-27 only supports RC. Although it was said later that "this project is not dead", it has not been officially released yet.

2009/8/25 updated and supplemented:

One click Ruby installer was updated one day after writing the above, releasing a technology preview2 version: rubyinstaller-1.9.1-p243-preview2.exe. This version supports Ruby 1.9.1 and can coexist with Ruby 1.8.

Speaking of the Ruby version, By the way:

Although Ruby has already released the 1.9.2 preview version, it is much better than 1.8, but it is still not widely promoted in the community. On the one hand, we think that 1.9 may be a transitional version earlier than 2.0, and on the other hand, there are a lot of unmaintained gems or 1.8, and there are compatibility problems in 1.9. Therefore, it is safer to use 1.8 when deploying the learning environment. Of course, if you deploy the product environment, you should first select 1.9 and the updated version if each gem can support it.

Due to the poor follow-up on ruby1.9 in the Community, although mysql-Ruby has released the MySQL driver 2.8.1 (2.7.3 and earlier versions only support ruby1.8), it can be used for Windows (mswin32) the gem on has only recently appeared (2009/8/21 ). Before that, if ruby1.9 is used on Windows, local compilation is required, which may cause many difficulties and may be difficult to succeed due to lack of environment.

Ruby on Windows

Is the ruby language Installation Package released by ruby-lang. However, the Windows version downloaded from the website is 1.9.1-P0, which is not only lower than the Linux/Mac version, but also requires to download the supported DLL, which is also troublesome and is not recommended.

One click Ruby installer and Ruby on windows are only Ruby environments. If you need rails, you also need to use gem for installation.

To sum up, the simplest way is to use instant rails. The more complicated way is to install Ruby 1.9/Ruby 1.8 (one click Ruby installer ), install the required rails through gem, and install MySQL and Apache (or other Web servers) as needed ).

Install instant rails

Installing instant rails is really rare. Just download it and decompress it to a directory (the directory path does not contain spaces.

After decompression, you can double-click instantrails.exe to display a window. You can click the "I" button in the window to open a console. Many command line operations can be executed in this window.

To keep your rails new, you can execute the following update command on the console:

Update rubygem

Gem update -- System

Update rails (all gems will be updated without rails parameters)

Gem update rails

The above update process is slow. On the one hand, it will be downloaded from gem.rubyforge.org, and on the other hand, it will generate the rdoc and RI documents. If it is faster, you can use the following parameters to skip the generation process:

Gem update rails -- no-rdoc -- no-ri

After the update, clear the old version of GEM:

Gem clean

In this way, even the ROR environment is initially ready.

Install one click Ruby Installer

Download and run the installation. After a few simple steps, you have installed Ruby.

For convenience, you can modify the system's path environment variable to include Ruby's executableProgram(In the bin directory under the ruby installation directory ). In this way, you can open a command line window to execute Ruby commands.

In the command line, install rails and MYSQL:

GemInstall Rails

GemInstall MySQL

In this way, Ruby and rails are installed.

From: http://rordiary.com/blog/

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.