環境
[root@localhost example]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
[root@localhost example]# ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
[root@localhost example]# gem -v
2.5.1
[root@localhost example]# bundler -v
Bundler version 1.14.3
エラーメッセージ
An error occurred while installing eventmachine (1.2.2), and Bundler cannot continue.
Make sure that `gem install eventmachine -v '1.2.2'` succeeds before bundling.
原因
g++がインストールされてない。
対策
g++をインストール
[root@localhost example]# yum install gcc-c++