it looks like it is saying jekyll is not installed, try gem install jekyll, then jekyll build.
usually if jekyll is installed but not happy it gives you a lot more log info, in there you can see that ruby is installed in 2 places sometimes. But yours seems to be that it can’t find jekyll.
On one of my computers (Mac, Catalina) I had a similar thing yesterday. After messing around with many Brew, bundle etc. calls I removed the entire gems directory in ~. There is also a .gem, which I left. Then ran brew update; brew upgrade
went into my Jekyll directory, ran gem update bundler; bundle update; gem update
Everything downloaded and installed w/o error, and then JEKYLL_ENV=production bundle exec jekyll serve
worked as usual. Possibly some of the above are overkills :).
Best, Michael
I could not agree more… But after >½hr trying to decipher arcane error messages, googling for similar situations… Anyway, that directory was not present before I started with Jekyll :).
I’d try what he said, can’t hurt too much? at least if jekyll is the only ruby thing you use.
I’m not a mac person so not sure I can help with the permissions issue.
I would try what michael said, then if that doesn’t work i would uninstall ruby and try re-installing it. A couple people lately have said the same thing more or less as you - following the same instructions and it didn’t work on a mac.
I’d also poke around and see if ruby is installed twice - not sure how to do that, I know sometimes it ends up in /usr - look around/search in there to see if you see it?
Hi Michael - I am facing a similar issue with Ruby 2.7.0. However, I have no gems folder in my home dir, but .gems has both 2.6.0 and 2.7.0 directories, each of which has a gems folder. When you wrote “~” did you maybe mean ruby home? – Thanks Andy
Dear Andy:
With “~” I meant my user home folder. My current Ruby is also 2.7.0.
There, in my .GEM folder there was ruby and specs, and in ruby there was a 2.6.0 folder. Then there is also a ~/gems folder.
Just for the heck of it I thrashed both again, and ran the “all” selection in my makefile, which does:
brew update, brew upgrade, brew cleanup, gem update, gem update bundler, bundle update.
Rather an overkill :). This re-created both ~/.GEM and ~/gems, and Jekyll runs fine.
and that explains (1at line) why ~/gems is created here.
I am not really on top of which paths should be there… Maybe I should play around and delete the first path. Hmm… Not sure if any of this helps you.
Thanks, Michael. I uninstalled, reinstalled, everything twice over. Still getting the same errors. Will search other topics in the forum or create a new one.
Make sure ruby is setup. This works for me on Catalina
brew install ruby
Add the following to your ~/.bashrc or ~/.zshrc file. This will ensure so that your user (Homebrew) install of Ruby will be found before the system Ruby.