shreeve / openssl-0.9.8-minimum

Minimum openssl files to install eventmachine on Ruby 1.9.2 on windows
2 stars 0 forks source link

Eventmachine still fails to build... #1

Open arvicco opened 14 years ago

arvicco commented 14 years ago

Fresh install of ruby 1.9.2p0 (2010-08-18) [i386-mingw32], DevKit 4.5.0 installed and functional (everything builds normally except eventmachine).

I followed your README instructions precisely, and still no luck with eventmachine. :-(

$gem install eventmachine-0.12.11.gem --platform=ruby -- --with-ssl-dir=C:/Dev/apps/openssl-0.9.8-minimum Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing eventmachine-0.12.11.gem: ERROR: Failed to build gem native extension.

C:/Dev/ruby/bin/ruby.exe extconf.rb --with-ssl-dir=C:/Dev/apps/openssl-0.9.8-minimum checking for rb_trap_immediate in ruby.h,rubysig.h... no checking for rb_thread_blocking_region()... 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_check_ints()... yes 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 creating Makefile

make g++ -I. -IC:/Dev/ruby/include/ruby-1.9.1/i386-mingw32 -I/C/Dev/ruby/include/ruby-1.9.1/ruby/backward -I/C/Dev/ruby/include/ruby-1.9.1 -I. -DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_TBR -DHAVE_RB_THREAD_CHECK_INTS -DHAVE_RB_TIME_NEW -DOS_WIN32 -DHAVE_WINDOWS_H -DHAVE_WINSOCK_H -DWITH_SSL -O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -o binder.o -c binder.cpp In file included from binder.cpp:20:0: project.h:104:25: fatal error: openssl/ssl.h: No such file or directory compilation terminated. make: *\ [binder.o] Error 1

Gem files will remain installed in C:/Dev/ruby/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.11 for inspection. Results logged to C:/Dev/ruby/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.11/ext/gem_make.out

arvicco commented 14 years ago

I was able to identify the root cause of this problem. It was caused by path to Cygwin binaries in my PATH environment variable. With previous version of DevKit, it was no big deal as a path to DevKit had the priority. New version of DevKit is adding its binaries to PATH temporarily, so Cygwin binaries are found first.

I have deleted Cygwin binaries from my PATH, and the problem disappeared. However, now I cannot use Cygwin tools from cmd as I used to. :-(