[Ror Note] 1. install and configure the ROR Environment

Source: Internet
Author: User
Tags netbeans
    1. ExploitationRuby-VCheck whether Ruby is installed.Gem -- versionCheck whether rubygems is installed.
    2. Download Ruby installation in http://rubyinstaller.rubyforge.orgProgramWhen installing, check all the components, so that rubygems is the same as fashion.
    3. After installing Ruby, run the following command:Gem install rails -- include-dependenciesTo install rails.
    4. I use MySQL to install the database myself.
    5. Finally, we installed netbeans for Ruby.

[Problems Encountered]

    1. you cannot use the gem command to install rails: Ruby is easy to install. you can install the program online. However, when you use gem to install rails, you always report an error because you do not know if it is a network problem. The same error is reported for updates including gem. Fortunately, after installing netbeans, when using netbeans to create the ROR project, he will prompt that rails is not installed. In this case, you can install rails in netbeans. In fact, netbeans also uses the gem command to install rails, but it does not know why it can be installed and cannot be understood.
    2. you cannot upgrade GEM: after Ruby and rails are installed, if the gem version is too low when you create the ROR project in netbeans, an error is prompted, so I tried to use gem update to upgrade the gem. But there are some options for you to select the object to be upgraded. To be honest, I don't understand the options and find the problem on the Internet: to upgrade the gem itself, run the gem update -- system command.

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.