RubyOnRails installation in Debian

Source: Internet
Author: User
Tags ruby on rails
RubyOnRails installation under Debian-Linux Release Technology-Debian information, the following is a detailed description. Upgrade Debian first. If the new version you just installed is unnecessary.

Aptitude update
Aptitude upgrade

Then, install the complete Ruby. Note that you may not need it.

Aptitude install 'apt-cache search-n ruby1.8 | cut-d'-f 1' irb1.8 rdoc1.8 ri1.8
Aptitude install rubygems

When you are using Ruby On Rails, you can ignore the command in the previous step and execute this installation gem.

Aptitude install rubygems build-essential

Finally, install Rails.

Gem install rails? Include-dependencies

If you cannot execute the gem command, edit/etc/bash. bashrc, add/var/lib/gems/1.8/bin in the Path section, or directly execute

PATH = $ PATH:/var/lib/gems/1.8/bin

Done.
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.