rbczmq icon indicating copy to clipboard operation
rbczmq copied to clipboard

Test fails on Windows

Open domitry opened this issue 10 years ago • 0 comments

I managed to install rbczmq to ruby 2.2.3p173 (x64-mingw32) on Windows8.1 64bit, but some tests in test/ fails for some reasons including SegmentationFault.

IRuby still not work maybe because of rbczmq. :cry:

How to install rbczmq to Windows

  • Ran gem install rbczmq and failed.
  • Modify extconf.rb and make it ignore GNU_CHAIN and -EHs option.
  • Ran gem build rbczmq.gemspec and tried to install *.gem. Failed.
  • Found that installing failed when building libzmq and czmq.
  • Compiled libzmq and czmq using etc/zeromq/builds/msvc/msvc11.sln and ext/czmq/builds/msvc/czmq11.sln respectively. (using Visual Studio 2012)
  • Move libzmq.dll and czmq.dll to ext/ manually.
  • Deleted code that compile libzmq, czmq and add code to copy two dll files into ext/rbczmq/dst/lib.
  • Tried to install. failed.
  • Copy two dll files into C:\dll and add the path to PATH.
  • gem install rbczmq-1.7.9.gem. succeeded.

How tests failed

https://gist.github.com/domitry/889ad24aee07b398cc1d

  • Windows10.VS2012.log
  • Ubuntu14.10.log

At least require 'rbczmq' works without any exceptions, so there may be no problem loading shared library.

domitry avatar Nov 18 '15 04:11 domitry