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

来源:互联网 发布:淘宝 内容质量分 优质 编辑:程序博客网 时间:2024/05/22 04:26
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%)


0 0