解決 jekyll 在 MacOS 遇到的問題,fixed jekyll install problem

fixed jekyll install problem

安裝 jekyll 的時候遇到一個問題,

<br></br>/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb<br></br>mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h<br></br>

環境

  • MacOS

解決方法

  • 安裝 Xcode
  • 開啟 Xcode
  • Preferences > Downloads > Install Command Line Tools

接著重新安裝 jekyll

  • (sudo) gem install jekyll

就可以順利完成

CaesarChi

Web developer, focus on website fullstack, special JavaScript, and love sharing developing experience and communicate with developers. http://about.me/clonn