Mac下配置Jekyll环境

2015-08-31

1
2
3
4
$ gem source -r https://rubygems.org/
$ gem source -a http://ruby.taobao.org/
$ sudo gem install jekyll
$ sudo jekyll serve

$ gem install jekyll
ERROR:  Could not find a valid gem 'jekyll' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Operation timed out - connect(2) (https://rubygems.org/latest_specs.4.8.gz)
$ gem source -r https://rubygems.org/
$ gem source -a http://ruby.taobao.org/

$ gem install jekyll
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
$ sudo gem install jekyll

$ jekyll serve
Configuration file: ~/zhso.net/_config.yml
            Source: ~/zhso.net
       Destination: ~/zhso.net/_site
      Generating... done.
error: Permission denied - bind(2). Use --trace to view backtrace
$ sudo jekyll serve

s@zhso.netPay