Install OpenSSL with Ruby for eventmachine on Windows 7 x86

ⅰ亾dé卋堺 提交于 2019-12-01 05:31:33
Kodak

I am trying to do the same thing using rubyinstaller-2.1.6.exe, DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe and OpenSSL (http://slproweb.com/download/Win32OpenSSL-1_0_2c.exe or never) in C:\OpenSSL

gem install eventmachine -- --with-ssl-dir=C:\OpenSSL

succeeds but then running thin with ssl fails in usual manner:

Encryption not available on this event-machine

You see above how to pass parameter to the native gem setup which should help you. We still need to find a set of parameters which will allow to built the thing correctly.

how to make

checking for main() in -lssl... no

a yes...?

after half a day of digging I have patched eventmachine to correctly search for ssl libs on windows so use below line in gemfile until changes are merged:

gem 'eventmachine', :github => 'krzcho/eventmachine', :branch => 'master'

before installing the bundle specify location of ssl (it must be full version of ssl with developer headers/libs)

bundle config build.eventmachine --with-ssl-dir=c:/OpenSSL

i also needed to make my own thin which is not activating another eventmachine so another line in gemfile is needed:

gem 'thin', :github => 'krzcho/thin', :branch => 'master'

unfortunately i still have problem when using non-self signed cert: thin rails server/eventmachine on windows does not work with custom certificate (case closed - wrong cert)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!