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 :).
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
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.