Concise tutorials for Ruby and Ruby on Rails framework Environment _ruby topics

Source: Internet
Author: User
Tags openssl readline ruby on rails

Installing Ruby with Upgrade RubyGems
tip: If you are prompted for permission issues during the installation process in the Ubuntu environment, you can use sudo make and sudo makes install.

1.Ruby Installation

wget \
&& TAR-XZVF ruby-1.9.3-p125.tar.gz \
&& cd ruby-1.9.3-p125 \
&&/configure--with-openssl-dir=/usr/lib/openssl make
& & Make Install

2.Zlib Support

CD ext/zlib
Ruby extconf.rb--with-zlib-include=/usr/include--with-zlib-lib=/usr/lib make
&& make Install

3.OPENSSL Support

CD Ext/openssl
Ruby extconf.rb make
&& make install

4.Readline Support

CD Ext/readline
Ruby extconf.rb make
&& make install

5. Upgrade RubyGems

Gem Update-system

Rails Local development environment build
install Ruby on Rails:

$ gem Install rails--no-ri--no-rdoc

In order to save installation time does not install file files, here plus--no-ri and--no-rdoc parameters. After the installation is complete, enter rails-v you should see rails 4.2.0.
Ubuntu needs to install the suite with root privileges: sudo gem install rails
The user Windows Friend unfortunately currently needs a manual nail repair action to use the Rubygem. First please download Rubygems-update-2.2.3.gem and put it under C:\:

$ gem Install--local C:\rubygems-update-2.2.3.gem
$ update_rubygems--no-ri--no-rdoc
$ gem Uninstall Rubygems-update

Then perform one more gem install rails--no-ri--no-rdoc install rails.

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