[Linux] redhat安装ruby2.4.0

1.下载ruby http://www.ruby-lang.org/en/downloads/,我下载的是ruby-2.4.0.tar.gz,安装在/usr/local (root)

$ tar -xvzf ruby-2.4.0.tar.gz
$ cd ruby-2.4.0

 

2.配置和编译、安装(root)

$ ./configure
$ make
$ make install

 

3.验证(应用用户即可)

$ ruby -v
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
分类上一篇:     分类下一篇:

Leave a Reply