Configure the Ruby environment in UbuntuLinux7.04

Source: Internet
Author: User
Article title: configure the Ruby environment in UbuntuLinux7.04. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

In fact, this environment configuration should be easily achieved through apt-get, but this is not the case, especially when the installation is successful, but a problem occurs when mongrel is installed, the system always prompts no mkmf. rb then carried a lot of errors. In fact, the problem was not apt-get ruby1.8-dev. this was a long time... So here we will summarize the installation methods.

Preparation:

Sudo apt-get install build-essential

Sudo apt-get install gcc

Sudo apt-get install g ++

Sudo apt-get install libssl0.9.8

Sudo apt-get install libssl0.9.8-dbg

Sudo apt-get install libssl-dev

Sudo apt-get install build-essential

1. install ruby

Sudo apt-get install ruby

Sudo apt-get install libzlib-ruby rdoc ri irb ruby1.8-dev

2 install gem

Sudo apt-get install libzlib-ruby

Sudo apt-get install gem

Sudo gem update -- system

3 install rails

Sudo gem install rails

4 install mongrel

Sudo gem install mongrel

Sudo gem install mongrel_cluster -- include-dependencies

5 install imagemagic

Sudo apt-get install libopenssl-ruby

Sudo apt-get install libgd-ruby1.8 libyaml-ruby libzlib-ruby

Sudo apt-get install imagemagick

6 install rmmagic

Sudo apt-get install libmagick9-dev ruby1.8-dev

Sudo gem install RMagick

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.