安装的时候记得选择配置系统变量
1)改用http版本
>gem sources -r https://rubygems.org/
https://rubygems.org/ removed from sources
>gem sources -a http://rubygems.org/
https://rubygems.org/ is recommended for security over http://rubygems.org/
Do you want to add this insecure source? [yn] y
http://rubygems.org/ added to sources
>gem sources
*** CURRENT SOURCES ***
http://rubygems.org/
注意https末尾是有斜杠的,改用http时也保持一致。
网友评论