I’ve tried to do some work on one of my Jekyll sites this morning, but when I run jekyll s from the Git repository, Jekyll just crashes with a note saying:
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html
[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.
If I run ruby -v it gives me the latest version, and this was all working a couple days ago.
Ah crap, I made the paste private instead of unlisted. Fixed now so you should be able to access it.
I’ve tried reinstalling both Ruby and Jekyll, but it didn’t work. The Mac comes with Ruby 2.6 bundled, and paths are correct, that doesn’t even work, never mind upgrading to v3 using home brew.
I’ll try and run Ruby when I’m at my machine shortly and will update.
I was afraid I’d run into same problem. When I ran jekyll serve I got: Could not find listen-3.6.0 in any of the sources
so I dared run my full update chain:
You can use bundler to install Jekyll in vendor in project gems. i.e. not a global Jekyll gem.
Then later you can use custom Ruby (I recommend 3) and add it to your PATH (it looks like that’s already set up). The system Ruby and the system gems are frozen since Catalina, so it is more flexible to have a custom Ruby that you upgrade whenever you need
Sorry no new commands to recommend but Michael’s comments above could help.
Your pastebin is public but really vague. Nothing about what failed in Ruby or Jekyll other than maybe ffi_c ?
So I managed to get this working by basically removing all of the non Mac bundled version of Ruby and Jekyll. So:
brew uninstall ruby
Then I followed @michaelbach solution above to update everything and cleanup brew. I then re-installed using the Mac bundled 2.6 instead of the latest 3.0.
When I then ran jekyll s from my Jekyll repository, I got zsh: command not found: jekyll. So I had to change the install command to the following:
sudo gem install bundler jekyll
That seemed to have worked and I can sun the local server now. HOWEVER Jekyll recommends that global gem installs shouldn’t happen, so I’m not really happy with this solution, but it’s working.
If anyone has a solution for the command not found issue, I’m all ears.
also make sure the bin is near the start of the PATH as it is evaluated left to right.
Did you reload you shell to get the path update? Are you definitely using ZSH and not Bash?
Note also when you do use Ruby 3, it doesn’t use .gem location anymore.
Yeah using sudo will install to /usr/.../
Also can I suggest not installing Jekyll using gem install ? Just have Bundler at the user level and check is it is in ~/.gem etc. And then use Gemfile and Bundler to install Jekyll per project for more robustness across projects and machines, with appropriate Jekyll 3.9, Jekyll 4.1, 4.2 etc. as needed
This error sounds like it could have to do with the project you are working on and not Jekyll itself. You might want to create a new thread, share your repo if publicly available, and perhaps solve the problem.
Could you try the basic steps to create a new default site using Jekyll just to make sure it’s not coffee related?