解决gem install jekyll 不能运行的问题

1.如果贵公司需要设置代理的话,需要先进行:
set http_proxy=url


2.查看gem源

gem sources


3.删除默认的gem源

gem sources --remove http://rubygems.org/


4.增加taobao作为gem源
gem sources -a http://ruby.taobao.org/

5.查看当前的gem源
gem sources

6. 清空源缓存

gem sources -c

7.更新源缓存

gem sources -u

上述过程执行完毕后,就可以正常的进行的gem的安装了,此时会从taobao源下载gem文件,速度相对来说是很快的。


8. 运行

gem install jekyll
Fetching: kramdown-1.4.2.gem (100%)
Fetching: mercenary-0.3.4.gem (100%)
Fetching: safe_yaml-1.0.4.gem (100%)
Fetching: colorator-0.1.gem (100%)
Fetching: yajl-ruby-1.1.0-x86-mingw32.gem (100%)
Fetching: posix-spawn-0.3.9.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Fetching: pygments.rb-0.6.0.gem (100%)
Fetching: redcarpet-3.1.2.gem (100%)
Building native extensions.  This could take a while...
Fetching: blankslate-2.1.2.4.gem (100%)
Fetching: parslet-1.5.0.gem (100%)
Fetching: toml-0.1.1.gem (100%)
Fetching: jekyll-paginate-1.0.0.gem (100%)
Fetching: jekyll-gist-1.1.0.gem (100%)


评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值