ruby面向对象的脚本语言

  ruby是上世纪90年代日本开发者开发的面向对象的脚本程序语言,在部署及维护上脚本的编写很实用。

https://www.ruby-lang.org/zh_cn/

https://www.ruby-lang.org/zh_cn/downloads/

https://www.ruby-lang.org/zh_cn/documentation/

https://rubygems.org/      ###gem源,管理ruby的程序包

https://gems.ruby-china.com

Ruby红宝石

ruby编译安装

https://cache.ruby-china.com/pub/ruby/     //下载地址mirrors

requirement

yum install -y gcc gcc-c++ make autoconf

yum install -y zlib-devel openssl-devel

tar jxf ruby-2.2.10.tar.bz2

compile ruby

./configure -q --prefix=/usr/local/ruby
make -s -j2
make install -s

addon zlib/openssl

[root@c-3-103 ext]# pwd
/root/ruby-2.2.10/ext
[root@c-3-103 ext]#   openssl  zlib  //目录下各自编译安装到ruby

ruby extconf.rb
make -s
make install

add-env

tee <<-'EOF' >>/etc/profile
#define ruby-env
export PATH=/usr/local/ruby/bin:$PATH
EOF

source /etc/profile

查看本机gem源及更新缓存

 

离线安装gem

https://rubygems.org/

gem install -l redis-xxx.gem    //离线安装gem 

posted @ 2020-04-22 00:24  mvpbang  阅读(336)  评论(0编辑  收藏  举报