Commonmarker Gem Cannot Be Installed (Needed for Jekyll) MACos

bundler cannot install commonmarker

An alternative would be to "use Jekyll in Windows with Docker" (from James Sturtevant)

That would take advantage of the Docker image jekyll/jekyll (see its README).

export JEKYLL_VERSION=3.8
docker run --rm \
--volume="$PWD:/srv/jekyll" \
-it jekyll/jekyll:$JEKYLL_VERSION \
jekyll build

And you don't have to install ruby or wrestle with missing dependencies.

Why is my jekyll command not working anymore?

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?



Related Topics



Leave a reply



Submit