How to Install Ruby 2.1.1 on CentOS & RHEL 6 using RVM
2014-06-14 02:06
603 查看
Ruby is a dynamic, object-oriented programming language.We are using RVM, which stands for Ruby Version Manager, which makes easier to install Ruby on Linux platform. RVM is also helpful for managing multiple version of Ruby without conflicting,
and we can switch system to any version of Ruby using a single command.
This article will helps you to How to Install Ruby 2.1.1 on CentOS, RedHat Systems using RVM. To install other releases of Ruby use following linksd
Previous stable:
Ruby 2.0.0
Old stable:
Ruby 1.9.3
Step 1: Install Required Packages
Firstly we need to install all required packages for ruby
installation on our system using following command.
Step 2: Install RVM
Install latest stable version of RVM on your system using following command. This command will automatically download all required files and install on your system.
# curl -L get.rvm.io | bash -s stable如果访问不了get.rvm.io,可以参考如下文章:
http://blog.csdn.net/maijunjin/article/details/30645469
Step 3: Setup RVM Environment
RVM provides a shell script to setup system environment before
installing Ruby. Use below command to setup rvm environment.
# source /etc/profile.d/rvm.sh
Tutorials 10 Comments
Share this:
1
0
0
8
Ruby is a dynamic, object-oriented programming language.We are using RVM, which stands for Ruby Version Manager, which makes easier to install Ruby on Linux platform. RVM is also helpful for managing multiple version of Ruby without conflicting,
and we can switch system to any version of Ruby using a single command.
This article will helps you to How to Install Ruby 2.1.1 on CentOS, RedHat Systems using RVM. To install other releases of Ruby use following links
Previous stable:
Ruby 2.0.0
Old stable:
Ruby 1.9.3
Step 1: Install Required Packages
Firstly we need to install all required packages for ruby
installation on our system using following command.
Step 2: Install RVM
Install latest stable version of RVM on your system using following command. This command will automatically download all required files and install on your system.
Step 3: Setup RVM Environment
RVM provides a shell script to setup system environment before
installing Ruby. Use below command to setup rvm environment.
Step 4: Install Ruby
After completing setup of RVM environment, lets install Ruby language using following command.
Tutorials 10 Comments
Share this:
1
0
0
8
Ruby is a dynamic, object-oriented programming language.We are using RVM, which stands for Ruby Version Manager, which makes easier to install Ruby on Linux platform. RVM is also helpful for managing multiple version of Ruby without conflicting,
and we can switch system to any version of Ruby using a single command.
This article will helps you to How to Install Ruby 2.1.1 on CentOS, RedHat Systems using RVM. To install other releases of Ruby use following links
Previous stable:
Ruby 2.0.0
Old stable:
Ruby 1.9.3
Step 1: Install Required Packages
Firstly we need to install all required packages for ruby
installation on our system using following command.
Step 2: Install RVM
Install latest stable version of RVM on your system using following command. This command will automatically download all required files and install on your system.
Step 3: Setup RVM Environment
RVM provides a shell script to setup system environment before
installing Ruby. Use below command to setup rvm environment.
Step 4: Install Ruby
After completing setup of RVM environment, lets install Ruby language using following command.
[Sample Output]
Searching for binary rubies, this might take some time.
No binary rubies available for: centos/6/i386/ruby-2.1.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for centos.
Requirements installation successful.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.1.1, this may take a while depending on your cpu(s)...
ruby-2.1.1 - #downloading ruby-2.1.1, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11.4M 100 11.4M 0 0 271k 0 0:00:43 0:00:43 --:--:-- 319k
ruby-2.1.1 - #extracting ruby-2.1.1 to /usr/local/rvm/src/ruby-2.1.1...
ruby-2.1.1 - #applying patch /usr/local/rvm/patches/ruby/changeset_r45225.diff.
ruby-2.1.1 - #applying patch /usr/local/rvm/patches/ruby/changeset_r45240.diff.
ruby-2.1.1 - #configuring.....................................................
ruby-2.1.1 - #post-configuration.
ruby-2.1.1 - #compiling.....................................................................
ruby-2.1.1 - #installing................................
ruby-2.1.1 - #making binaries executable..
Rubygems 2.2.2 already available in installed ruby, skipping installation, use --force to reinstall.
ruby-2.1.1 - #gemset created /usr/local/rvm/gems/ruby-2.1.1@global
ruby-2.1.1 - #importing gemset /usr/local/rvm/gemsets/global.gems...........................................
ruby-2.1.1 - #generating global wrappers.........
ruby-2.1.1 - #gemset created /usr/local/rvm/gems/ruby-2.1.1
ruby-2.1.1 - #importing gemsetfile /usr/local/rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.1.1 - #generating default wrappers.........
ruby-2.1.1 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.1.1 - #complete
Ruby was built without documentation, to build it run: rvm docs generate-ri
Step 5: Setup Default Ruby Version
rvm command to setup default ruby version to be used by applications.
# rvm use 2.1.1 --default
Using /usr/local/rvm/gems/ruby-2.1.1
Step 6: Check Current Ruby Version.
Using following command you can check the current ruby version is used.
Congratulation’s you have successfully install Ruby on your system. Read our next article to
integrate Ruby with Apache web server with easy steps.
References:
1. http://rvm.io/rubies/installing
and we can switch system to any version of Ruby using a single command.
This article will helps you to How to Install Ruby 2.1.1 on CentOS, RedHat Systems using RVM. To install other releases of Ruby use following linksd
Previous stable:
Ruby 2.0.0
Old stable:
Ruby 1.9.3
Step 1: Install Required Packages
Firstly we need to install all required packages for ruby
installation on our system using following command.
# yum install gcc-c++ patch readline readline-devel zlib zlib-devel # yum install libyaml-devel libffi-devel openssl-devel make # yum install bzip2 autoconf automake libtool bison iconv-devel
Step 2: Install RVM
Install latest stable version of RVM on your system using following command. This command will automatically download all required files and install on your system.
# curl -L get.rvm.io | bash -s stable如果访问不了get.rvm.io,可以参考如下文章:
http://blog.csdn.net/maijunjin/article/details/30645469
Step 3: Setup RVM Environment
RVM provides a shell script to setup system environment before
installing Ruby. Use below command to setup rvm environment.
# source /etc/profile.d/rvm.sh
How to Install Ruby 2.1.1 on CentOS & RHEL 6 using RVM
RahulApril 15, 2014LinuxTutorials 10 Comments
Share this:
1
0
0
8
Ruby is a dynamic, object-oriented programming language.We are using RVM, which stands for Ruby Version Manager, which makes easier to install Ruby on Linux platform. RVM is also helpful for managing multiple version of Ruby without conflicting,
and we can switch system to any version of Ruby using a single command.
This article will helps you to How to Install Ruby 2.1.1 on CentOS, RedHat Systems using RVM. To install other releases of Ruby use following links
Previous stable:
Ruby 2.0.0
Old stable:
Ruby 1.9.3
Step 1: Install Required Packages
Firstly we need to install all required packages for ruby
installation on our system using following command.
# yum install gcc-c++ patch readline readline-devel zlib zlib-devel # yum install libyaml-devel libffi-devel openssl-devel make # yum install bzip2 autoconf automake libtool bison iconv-devel
Step 2: Install RVM
Install latest stable version of RVM on your system using following command. This command will automatically download all required files and install on your system.
# curl -L get.rvm.io | bash -s stable
Step 3: Setup RVM Environment
RVM provides a shell script to setup system environment before
installing Ruby. Use below command to setup rvm environment.
# source /etc/profile.d/rvm.sh
Step 4: Install Ruby
After completing setup of RVM environment, lets install Ruby language using following command.
# rvm install 2.1.1
How to Install Ruby 2.1.1 on CentOS & RHEL 6 using RVM
RahulApril 15, 2014LinuxTutorials 10 Comments
Share this:
1
0
0
8
Ruby is a dynamic, object-oriented programming language.We are using RVM, which stands for Ruby Version Manager, which makes easier to install Ruby on Linux platform. RVM is also helpful for managing multiple version of Ruby without conflicting,
and we can switch system to any version of Ruby using a single command.
This article will helps you to How to Install Ruby 2.1.1 on CentOS, RedHat Systems using RVM. To install other releases of Ruby use following links
Previous stable:
Ruby 2.0.0
Old stable:
Ruby 1.9.3
Step 1: Install Required Packages
Firstly we need to install all required packages for ruby
installation on our system using following command.
# yum install gcc-c++ patch readline readline-devel zlib zlib-devel # yum install libyaml-devel libffi-devel openssl-devel make # yum install bzip2 autoconf automake libtool bison iconv-devel
Step 2: Install RVM
Install latest stable version of RVM on your system using following command. This command will automatically download all required files and install on your system.
# curl -L get.rvm.io | bash -s stable
Step 3: Setup RVM Environment
RVM provides a shell script to setup system environment before
installing Ruby. Use below command to setup rvm environment.
# source /etc/profile.d/rvm.sh
Step 4: Install Ruby
After completing setup of RVM environment, lets install Ruby language using following command.
# rvm install 2.1.1
[Sample Output]
Searching for binary rubies, this might take some time.
No binary rubies available for: centos/6/i386/ruby-2.1.1.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for centos.
Requirements installation successful.
Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.1.1, this may take a while depending on your cpu(s)...
ruby-2.1.1 - #downloading ruby-2.1.1, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11.4M 100 11.4M 0 0 271k 0 0:00:43 0:00:43 --:--:-- 319k
ruby-2.1.1 - #extracting ruby-2.1.1 to /usr/local/rvm/src/ruby-2.1.1...
ruby-2.1.1 - #applying patch /usr/local/rvm/patches/ruby/changeset_r45225.diff.
ruby-2.1.1 - #applying patch /usr/local/rvm/patches/ruby/changeset_r45240.diff.
ruby-2.1.1 - #configuring.....................................................
ruby-2.1.1 - #post-configuration.
ruby-2.1.1 - #compiling.....................................................................
ruby-2.1.1 - #installing................................
ruby-2.1.1 - #making binaries executable..
Rubygems 2.2.2 already available in installed ruby, skipping installation, use --force to reinstall.
ruby-2.1.1 - #gemset created /usr/local/rvm/gems/ruby-2.1.1@global
ruby-2.1.1 - #importing gemset /usr/local/rvm/gemsets/global.gems...........................................
ruby-2.1.1 - #generating global wrappers.........
ruby-2.1.1 - #gemset created /usr/local/rvm/gems/ruby-2.1.1
ruby-2.1.1 - #importing gemsetfile /usr/local/rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.1.1 - #generating default wrappers.........
ruby-2.1.1 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.1.1 - #complete
Ruby was built without documentation, to build it run: rvm docs generate-ri
Step 5: Setup Default Ruby Version
rvm command to setup default ruby version to be used by applications.
# rvm use 2.1.1 --default
Using /usr/local/rvm/gems/ruby-2.1.1
Step 6: Check Current Ruby Version.
Using following command you can check the current ruby version is used.
# ruby --version ruby 2.1.1p76 (2014-02-24 revision 45161) [i686-linux]
Congratulation’s you have successfully install Ruby on your system. Read our next article to
integrate Ruby with Apache web server with easy steps.
References:
1. http://rvm.io/rubies/installing
相关文章推荐
- How to Install PHP 7 on CentOS/RHEL 7.1 & 6.7
- 转: How to Install MongoDB 3.2 on CentOS/RHEL & Fedora (简单易懂)
- (OK) How To Install Wine 1.9.9 (Development Release) on CentOS, RHEL & Fedora
- How to Install Tomcat 7.0.68 Server on CentOS/RHEL 7/6/5
- How to install 64-bit Google Chrome 28+ on 64-bit RHEL/CentOS 6 or 7
- How to Install Xcode, Homebrew, Git, RVM, Ruby & Rails on Snow Leopard, Lion, Mountain Lion, and Mavericks
- How to Install Subversion (SVN) 1.8.15 on CentOS/RHEL 7/6/5
- How to install g++ 4.7.2 & c++11 on CentOS 5.x
- How to Install VMware Tools on RHEL 7/CentOS 7
- How to Install PostgreSQL 10 on CentOS/RHEL 7/6 and Fedora 26/25
- How to install snmpwalk snmpget on CentOS 6.4 6.3 5.9 Redhat RHEL Fedora
- How to install MySQL Server 5.6 on CentOS 7 / RHEL 7
- How to Install WineHQ 1.5.27 on Fedora, CentOS and RHEL Linux Distributions
- Howto install VMware tools on Centos 6.3 or Redhat 6.3 RHEL
- How To Install Speedtest-cli On a CentOS / RHEL / Scientific / Fedora Linux To Check Internet Speed
- How to Install LAMP (Apache 2.4, MySQL 5.6, and PHP 5.4) on CentOS/RHEL 7
- How to Install PostgreSQL 9.5 on CentOS/RHEL 7/6/5 and Fedora 23/22
- How to Install Tomcat 8.0.27 on CentOS/RHEL and Ubuntu【转】
- How to Install Apache OpenOffice on RHEL/CentOS
- How to Install GUI (Gnome 3) Using CD/DVD on RHEL/CentOS 7