123456789_123456789_123456789_123456789_123456789_
git clone https://github.com/eventmachine/eventmachine.git
cd eventmachine
bundle install --path vendor/bundle
bundle exec rake compile

bundle exec irb

EventMachine may require the following dependencies, depending on your specific usage:

Alpine

When building on the alpine base Docker image (e.g. ruby:alpine) you need to install the following packages:

apk add --no-cache g++ musl-dev make

To run it, you need to make sure libstdc++ is installed.

apk add --no-cache libstdc++