我正在尝试在我的 Synology DiskStation DS211 基于 Linux 的 NAS 上安装 EventMachine ruby gem,但在尝试为本机扩展创建 Makefile 时安装失败,说:
> gem install eventmachine --pre Building native extensions. This could take a while... ERROR: Error installing eventmachine: ERROR: Failed to build gem native extension. /opt/bin/ruby extconf.rb checking for main() in -lssl... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
mkmf.log 的内容:
package configuration for openssl is not found
Ruby 和 OpenSSL 均已成功安装在使用 Optwareipkg
到默认/opt
目录的机器上。
我怀疑由于 OpenSSL 安装在意外目录中而导致 EventMachine 失败,但尚不清楚指定正确位置所需的配置选项和值的组合。
一些环境细节:
> ruby -v ruby 1.9.1p243 (2009-07-16 revision 24175) [arm-linux-eabi] > openssl version OpenSSL 0.9.8p 16 Nov 2010 > which openssl /opt/bin/openssl
有没有其他人在这种环境中安装 EventMachine 有运气?