JiFu's Wiki JiFu's Wiki
首页
  • HTML
  • JavaScript
  • NodeJS
  • Vuejs
  • 微信小程序
  • Python
  • 数据库
  • 中间件
  • 算法
  • 软件工程
  • Wordpress
  • iOS开发
  • Android开发
  • Linux
  • Windows
  • MacOS
  • Docker
  • Vim
  • VSCode
  • Office
  • 其他
  • Photoshop
  • Sketch
  • Mac
  • 游戏
关于
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
首页
  • HTML
  • JavaScript
  • NodeJS
  • Vuejs
  • 微信小程序
  • Python
  • 数据库
  • 中间件
  • 算法
  • 软件工程
  • Wordpress
  • iOS开发
  • Android开发
  • Linux
  • Windows
  • MacOS
  • Docker
  • Vim
  • VSCode
  • Office
  • 其他
  • Photoshop
  • Sketch
  • Mac
  • 游戏
关于
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
  • DevOps介绍
  • Linux

    • Linux介绍
    • Linux系统目录结构及详细说明
    • 使用SSH登录Google Cloud Platform
    • 生产服务器虚拟化环境搭建大纲
    • 服务器虚拟化环境搭建
    • Ubuntu

    • CentOS

      • Centos介绍
      • CentOS更新ruby版本
        • If you already installed ruby and ruby-devel packages with yum before, remove them first before upgrading Ruby
        • Build and install the latest Ruby from the source as follows
        • Finally, update Rubygems and Bundler
        • If you have any pre-installed gems with an older version of Ruby, update the gems
        • To use the installed Ruby/Rubygems, open a new terminal. Then check the version of installed Ruby and Rubygems as follows
      • Centos7修改启动内核,删除无用内核
      • CentOS7编译安装VIM8
      • yum提示Error: rpmdb open failed的解决方案
    • Manjaro

    • Command

    • System Service

  • MacOS

  • Windows

  • Docker

  • Vim

  • VSCode

  • Office

  • 其他

  • 运维
  • Linux
  • CentOS
JiFu
2023-09-13
目录

CentOS更新ruby版本

安装redis启动集群时发现这样的报错,

./redis-trib.rb create 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7001 127.0.0.1:7002
Creating cluster
Connecting to node 127.0.0.1:7000: [ERR] Sorry, can't connect to node 127.0.0.1:7000
1
2
3

查一些资料大概意思是ruby 和gem 版本太低,安装新版本。

# If you already installed ruby and ruby-devel packages with yum before, remove them first before upgrading Ruby

sudo yum remove ruby ruby-devel
1

# Build and install the latest Ruby from the source as follows

sudo yum groupinstall "Development Tools"
sudo yum install openssl-devel
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
tar xvfvz ruby-2.1.2.tar.gz
cd ruby-2.1.2
./configure
make
sudo make install
1
2
3
4
5
6
7
8

# Finally, update Rubygems and Bundler

sudo gem update --system
sudo gem install bundler
1
2

# If you have any pre-installed gems with an older version of Ruby, update the gems

sudo gem update
1

# To use the installed Ruby/Rubygems, open a new terminal. Then check the version of installed Ruby and Rubygems as follows

ruby --version
rubygems --version
1
2
#Centos#Ruby#update
上次更新: 2024/08/11, 01:59:03
Centos介绍
Centos7修改启动内核,删除无用内核

← Centos介绍 Centos7修改启动内核,删除无用内核→

最近更新
01
WPS快捷键
05-21
02
Disable notification "to get future google chrome updates you'll need macos 10.13 or later" on mac
05-14
03
MacOS软件推荐
04-30
更多文章>
Theme by Vdoing | Copyright © 2019-2025 Ji Fu | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式