Why is my jekyll command not working anymore?












2














I've recently discovered that the jekyll command doesn't work anymore on my computer, after perfectly using it for several months.



Whenever I try to run a jekyll command, it says:





/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs':
Could not find 'jekyll' (>= 0) among 34 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/Users/Mael/.gem/ruby/2.3.0:/Library/Ruby/Gems/2.3.0:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0',
execute `gem env` for more information
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:328:in `to_spec'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
from /usr/local/bin/jekyll:22:in `<main>'


I'm on macOS Sierra (10.12.6).



Xcode is installed



I have Xcode installed on my computer:



$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates


Reinstalling Jekyll



Checking ruby version and (re)installing bundler



So I tried reinstalling Jekyll as I did the first time:



$ ruby -v
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin16]

$ sudo gem install bundler
Successfully installed bundler-1.17.1
Parsing documentation for bundler-1.17.1
Done installing documentation for bundler after 4 seconds
1 gem installed


Creating a Gemfile



I created a Gemfile which contains:



gem 'github-pages'
source 'https://rubygems.org'


Bundle install (here come the issues)



And ran, in the directory that contains the Gemfile:



$ bundle install


Here, the installation doesn't work, it says:



An error occurred while installing commonmarker (0.17.13), and Bundler cannot continue.
Make sure that `gem install commonmarker -v '0.17.13' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
github-pages was resolved to 192, which depends on
jekyll-commonmark-ghpages was resolved to 0.1.5, which depends on
jekyll-commonmark was resolved to 1.2.0, which depends on
commonmarker


So I tried the gem install commonmarker -v '0.17.13' --source 'https://rubygems.org/' command, and it says:



Building native extensions.  This could take a while...
ERROR: Error installing commonmarker:
ERROR: Failed to build gem native extension.

current directory: /Library/Ruby/Gems/2.3.0/gems/commonmarker-0.17.13/ext/commonmarker
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20181112-6105-u9aca2.rb extconf.rb
creating Makefile

current directory: /Library/Ruby/Gems/2.3.0/gems/commonmarker-0.17.13/ext/commonmarker
make "DESTDIR=" clean

current directory: /Library/Ruby/Gems/2.3.0/gems/commonmarker-0.17.13/ext/commonmarker
make "DESTDIR="
make: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin16/ruby/config.h', needed by `arena.o'. Stop.

make failed, exit code 2

Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/commonmarker-0.17.13 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-16/2.3.0/commonmarker-0.17.13/gem_make.out


I noticed that I have several jekyll and github-pages gems in my /Library/Ruby/Gems/2.0.0/gems (2.0.0) directory:



github-pages-146
github-pages-health-check-1.3.5
...
jekyll-3.4.5
jekyll-avatar-0.4.2
jekyll-coffeescript-1.0.1
[and several other jekyll directories]
...


But not in my /Library/Ruby/Gems/2.3.0/gems (2.3.0) directory! (the one which seems to be targeted by the GEM_PATH when running a jekyll command)



So, maybe I did something that changed the version or something. (I've recently installed osxfuse and sshfs (via brew), I don't know if it has anything to do with the issue?)



I don't know anything about Ruby, Gems system, and so on. Maybe the solution is obvious but I've tried several things with no success.



