ruby - Can't Install Eventmachine On Synology DiskStation With OpenSSL -


i'm trying install eventmachine ruby gem on synology diskstation ds211 linux-based nas, installation fails while trying create makefile native extension, saying:

> gem install eventmachine --pre building native extensions.  take while... error:  error installing eventmachine:         error: failed build gem native extension.          /opt/bin/ruby extconf.rb checking main() in -lssl... *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers.  check mkmf.log file more details.  may need configuration options. 

the contents of mkmf.log:

package configuration openssl not found 

ruby , openssl both installed on machine using optware ipkg default /opt directory.

i suspect eventmachine fails due openssl being installed in unexpected directory, unclear combination of configuration options , values necessary specify correct location.

some environment details:

> ruby -v ruby 1.9.1p243 (2009-07-16 revision 24175) [arm-linux-eabi]  > openssl version openssl 0.9.8p 16 nov 2010  > openssl /opt/bin/openssl 

has else had luck installing eventmachine in environment?

you need install openssl-dev package:

ipkg install openssl-dev 

openssl-dev contains package configuration(openssl.pc) , header files.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -