Why is my jekyll command not working anymore? Why is my jekyll command not working anymore? ruby ruby

Why is my jekyll command not working anymore?


I also don't work with Ruby, but I had a similar problem on Mac OS 10.12.6 and here is how I solved it.

This is likely caused by some disagreement between the system Ruby environment and Jekyll, and the easiest way to fix it is to create a new environment altogether.

First you should use rvm to manage your ruby versions to avoid delete the system Ruby and break your OS. After you set up rvm, run

rvm install 2.3.3

to install Ruby 2.3.3 (which is what I used). After it finished, make this the default Ruby version in your system:

rvm --default use 2.3.3

then I did the following:

gem install bundlergem install jekyllbundle install

and Jekyll worked for me again.

Hope that helps.


I'm not a mac user and not real familiar with ruby, but when I see ERROR: Failed to build gem native extension it usually has to do with not having the ruby version that includes the devkit.

As I understand it, you can get ruby with the devkit or ruby without the devkit, if there is no devkit it can't build some of the gems it needs. On a PC the devkit is required in order to install all of the jekyll dependencies.


I have the same problem with jeklly to bundle new website.

try this:

xcode-select --installgem install bundler jekyll

That's the way I don't need to sudo to install bundler jekyll.

Install the Command Line Tools:  xcode-select --installabcLabdeMacBook-Air:zeppelin-master abclab$ xcode-select --installxcode-select: note: install requested for command line developer toolsabcLabdeMacBook-Air:zeppelin-master abclab$ gem install bundler jekyllERROR:  While executing gem ... (Gem::FilePermissionError)    You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.abcLabdeMacBook-Air:zeppelin-master abclab$ bundle installIgnoring eventmachine-1.2.7 because its extensions are not built.  Try: gem pristine eventmachine --version 1.2.7Ignoring ffi-1.9.25 because its extensions are not built.  Try: gem pristine ffi --version 1.9.25Ignoring http_parser.rb-0.6.0 because its extensions are not built.  Try: gem pristine http_parser.rb --version 0.6.0Fetching gem metadata from http://rubygems.org/.................Fetching gem metadata from http://rubygems.org/..Resolving dependencies.....Using concurrent-ruby 1.1.4Following files may not be writable, so sudo is needed:  /Library/Ruby/Gems/2.3.0  /Library/Ruby/Gems/2.3.0/build_info  /Library/Ruby/Gems/2.3.0/cache  /Library/Ruby/Gems/2.3.0/doc  /Library/Ruby/Gems/2.3.0/extensions  /Library/Ruby/Gems/2.3.0/gems  /Library/Ruby/Gems/2.3.0/specificationsUsing i18n 0.9.5Using minitest 5.11.3Using thread_safe 0.3.6Using tzinfo 1.2.5Using activesupport 4.2.10Using public_suffix 2.0.5Using addressable 2.5.2Using execjs 2.7.0Using autoprefixer-rails 9.4.7Using bundler 2.0.1Using chunky_png 1.3.11Using coffee-script-source 1.11.1Using coffee-script 2.4.1Using colorator 1.1.0Using ruby-enum 0.7.2Fetching commonmarker 0.17.13Your user account isn't allowed to install to the system RubyGems.  You can cancel this installation and run:      bundle install --path vendor/bundle  to install the gems into ./vendor/bundle/, or you can enter your password  and install the bundled gems to RubyGems using sudo.  Password: Your user account isn't allowed to install to the system RubyGems.  You can cancel this installation and run:      bundle install --path vendor/bundle  to install the gems into ./vendor/bundle/, or you can enter your password  and install the bundled gems to RubyGems using sudo.  Password: Installing commonmarker 0.17.13 with native extensionsFetching multi_json 1.13.1Installing multi_json 1.13.1Fetching sass 3.4.25Installing sass 3.4.25Fetching compass-core 1.0.3Installing compass-core 1.0.3Fetching compass-import-once 1.0.5Installing compass-import-once 1.0.5Using rb-fsevent 0.10.3Fetching ffi 1.10.0Installing ffi 1.10.0 with native extensionsFetching rb-inotify 0.10.0Installing rb-inotify 0.10.0Fetching compass 1.0.3Installing compass 1.0.3Fetching dnsruby 1.61.2Installing dnsruby 1.61.2Fetching eventmachine 1.2.7Installing eventmachine 1.2.7 with native extensionsFetching http_parser.rb 0.6.0Installing http_parser.rb 0.6.0 with native extensionsUsing em-websocket 0.5.1Fetching ethon 0.12.0Installing ethon 0.12.0Fetching multipart-post 2.0.0Installing multipart-post 2.0.0Fetching faraday 0.15.4Installing faraday 0.15.4Using forwardable-extended 2.6.0Fetching gemoji 3.0.0Installing gemoji 3.0.0Fetching sawyer 0.8.1Installing sawyer 0.8.1Fetching octokit 4.13.0Installing octokit 4.13.0Fetching typhoeus 1.3.1Installing typhoeus 1.3.1Fetching github-pages-health-check 1.8.1Installing github-pages-health-check 1.8.1Using jekyll-sass-converter 1.5.2Using ruby_dep 1.5.0Using listen 3.1.5Fetching jekyll-watch 2.1.2Installing jekyll-watch 2.1.2Using kramdown 1.17.0Using liquid 4.0.0Using mercenary 0.3.6Fetching pathutil 0.16.2Installing pathutil 0.16.2Fetching rouge 2.2.1Installing rouge 2.2.1Using safe_yaml 1.0.4Fetching jekyll 3.7.4Installing jekyll 3.7.4Fetching jekyll-avatar 0.6.0Installing jekyll-avatar 0.6.0Fetching jekyll-coffeescript 1.1.1Installing jekyll-coffeescript 1.1.1Fetching jekyll-commonmark 1.2.0Installing jekyll-commonmark 1.2.0Fetching jekyll-commonmark-ghpages 0.1.5Installing jekyll-commonmark-ghpages 0.1.5Fetching jekyll-default-layout 0.1.4Installing jekyll-default-layout 0.1.4Fetching jekyll-feed 0.11.0Installing jekyll-feed 0.11.0Fetching jekyll-gist 1.5.0Installing jekyll-gist 1.5.0Fetching jekyll-github-metadata 2.9.4Installing jekyll-github-metadata 2.9.4Fetching mini_portile2 2.4.0Installing mini_portile2 2.4.0Fetching nokogiri 1.10.1Installing nokogiri 1.10.1 with native extensionsFetching html-pipeline 2.10.0Installing html-pipeline 2.10.0Fetching jekyll-mentions 1.4.1Installing jekyll-mentions 1.4.1Fetching jekyll-optional-front-matter 0.3.0Installing jekyll-optional-front-matter 0.3.0Fetching jekyll-paginate 1.1.0Installing jekyll-paginate 1.1.0Fetching jekyll-readme-index 0.2.0Installing jekyll-readme-index 0.2.0Fetching jekyll-redirect-from 0.14.0Installing jekyll-redirect-from 0.14.0Fetching jekyll-relative-links 0.5.3Installing jekyll-relative-links 0.5.3Fetching rubyzip 1.2.2Installing rubyzip 1.2.2Fetching jekyll-remote-theme 0.3.1Installing jekyll-remote-theme 0.3.1Using jekyll-seo-tag 2.5.0Fetching jekyll-sitemap 1.2.0Installing jekyll-sitemap 1.2.0Fetching jekyll-swiss 0.4.0Installing jekyll-swiss 0.4.0Fetching jekyll-theme-architect 0.1.1Installing jekyll-theme-architect 0.1.1Fetching jekyll-theme-cayman 0.1.1Installing jekyll-theme-cayman 0.1.1Fetching jekyll-theme-dinky 0.1.1Installing jekyll-theme-dinky 0.1.1Fetching jekyll-theme-hacker 0.1.1Installing jekyll-theme-hacker 0.1.1Fetching jekyll-theme-leap-day 0.1.1Installing jekyll-theme-leap-day 0.1.1Fetching jekyll-theme-merlot 0.1.1Installing jekyll-theme-merlot 0.1.1Fetching jekyll-theme-midnight 0.1.1Installing jekyll-theme-midnight 0.1.1Fetching jekyll-theme-minimal 0.1.1Installing jekyll-theme-minimal 0.1.1Fetching jekyll-theme-modernist 0.1.1Installing jekyll-theme-modernist 0.1.1Fetching jekyll-theme-primer 0.5.3Installing jekyll-theme-primer 0.5.3Fetching jekyll-theme-slate 0.1.1Installing jekyll-theme-slate 0.1.1Fetching jekyll-theme-tactile 0.1.1Installing jekyll-theme-tactile 0.1.1Fetching jekyll-theme-time-machine 0.1.1Installing jekyll-theme-time-machine 0.1.1Fetching jekyll-titles-from-headings 0.5.1Installing jekyll-titles-from-headings 0.5.1Fetching jemoji 0.10.1Installing jemoji 0.10.1Using minima 2.5.0Fetching unicode-display_width 1.4.1Installing unicode-display_width 1.4.1Fetching terminal-table 1.8.0Installing terminal-table 1.8.0Fetching github-pages 193Installing github-pages 193Fetching sass-media_query_combiner 0.0.7Installing sass-media_query_combiner 0.0.7Bundle complete! 4 Gemfile dependencies, 91 gems now installed.Use `bundle info [gemname]` to see where a bundled gem is installed.Post-install message from compass:    Compass is charityware. If you love it, please donate on our behalf at http://umdf.org/compass Thanks!Post-install message from dnsruby:Installing dnsruby...  For issues and source code: https://github.com/alexdalitz/dnsruby  For general discussion (please tell us how you use dnsruby): https://groups.google.com/forum/#!forum/dnsrubyPost-install message from html-pipeline:-------------------------------------------------Thank you for installing html-pipeline!You must bundle Filter gem dependencies.See html-pipeline README.md for more details.https://github.com/jch/html-pipeline#dependencies-------------------------------------------------