(Sorry it's a bit long but I wanted to be as clear as possible!)










share|improve this question





























    2














    I've recently discovered that the jekyll command doesn't work anymore on my computer, after perfectly using it for several months.



    Whenever I try to run a jekyll command, it says:





    /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs':
    Could not find 'jekyll' (>= 0) among 34 total gem(s) (Gem::LoadError)
    Checked in 'GEM_PATH=/Users/Mael/.gem/ruby/2.3.0:/Library/Ruby/Gems/2.3.0:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0',
    execute `gem env` for more information
    from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:328:in `to_spec'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
    from /usr/local/bin/jekyll:22:in `<main>'


    I'm on macOS Sierra (10.12.6).



    Xcode is installed



    I have Xcode installed on my computer:



    $ xcode-select --install
    xcode-select: error: command line tools are already installed, use "Software Update" to install updates


    Reinstalling Jekyll



    Checking ruby version and (re)installing bundler



    So I tried reinstalling Jekyll as I did the first time:



    $ ruby -v
    ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin16]

    $ sudo gem install bundler
    Successfully installed bundler-1.17.1
    Parsing documentation for bundler-1.17.1
    Done installing documentation for bundler after 4 seconds
    1 gem installed


    Creating a Gemfile



    I created a Gemfile which contains:



    gem 'github-pages'
    source 'https://rubygems.org'


    Bundle install (here come the issues)



    And ran, in the directory that contains the Gemfile:



    $ bundle install


    Here, the installation doesn't work, it says:



    An error occurred while installing commonmarker (0.17.13), and Bundler cannot continue.
    Make sure that `gem install commonmarker -v '0.17.13' --source 'https://rubygems.org/'` succeeds before bundling.

    In Gemfile:
    github-pages was resolved to 192, which depends on
    jekyll-commonmark-ghpages was resolved to 0.1.5, which depends on
    jekyll-commonmark was resolved to 1.2.0, which depends on
    commonmarker


    So I tried the gem install commonmarker -v '0.17.13' --source 'https://rubygems.org/' command, and it says:



    Building native extensions.  This could take a while...
    ERROR: Error installing commonmarker:
    ERROR: Failed to build gem native extension.

    current directory: /Library/Ruby/Gems/2.3.0/gems/commonmarker-0.17.13/ext/commonmarker
    /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20181112-6105-u9aca2.rb extconf.rb
    creating Makefile

    current directory: /Library/Ruby/Gems/2.3.0/gems/commonmarker-0.17.13/ext/commonmarker
    make "DESTDIR=" clean

    current directory: /Library/Ruby/Gems/2.3.0/gems/commonmarker-0.17.13/ext/commonmarker
    make "DESTDIR="
    make: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin16/ruby/config.h', needed by `arena.o'. Stop.

    make failed, exit code 2

    Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/commonmarker-0.17.13 for inspection.
    Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-16/2.3.0/commonmarker-0.17.13/gem_make.out


    I noticed that I have several jekyll and github-pages gems in my /Library/Ruby/Gems/2.0.0/gems (2.0.0) directory:



    github-pages-146
    github-pages-health-check-1.3.5
    ...
    jekyll-3.4.5
    jekyll-avatar-0.4.2
    jekyll-coffeescript-1.0.1
    [and several other jekyll directories]
    ...


    But not in my /Library/Ruby/Gems/2.3.0/gems (2.3.0) directory! (the one which seems to be targeted by the GEM_PATH when running a jekyll command)



    So, maybe I did something that changed the version or something. (I've recently installed osxfuse and sshfs (via brew), I don't know if it has anything to do with the issue?)



    I don't know anything about Ruby, Gems system, and so on. Maybe the solution is obvious but I've tried several things with no success.



    (Sorry it's a bit long but I wanted to be as clear as possible!)










    share|improve this question



























      2












      2








      2


      1





      I've recently discovered that the jekyll command doesn't work anymore on my computer, after perfectly using it for several months.



      Whenever I try to run a jekyll command, it says:





      /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs':
      Could not find 'jekyll' (>= 0) among 34 total gem(s) (Gem::LoadError)
      Checked in 'GEM_PATH=/Users/Mael/.gem/ruby/2.3.0:/Library/Ruby/Gems/2.3.0:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0',
      execute `gem env` for more information
      from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:328:in `to_spec'
      from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
      from /usr/local/bin/jekyll:22:in `<main>'


      I'm on macOS Sierra (10.12.6).



      Xcode is installed



      I have Xcode installed on my computer:



      $ xcode-select --install
      xcode-select: error: command line tools are already installed, use "Software Update" to install updates


      Reinstalling Jekyll



      Checking ruby version and (re)installing bundler



      So I tried reinstalling Jekyll as I did the first time:



      $ ruby -v
      ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin16]

      $ sudo gem install bundler
      Successfully installed bundler-1.17.1
      Parsing documentation for bundler-1.17.1
      Done installing documentation for bundler after 4 seconds
      1 gem installed


      Creating a Gemfile



      I created a Gemfile which contains:



      gem 'github-pages'
      source 'https://rubygems.org'


      Bundle install (here come the issues)



      And ran, in the directory that contains the Gemfile:



      $ bundle install


      Here, the installation doesn't work, it says:



      An error occurred while installing commonmarker (0.17.13), and Bundler cannot continue.
      Make sure that `gem install commonmarker -v '0.17.13' --source 'https://rubygems.org/'` succeeds before bundling.

      In Gemfile:
      github-pages was resolved to 192, which depends on
      jekyll-commonmark-ghpages was resolved to 0.1.5, which depends on
      jekyll-commonmark was resolved to 1.2.0, which depends on
      commonmarker


      So I tried the gem install commonmarker -v '0.17.13' --source 'https://rubygems.org/' command, and it says:



      Building native extensions.  This could take a while...
      ERROR: Error installing commonmarker:
      ERROR: Failed to build gem native extension.

      current directory: /Library/Ruby/Gems/2.3.0/gems/commonmarker-0.17.13/ext/commonmarker
      /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20181112-6105-u9aca2.rb extconf.rb
      creating Makefile

      current directory: /Library/Ruby/Gems/2.3.0/gems/commonmarker-0.17.13/ext/commonmarker
      make "DESTDIR=" clean

      current directory: /Library/Ruby/Gems/2.3.0/gems/commonmarker-0.17.13/ext/commonmarker
      make "DESTDIR="
      make: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin16/ruby/config.h', needed by `arena.o'. Stop.

      make failed, exit code 2

      Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/commonmarker-0.17.13 for inspection.
      Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-16/2.3.0/commonmarker-0.17.13/gem_make.out


      I noticed that I have several jekyll and github-pages gems in my /Library/Ruby/Gems/2.0.0/gems (2.0.0) directory:



      github-pages-146
      github-pages-health-check-1.3.5
      ...
      jekyll-3.4.5
      jekyll-avatar-0.4.2
      jekyll-coffeescript-1.0.1
      [and several other jekyll directories]
      ...


      But not in my /Library/Ruby/Gems/2.3.0/gems (2.3.0) directory! (the one which seems to be targeted by the GEM_PATH when running a jekyll command)



      So, maybe I did something that changed the version or something. (I've recently installed osxfuse and sshfs (via brew), I don't know if it has anything to do with the issue?)



      I don't know anything about Ruby, Gems system, and so on. Maybe the solution is obvious but I've tried several things with no success.



      (Sorry it's a bit long but I wanted to be as clear as possible!)










      share|improve this question















      I've recently discovered that the jekyll command doesn't work anymore on my computer, after perfectly using it for several months.



      Whenever I try to run a jekyll command, it says:





      /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs':
      Could not find 'jekyll' (>= 0) among 34 total gem(s) (Gem::LoadError)
      Checked in 'GEM_PATH=/Users/Mael/.gem/ruby/2.3.0:/Library/Ruby/Gems/2.3.0:/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/gems/2.3.0',
      execute `gem env` for more information
      from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:328:in `to_spec'
      from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
      from /usr/local/bin/jekyll:22:in `<main>'


      I'm on macOS Sierra (10.12.6).



      Xcode is installed



      I have Xcode installed on my computer:



      $ xcode-select --install
      xcode-select: error: command line tools are already installed, use "Software Update" to install updates


      Reinstalling Jekyll



      Checking ruby version and (re)installing bundler



      So I tried reinstalling Jekyll as I did the first time:



      $ ruby -v
      ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin16]

      $ sudo gem install bundler
      Successfully installed bundler-1.17.1
      Parsing documentation for bundler-1.17.1
      Done installing documentation for bundler after 4 seconds
      1 gem installed


      Creating a Gemfile



      I created a Gemfile which contains:



      gem 'github-pages'
      source 'https://rubygems.org'


      Bundle install (here come the issues)



      And ran, in the directory that contains the Gemfile:



      $ bundle install


      Here, the installation doesn't work, it says:



      An error occurred while installing commonmarker (0.17.13), and Bundler cannot continue.
      Make sure that `gem install commonmarker -v '0.17.13' --source 'https://rubygems.org/'` succeeds before bundling.

      In Gemfile:
      github-pages was resolved to 192, which depends on
      jekyll-commonmark-ghpages was resolved to 0.1.5, which depends on
      jekyll-commonmark was resolved to 1.2.0, which depends on
      commonmarker


      So I tried the gem install commonmarker -v '0.17.13' --source 'https://rubygems.org/' command, and it says:



      Building native extensions.  This could take a while...
      ERROR: Error installing commonmarker:
      ERROR: Failed to build gem native extension.

      current directory: /Library/Ruby/Gems/2.3.0/gems/commonmarker-0.17.13/ext/commonmarker
      /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20181112-6105-u9aca2.rb extconf.rb
      creating Makefile

      current directory: /Library/Ruby/Gems/2.3.0/gems/commonmarker-0.17.13/ext/commonmarker
      make "DESTDIR=" clean

      current directory: /Library/Ruby/Gems/2.3.0/gems/commonmarker-0.17.13/ext/commonmarker
      make "DESTDIR="
      make: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin16/ruby/config.h', needed by `arena.o'. Stop.

      make failed, exit code 2

      Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/commonmarker-0.17.13 for inspection.
      Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-16/2.3.0/commonmarker-0.17.13/gem_make.out


      I noticed that I have several jekyll and github-pages gems in my /Library/Ruby/Gems/2.0.0/gems (2.0.0) directory:



      github-pages-146
      github-pages-health-check-1.3.5
      ...
      jekyll-3.4.5
      jekyll-avatar-0.4.2
      jekyll-coffeescript-1.0.1
      [and several other jekyll directories]
      ...


      But not in my /Library/Ruby/Gems/2.3.0/gems (2.3.0) directory! (the one which seems to be targeted by the GEM_PATH when running a jekyll command)



      So, maybe I did something that changed the version or something. (I've recently installed osxfuse and sshfs (via brew), I don't know if it has anything to do with the issue?)



      I don't know anything about Ruby, Gems system, and so on. Maybe the solution is obvious but I've tried several things with no success.



      (Sorry it's a bit long but I wanted to be as clear as possible!)







      ruby rubygems jekyll github-pages






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 12 '18 at 22:09







      Glascode

















      asked Nov 12 '18 at 21:31









      GlascodeGlascode

      114




      114
























          3 Answers
          3






          active

          oldest

          votes


















          0














          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.






          share|improve this answer





















          • Thanks for your answer! But as I understand it, Ruby Devkit is only for Windows systems
            – Glascode
            Nov 18 '18 at 17:12



















          0














          I found a solution, that I think is very not clean, but works for now.



          I have two directories in /Library/Ruby/Gems/:





          • 2.0.0/


            • gems/

            • specifications/

            • ...




          • 2.3.0/


            • gems/

            • specifications/

            • ...




          The error output, when I try to run jekyll, tells that it checks (among others) in /Library/Ruby/Gems/2.3.0, but as I said in my question, there aren't any jekyll-related file in there.



          So, I manually copied all the files from /Library/Ruby/Gems/2.0.0/gems and /Library/Ruby/Gems/2.0.0/specifications and pasted them in /Library/Ruby/Gems/2.3.0/gems and /Library/Ruby/Gems/2.3.0/specifications respectively.



          I guess that the files I've copied are maybe outdated for the Ruby version I have (?), but it works perfectly.



          Maybe there is a more conventional way to make it work?






          share|improve this answer





























            0














            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 bundler
            gem install jekyll
            bundle install


            and Jekyll worked for me again.



            Hope that helps.






            share|improve this answer





















              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53270401%2fwhy-is-my-jekyll-command-not-working-anymore%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              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.






              share|improve this answer





















              • Thanks for your answer! But as I understand it, Ruby Devkit is only for Windows systems
                – Glascode
                Nov 18 '18 at 17:12
















              0














              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.






              share|improve this answer





















              • Thanks for your answer! But as I understand it, Ruby Devkit is only for Windows systems
                – Glascode
                Nov 18 '18 at 17:12














              0












              0








              0






              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.






              share|improve this answer












              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.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 17 '18 at 7:16









              RonRon

              789618




              789618












              • Thanks for your answer! But as I understand it, Ruby Devkit is only for Windows systems
                – Glascode
                Nov 18 '18 at 17:12


















              • Thanks for your answer! But as I understand it, Ruby Devkit is only for Windows systems
                – Glascode
                Nov 18 '18 at 17:12
















              Thanks for your answer! But as I understand it, Ruby Devkit is only for Windows systems
              – Glascode
              Nov 18 '18 at 17:12




              Thanks for your answer! But as I understand it, Ruby Devkit is only for Windows systems
              – Glascode
              Nov 18 '18 at 17:12













              0














              I found a solution, that I think is very not clean, but works for now.



              I have two directories in /Library/Ruby/Gems/:





              • 2.0.0/


                • gems/

                • specifications/

                • ...




              • 2.3.0/


                • gems/

                • specifications/

                • ...




              The error output, when I try to run jekyll, tells that it checks (among others) in /Library/Ruby/Gems/2.3.0, but as I said in my question, there aren't any jekyll-related file in there.



              So, I manually copied all the files from /Library/Ruby/Gems/2.0.0/gems and /Library/Ruby/Gems/2.0.0/specifications and pasted them in /Library/Ruby/Gems/2.3.0/gems and /Library/Ruby/Gems/2.3.0/specifications respectively.



              I guess that the files I've copied are maybe outdated for the Ruby version I have (?), but it works perfectly.



              Maybe there is a more conventional way to make it work?






              share|improve this answer


























                0














                I found a solution, that I think is very not clean, but works for now.



                I have two directories in /Library/Ruby/Gems/:





                • 2.0.0/


                  • gems/

                  • specifications/

                  • ...




                • 2.3.0/


                  • gems/

                  • specifications/

                  • ...




                The error output, when I try to run jekyll, tells that it checks (among others) in /Library/Ruby/Gems/2.3.0, but as I said in my question, there aren't any jekyll-related file in there.



                So, I manually copied all the files from /Library/Ruby/Gems/2.0.0/gems and /Library/Ruby/Gems/2.0.0/specifications and pasted them in /Library/Ruby/Gems/2.3.0/gems and /Library/Ruby/Gems/2.3.0/specifications respectively.



                I guess that the files I've copied are maybe outdated for the Ruby version I have (?), but it works perfectly.



                Maybe there is a more conventional way to make it work?






                share|improve this answer
























                  0












                  0








                  0






                  I found a solution, that I think is very not clean, but works for now.



                  I have two directories in /Library/Ruby/Gems/:





                  • 2.0.0/


                    • gems/

                    • specifications/

                    • ...




                  • 2.3.0/


                    • gems/

                    • specifications/

                    • ...




                  The error output, when I try to run jekyll, tells that it checks (among others) in /Library/Ruby/Gems/2.3.0, but as I said in my question, there aren't any jekyll-related file in there.



                  So, I manually copied all the files from /Library/Ruby/Gems/2.0.0/gems and /Library/Ruby/Gems/2.0.0/specifications and pasted them in /Library/Ruby/Gems/2.3.0/gems and /Library/Ruby/Gems/2.3.0/specifications respectively.



                  I guess that the files I've copied are maybe outdated for the Ruby version I have (?), but it works perfectly.



                  Maybe there is a more conventional way to make it work?






                  share|improve this answer












                  I found a solution, that I think is very not clean, but works for now.



                  I have two directories in /Library/Ruby/Gems/:





                  • 2.0.0/


                    • gems/

                    • specifications/

                    • ...




                  • 2.3.0/


                    • gems/

                    • specifications/

                    • ...




                  The error output, when I try to run jekyll, tells that it checks (among others) in /Library/Ruby/Gems/2.3.0, but as I said in my question, there aren't any jekyll-related file in there.



                  So, I manually copied all the files from /Library/Ruby/Gems/2.0.0/gems and /Library/Ruby/Gems/2.0.0/specifications and pasted them in /Library/Ruby/Gems/2.3.0/gems and /Library/Ruby/Gems/2.3.0/specifications respectively.



                  I guess that the files I've copied are maybe outdated for the Ruby version I have (?), but it works perfectly.



                  Maybe there is a more conventional way to make it work?







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 18 '18 at 17:10









                  GlascodeGlascode

                  114




                  114























                      0














                      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 bundler
                      gem install jekyll
                      bundle install


                      and Jekyll worked for me again.



                      Hope that helps.






                      share|improve this answer


























                        0














                        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 bundler
                        gem install jekyll
                        bundle install


                        and Jekyll worked for me again.



                        Hope that helps.






                        share|improve this answer
























                          0












                          0








                          0






                          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 bundler
                          gem install jekyll
                          bundle install


                          and Jekyll worked for me again.



                          Hope that helps.






                          share|improve this answer












                          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 bundler
                          gem install jekyll
                          bundle install


                          and Jekyll worked for me again.



                          Hope that helps.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Dec 6 '18 at 5:17









                          sdingsding

                          1




                          1






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53270401%2fwhy-is-my-jekyll-command-not-working-anymore%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              這個網誌中的熱門文章

                              Tangent Lines Diagram Along Smooth Curve

                              Yusuf al-Mu'taman ibn Hud

                              Zucchini