{"action":"created","issue":{"url":"https://api.github.com/repos/eventmachine/eventmachine/issues/739","repository_url":"https://api.github.com/repos/eventmachine/eventmachine","labels_url":"https://api.github.com/repos/eventmachine/eventmachine/issues/739/labels{/name}","comments_url":"https://api.github.com/repos/eventmachine/eventmachine/issues/739/comments","events_url":"https://api.github.com/repos/eventmachine/eventmachine/issues/739/events","html_url":"https://github.com/eventmachine/eventmachine/issues/739","id":185734488,"number":739,"title":"Eventmachine, OpenSSL, Windows, and Bundler","user":{"login":"awood","id":17975,"avatar_url":"https://avatars.githubusercontent.com/u/17975?v=3","gravatar_id":"","url":"https://api.github.com/users/awood","html_url":"https://github.com/awood","followers_url":"https://api.github.com/users/awood/followers","following_url":"https://api.github.com/users/awood/following{/other_user}","gists_url":"https://api.github.com/users/awood/gists{/gist_id}","starred_url":"https://api.github.com/users/awood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awood/subscriptions","organizations_url":"https://api.github.com/users/awood/orgs","repos_url":"https://api.github.com/users/awood/repos","events_url":"https://api.github.com/users/awood/events{/privacy}","received_events_url":"https://api.github.com/users/awood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-27T17:39:05Z","updated_at":"2016-10-27T18:08:05Z","closed_at":null,"body":"I'm working on a [feature](https://github.com/jekyll/jekyll/pull/5142) for the Jekyll static site generator.  I'm using EventMachine to run a WebSockets server (em-websockets).  Unfortunately, I'm having an issue with eventmachine's native extensions on Windows in the Jekyll CI environment (provided by Appveyor).  I'm getting an error, \"Encryption not available on this event-machine\".  I've read https://github.com/eventmachine/eventmachine/wiki/Building-EventMachine and I believe I'm linking to OpenSSL and getting the native extensions compiled but I am still seeing the same error.\r\n\r\nAfter a `bundle install`, I'm running `bundle pristine` and then `bundle exec gem install` with the appropriate flags as mentioned in the wiki article I linked earlier.  (Using `bundler config` to add the arguments did not seem to make an difference at all for me.)  In addition to the log reporting that the native extensions are built, I can also see an `ssl.o` file in the `ext` directory of the evenmachine gem.\r\n\r\n```\r\nbundle exec gem pristine eventmachine\r\nRestoring gems to pristine condition...\r\nRestored eventmachine-1.2.0.1-x86-mingw32\r\nbundle exec gem install eventmachine --platform ruby -- --with-ssl-dir=C:/OpenSSL-%OPENSSL_ARCH%\r\nTemporarily enhancing PATH to include DevKit...\r\nBuilding native extensions with: '--with-ssl-dir=C:/OpenSSL-Win32'\r\nThis could take a while...\r\nSuccessfully installed eventmachine-1.2.0.1\r\nParsing documentation for eventmachine-1.2.0.1\r\nInstalling ri documentation for eventmachine-1.2.0.1\r\nDone installing documentation for eventmachine after 7 seconds\r\n1 gem installed\r\nruby --version\r\nruby 2.3.1p112 (2016-04-26 revision 54768) [i386-mingw32]\r\ngem --version\r\n2.6.7\r\nbundler --version\r\nBundler version 1.13.3\r\nbash ./script/cibuild\r\n+ ruby -S bundle exec rake TESTOPTS=--profile test\r\nC:/Ruby23/bin/ruby.exe -w -I\"lib;lib;test\" -I\"C:/projects/jekyll/vendor/bundle/ruby/2.3.0/gems/rake-11.3.0/lib\" \"C:/projects/jekyll/vendor/bundle/ruby/2.3.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb\" \"test/**/test_*.rb\" --profile\r\nterminate called after throwing an instance of 'std::runtime_error'\r\nwhat(): Encryption not available on this event-machine\r\nrake aborted!\r\nCommand failed with status (3): [ruby -w -I\"lib;lib;test\" -I\"C:/projects/jekyll/vendor/bundle/ruby/2.3.0/gems/rake-11.3.0/lib\" \"C:/projects/jekyll/vendor/bundle/ruby/2.3.0/gems/rake-11.3.0/lib/rake/rake_test_loader.rb\" \"test/**/test_*.rb\" --profile]\r\n```\r\n\r\nPart of the problem is that I'm a bit limited by the fact this is a CI environment so if I install via gem, the resultant installation isn't placed in the vendor directory and like I mentioned before specifying the `--with-ssl-directory` option via bundle config did not seem to work at all.\r\n\r\nIf you have any additional insight into what I'm doing wrong or if there's a better way to tell if eventmachine linked successfully to OpenSSL, I'd appreciate some help!"},"comment":{"url":"https://api.github.com/repos/eventmachine/eventmachine/issues/comments/256724167","html_url":"https://github.com/eventmachine/eventmachine/issues/739#issuecomment-256724167","issue_url":"https://api.github.com/repos/eventmachine/eventmachine/issues/739","id":256724167,"user":{"login":"sodabrew","id":39406,"avatar_url":"https://avatars.githubusercontent.com/u/39406?v=3","gravatar_id":"","url":"https://api.github.com/users/sodabrew","html_url":"https://github.com/sodabrew","followers_url":"https://api.github.com/users/sodabrew/followers","following_url":"https://api.github.com/users/sodabrew/following{/other_user}","gists_url":"https://api.github.com/users/sodabrew/gists{/gist_id}","starred_url":"https://api.github.com/users/sodabrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sodabrew/subscriptions","organizations_url":"https://api.github.com/users/sodabrew/orgs","repos_url":"https://api.github.com/users/sodabrew/repos","events_url":"https://api.github.com/users/sodabrew/events{/privacy}","received_events_url":"https://api.github.com/users/sodabrew/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T18:08:05Z","updated_at":"2016-10-27T18:08:05Z","body":"What's happening is that you're getting a pre-compiled EventMachine from Rubygems.org that does not have OpenSSL built-in, rather than a self-compiled EventMachine that would build against your OpenSSL installation. I have not figured out what incantation to `gem install` would be needed to tell it not to use the pre-compiled binaries for the Windows platform."}}
{"actor":{"display_login":"sodabrew"}}