When installing jekyll on mac osx 10.7, I want to write a blog on github, you need to install jekyll. I installed it according to this document. http://jekyllrb.com/docs/home/ mac osx 10.7 has built-in ruby and gem. You can use $ sudo gem update -- system to get the next update and then $ sudo gem. when running this command, install jekyll reports an error reference $ sudo gem install jekyll Building native extensions. this cocould take a while... ERROR: Error installing jekyll: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby. fram Ework/Versions/1.8/usr/bin/ruby extconf. rb mkmf. rb can't find header files for ruby at/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby. h Gem files will remain installed in/Library/Ruby/Gems/1.8/gems/fast-stemmer-1.0.1 for inspection. results logged to/Library/Ruby/Gems/1.8/gems/fast-stemmer-1.0.1/ext/gem_make.out find the solution here: http://stackoverflow.com/questions/11462367/can T-install-jekyll-on-mac-trying-to-set-up-github-blog was originally required to install gcc so in this https://github.com/kennethreitz/osx-gcc-installer under a build of 2 into the version installed run $ sudo gem install jekyll or report ERROR: error installing jekyll: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/bin/ruby extconf. rb creating Makefile make xcrun cc-I. -I/System/Library/Frameworks/Ruby. frame Work/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0-I/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0-I. -D_XOPEN_SOURCE-D_DARWIN_C_SOURCE-fno-common-arch i386-arch x86_64-g-OS-pipe-fno-common-DENABLE_DTRACE-fno-common-pipe-fno-common-c porter. c Error: No developer directory found at/Developer. run/usr/bin/xcode-select to update Developer directory path. make: *** [porter. o] Error 1 Gem files will remain installed in/Library/Ruby/Gems/1.8/gems/fast-stemmer-1.0.2 for inspection. results logged to/Library/Ruby/Gems/1.8/gems/fast-stemmer-1.0.2/ext/gem_make.out find a solution here http://stackoverflow.com/questions/9621706/how-can-i-resolve-error-no-developer-directory-found-at-developer just run sudo xcode-select-switch/Applications/ X Code. app/Contents/Developer is OK, and then $ sudo gem install jekyll is installed successfully! Reference bogon: bin shawn $ sudo gem install jekyll Building native extensions. this cocould take a while... effecinstalled fast-stemmer-1.0.2 Fetching: classifier-1.3.3.gem (100%) effecinstalled classifier-1.3.3 Fetching: directory_watcher-1.4.1.gem (100%) Successfully installed directory_watcher-1.4.1 Fetching: syntax-1.0.0.gem (100%) Successfully installed syntax-1.0.0 Fetching: maruku-0. 6.1.gem (100%) Successfully installed maruku-0.6.1 Fetching: kramdown-1.0.2.gem (100%) Successfully installed kramdown-1.0.2 Fetching: yajl-ruby-1.1.0.gem (100%) Building native extensions. this cocould take a while... successfully installed yajl-ruby-1.1.0 Fetching: posix-spawn-0.3.6.gem (100%) Building native extensions. this cocould take a while... successfully installed posix-spawn-0.3.6 Fetching: Pygments. rb-0.5.0.gem (100%) Successfully installed pygments. rb-0.5.0 Fetching: highline-1.6.19.gem (100%) Successfully installed highline-1.6.19 Fetching: commander-4.1.3.gem (100%) Successfully installed commander-4.1.3 Fetching: safe_yaml-0.7.1.gem (100%) Successfully installed safe_yaml-0.7.1 Fetching: colorator-0.1.gem (100%) successfully installed colorator-0.1 Fetching: jekyll-1.0.3.gem (1 00%) Successfully installed jekyll-1.0.3 Installing ri documentation for fast-stemmer-1.0.2/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 280: warning: conflicting chdir during another chdir block/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 287: warning: conflicting chdir during another chdir block Installing ri limit E Ntation for classifier-1.3.3/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 280: warning: conflicting chdir during another chdir block/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 287: warning: conflicting chdir during another chdir block Installing ri documentation for directory_watcher-1.4.1/System/Library/Frameworks/ Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 280: warning: conflicting chdir during another chdir block/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 287: warning: conflicting chdir during another chdir block Installing ri documentation for syntax-1.0.0/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 280: warn Ing: conflicting chdir during another chdir block/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 287: warning: conflicting chdir during another chdir block Installing ri documentation for maruku-0.6.1 Couldn't find file to include: 'MaRuKu.txt '/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 280: warning: conflicting chdir During another chdir block/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 287: warning: conflicting chdir during another chdir block Installing ri documentation for kramdown-1.0.2/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 280: warning: conflicting chdir during another chdir block/System/Library/Frameworks/Ruby. framew Ork/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 287: warning: conflicting chdir during another chdir block Installing ri documentation for yajl-ruby-1.1.0/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 280: warning: conflicting chdir during another chdir block/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 287: warning: con Flicting chdir during another chdir block Installing ri documentation for posix-spawn-0.3.6/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 280: warning: conflicting chdir during another chdir block/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 287: warning: conflicting chdir during another chdir block Installing ri limit E Ntation for pygments. rb-0.5.0/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 280: warning: conflicting chdir during another chdir block/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 287: warning: conflicting chdir during another chdir block Installing ri documentation for highline-1.6.19/System/Library/Frameworks/Ruby. fr Amework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 280: warning: conflicting chdir during another chdir block/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 287: warning: conflicting chdir during another chdir block Installing ri documentation for commander-4.1.3/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 280: warning: Conflicting chdir during another chdir block/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 287: warning: conflicting chdir during another chdir block Installing ri documentation for safe_yaml-0.7.1/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 280: warning: conflicting chdir during another chdir block/System/Library/Fr Ameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 287: warning: conflicting chdir during another chdir block Installing ri documentation for colorator-0.1/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 280: warning: conflicting chdir during another chdir block/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 287: warning: conflicting chdir during another chdir block Installing ri documentation for jekyll-1.0.3/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 280: warning: conflicting chdir during another chdir block/System/Library/Frameworks/Ruby. framework/Versions/1.8/usr/lib/ruby/1.8/rdoc. rb: 287: warning: conflicting chdir during another chdir block ERROR: While generating documentation for jekyll-1.0.3... MESSAGE: Unhandled special: Special: type = 17, text = "<! -- More --> "... RDOC args: -- ri -- op/Library/Ruby/Gems/1.8/doc/jekyll-1.0.3/ri -- charset = UTF-8 -- quiet lib README. textile LICENSE -- title jekyll-1.0.3 Documentation (continuing with the rest of the installation) Done installing documentation for fast-stemmer, classifier, directory_watcher, syntax, maruku, kramdown, yajl-ruby, posix-spawn, pygments. rb, highline, commander, safe_yaml, colorator, jekyll after 19 seconds 14 gems installed