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:
- Ruby 1.8.7 or higher
- Bundler 1.0 or higher
- g++ and libstdc++ (some systems, such as debian, may require a development package, i.e.
libstdc++-dev
) - OpenSSL is optional to provide SSL/TLS transport encryption
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++