# 查看已安装的镜像
gem sources -l
终端输出:https://rubygems.org/
# 删除并安装国内镜像
gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
#安装后再查看
gem sources -l
终端输出:https://gems.ruby-china.com
# 卸载 rubyGems
gem uninstall ffi
# 安装最新的 rubyGems
gem install ffi