Ruby下载地址: [root@rhel64 ~]# yum -y install gcc make gcc-c++ [root@rhel64 ~]# wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.4.tar.gz [root@rhel64 ~]#tar -xzvf ruby-2.1.4.tar.gz [root@rhel64 ~]# cd ruby-2.1.4 [root@rhel64 ruby-2.1.4]# ./configure --enable-pthread --prefix=/usr/local/ruby [root@rhel64 ruby-2.1.4]# make && make install [root@rhel64 ruby-2.1.4]# cat << EOF >> /etc/profile export PATH=/usr/local/ruby/bin:$PATH EOF [root@rhel64 ruby-2.1.4]# source /etc/profile [root@rhel64 ruby-2.1.4]# ruby -v ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-linux] [root@rhel64 ruby-2.1.4]# |