我正在尝试在我的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
使用Optware ipkg
将Ruby和OpenSSL成功安装到计算机上的默认/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有什么好运?
答案 0 :(得分:0)
您需要安装openssl-dev软件包:
ipkg install openssl-dev
openssl-dev包含包配置(openssl.pc)和头文件。