可能是缺少依赖项,需要安装openssl。可以使用以下命令:
Mac OS:
$ brew install openssl
$ bundle config build.eventmachine --with-cppflags=-I/usr/local/opt/openssl/include --with-ldflags=-L/usr/local/opt/openssl/lib
$ bundle install
ubuntu:
$ sudo apt-get install -y libssl-dev
$ bundle config build.eventmachine --with-cppflags=-I/usr/include/openssl --with-ldflags=-L/usr/lib/x86_64-linux-gnu
$ bundle install
或者,可以直接使用bundle install时指定eventmachine版本,例如:
$ bundle install --without development test --with production --with-cflags='--std=c99' --force --full-index --jobs=4
然后在gemfile中指定eventmachine版本:
gem 'eventmachine', '1.0.9.1'
接着运行bundle update获取新的gem样本:
$ bundle update
下一篇:安装额外的库到EMR笔记本