在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
ruby-2.3.1下载 >wget https://cache.ruby-china.com/pub/ruby/ruby-2.3.1.tar.gz 解压 >tar -zxvf ruby-2.3.1.tar.gz 安装 >cd ruby-2.3.1 >./configure >make&&make install >ruby -v >ln -s /usr/local/bin/ruby /usr/bin/ruby >ruby -v 下载:rubygems-2.7.7 >wget https://rubygems.org/rubygems/rubygems-2.7.7.tgz 解压 >tar -zxvf rubygems-2.7.7.tgz >cd rubygems-2.7.7 >ruby setup.rb >yum -y install zlib-devel >cd ruby-2.3.1/ext/zlib >ruby ./extconf.rb >make&&make install >cd rubygems-2.7.7 >ruby setup.rb > gem install redis >wget https://www.openssl.org/source/openssl-1.1.0h.tar.gz >tar -zxvf openssl-1.1.0h >cd openssl-1.1.0h >make&&make install >cd ruby-2.3.1/ext/openssl >ruby extconf.rb --with-openssl-include=/usr/local/servers/openssl-1.1.0h/include >gem install redis 原因是ruby 的gem被和谐了,现在淘宝的ruby工程师架设了rubygems的国内镜像。使用方法如下: > gem sources --remove https://rubygems.org/ >gem sources -a https://ruby.taobao.org/ >gem install redis
> wget https://rubygems.global.ssl.fastly.net/gems/redis-4.0.1.gem > gem install -l ./redis-4.0.1.gem |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论