Upgrade ruby to version 11.04 on ubuntu 1.9

Source: Internet
Author: User

#! /Bin/bash
Sudo apt-get-y install zlib1g-dev libssl-dev libreadline5-dev libyaml-dev build-essential bison checkinstall
Cd/tmp
Wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
Tar xvzf ruby-1.9.2-p290.tar.gz
Cd ruby-1.9.2-p290 www.2cto.com
./Configure -- prefix =/usr \
-- Program-suffix = 1.9.2 \
-- With-ruby-version = 1.9.2 \
-- Disable-install-doc
Make
Sudo checkinstall-D-y \
-- Fstrans = no \
-- Nodoc \
-- Pkgname = 'ruby1. 9.2 '\
-- Pkgversion = '1. 9.2-p290 '\
-- Provides = 'ruby '\
-- Requires = 'libbc6, libffi5, libgdbm3, libncurses5, libreadline5, openssl, libyaml-0-2, zlib1g '\
-- Maintainer = murrain@gmail.com
Sudo update-alternatives -- install/usr/bin/ruby/usr/bin/ruby1.9.2 500 \
-- Slave/usr/bin/ri/usr/bin/ri1.9.2 \
-- Slave/usr/bin/irb/usr/bin/irb1.9.2 \
-- Slave/usr/bin/gem/usr/bin/gem1.9.2 \
-- Slave/usr/bin/erb/usr/bin/erb1.9.2 \
-- Slave/usr/bin/rdoc/usr/bin/rdoc1.9.2

From: An accidental climax

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.