Unable to load the EventMachine C extension; To use the pure-ruby reactor

I was encountering this error message on Windows 10 while trying to use Jekyll’s LiveReload feature. The other answers here did not solve the problem completely, or risked having the issue re-occur the next time bundle install is run.

My solution (taken from this site) was to:

  1. Run this console command

    gem uninstall eventmachine 
    

    and choose to uninstall eventmachine-1.2.7-x64-mingw32 gems from your system.

  2. Edit Gemfile inside your project directory and add this line inside:

    gem 'eventmachine', '1.2.7', git: 'https://github.com/eventmachine/eventmachine.git', tag: 'v1.2.7'
    
  3. Run

    bundle install
    
  4. Clean up your jekyll build and cache with command

    bundle exec jekyll clean
    

You can now use the --livereload parameter without getting any issue, even if you execute bundle install in future.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)