jessesquires / jessesquires.com

Turing complete with a stack of 0xdeadbeef
https://www.jessesquires.com
Other
46 stars 19 forks source link

Fix: eventmachine gem failed to build on macOS Ventura with Ruby 2.7.6 #178

Closed MeilinaR closed 1 year ago

MeilinaR commented 1 year ago

Hi! Thanks for providing this tutorial to fix this bug. I've got the exact same error as you

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

In Gemfile:
  jekyll-archives was resolved to 2.2.1, which depends on
    jekyll was resolved to 4.3.2, which depends on
      em-websocket was resolved to 0.5.3, which depends on
        eventmachine

I tried to download eventmachine through the command you provided. Eventmachine managed to build, however when running bundle install and consequently bundle exec jekyll serve it says that Eventmachine cannot be found for some reason, even though I just downloaded it. Do you have any tips/suggestions how to solve this?

jessesquires commented 1 year ago

hey @MeilinaR ! 👋🏼 I'm glad this helped.

it says that Eventmachine cannot be found for some reason, even though I just downloaded it. Do you have any tips/suggestions how to solve this?

Hm... I'm not really sure, unfortunately. Does bundle install still fail?

Are you using something like rbenv to manage ruby versions? Maybe you installed eventmachine in a different ruby version from where you installed jekyll?

github-actions[bot] commented 1 year ago

Thanks so much for leaving feedback about this blog post! After 2 weeks of inactivity these issues are automatically closed, but feel free to continue the discussion!