Mac 升级到 macOS High Sierra后,Jekyll无法正常启动:

异常信息:

$jekyll -v
-bash: /usr/local/bin/jekyll: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory

解决方案:

curl -sSL https://get.rvm.io | bash -s stable
source /Users/dinozhang/.rvm/scripts/rvm

rvm install 2.5.1
sudo gem install jekyll bundler