Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.0.9 cannot be installed on windows #675

Closed
marcomd opened this issue Jan 13, 2016 · 8 comments
Closed

Version 1.0.9 cannot be installed on windows #675

marcomd opened this issue Jan 13, 2016 · 8 comments
Milestone

Comments

@marcomd
Copy link

marcomd commented Jan 13, 2016

Ruby 2.2.3 x64 patch 173
Devkit 4.7.2 x64
Windows 7

project.h:116:25: fatal error: openssl/ssl.h: No such file or directory

I don't know which operation goes wrong, ruby (from rubyinstaller.org) have openssl in:

lib\ruby\2.2.0\x64-mingw32\openssl.so

Any idea?

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed websocket-driver-0.6.3
Fetching: eventmachine-1.0.9.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing volt:
        ERROR: Failed to build gem native extension.

    current directory: C:/ruby/ruby-223x64p173volt/lib/ruby/gems/2.2.0/gems/eventmachine-1.0.9/ext
C:/ruby/ruby-223x64p173volt/bin/ruby.exe -r ./siteconf20160113-8340-1vih5ql.rb extconf.rb
checking for main() in -lssleay32... no
checking for main() in -lssleay32... no
checking for main() in -lssleay32... no
checking for main() in -lssleay32... no
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... no
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... no
checking for rb_thread_fd_select()... yes
checking for rb_fdset_t in ruby/intern.h... yes
checking for pipe2() in unistd.h... no
checking for accept4() in sys/socket.h... no
checking for SOCK_CLOEXEC in sys/socket.h... no
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... no
checking for rb_time_new()... yes
checking for windows.h... yes
checking for winsock.h... yes
checking for main() in -lkernel32... yes
checking for main() in -lrpcrt4... yes
checking for main() in -lgdi32... yes
checking for clock_gettime()... yes
checking for CLOCK_MONOTONIC_RAW in time.h... no
checking for CLOCK_MONOTONIC in time.h... yes
CXXFLAGS=$(cxxflags) -Wall -Wextra -Wno-deprecated-declarations -Wno-ignored-qua
lifiers -Wno-unused-result -Wno-address
creating Makefile

To see why this extension failed to compile, please check the mkmf.log which can
 be found here:

  C:/ruby/ruby-223x64p173volt/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/e
ventmachine-1.0.9/mkmf.log

current directory: C:/ruby/ruby-223x64p173volt/lib/ruby/gems/2.2.0/gems/eventmachine-1.0.9/ext
make "DESTDIR=" clean

current directory: C:/ruby/ruby-223x64p173volt/lib/ruby/gems/2.2.0/gems/eventmachine-1.0.9/ext
make "DESTDIR="
generating rubyeventmachine-x64-mingw32.def
compiling binder.cpp
In file included from binder.cpp:20:0:
project.h:116:25: fatal error: openssl/ssl.h: No such file or directory
compilation terminated.
make: *** [binder.o] Error 1

make failed, exit code 2

Gem files will remain installed in C:/ruby/ruby-223x64p173volt/lib/ruby/gems/2.2.0/gems/eventmachine-1.0.9 for inspection.
Results logged to C:/ruby/ruby-223x64p173volt/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/eventmachine-1.0.9/gem_make.out

from file mkmf.log:

package configuration for openssl is not found
have_library: checking for main() in -lssleay32... -------------------- no
@Eric-Guo
Copy link

Same problem, can confirm cause by #668 because if I reverse it, can compile in Windows.

@marcomd
Copy link
Author

marcomd commented Jan 13, 2016

Could i suggest to yank 1.0.9 gem till it will be resolved?

@sodabrew sodabrew added this to the 1.0.9.1 milestone Jan 13, 2016
@sodabrew
Copy link
Member

Corrected in 1b8edb9 I will post a 1.0.9.1 today. There is an issue reported in #671 (comment) that I want to chase down if possible -- if you do compile --with-ssl-dir=C:/OpenSSL (or equivalent for your system) does it fail with a different error?

@sodabrew
Copy link
Member

I've just posted EventMachine 1.0.9.1, please give it a try!

@marcomd
Copy link
Author

marcomd commented Jan 14, 2016

It works 👍
Thank you!

@NeoLegends
Copy link

Doesn't work on my machine. :/

@sodabrew
Copy link
Member

Please post enough information so that I can help?

@NeoLegends
Copy link

Oh, sorry. I've got almost the same error as @marcomd. This is the output: http://pastebin.com/YFfKJSpc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants