From: luislavena@... Date: 2014-06-13T00:04:09+00:00 Subject: [ruby-core:63146] [ruby-trunk - Bug #9936] wrong zlib1.dll installed on windows Issue #9936 has been updated by Luis Lavena. Hello Claudio, Both installer and package of Ruby 2.0.0-p481 for x64 contains a 64-bits version of zlib1.dll You can confirm this using Dependency Walker and see the output I've just collected from it: https://gist.github.com/luislavena/40a016b0bd41d9408b92 You will see at line 98 the legend "6" to indicate 64-bits modules and on line 105 and 106 that it imports 64-bit modules. Perhaps there is another zlib1.dll in your system that is affecting? I recommend you submit your RubyInstaller issues to RubyInstaller itself: https://github.com/oneclick/rubyinstaller/issues If you believe our packages are broken, but will be great if you can confirm the MD5 checksums to verify there was no alteration in the downloads you made. Cheers. ---------------------------------------- Bug #9936: wrong zlib1.dll installed on windows https://bugs.ruby-lang.org/issues/9936#change-47204 * Author: Claudio Bley * Status: Third Party's Issue * Priority: Normal * Assignee: cruby-windows * Category: platform/windows * Target version: * ruby -v: ruby 2.0.0p481 (2014-05-08) [x64-mingw32] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- I'm using Windows 7 64bit. Running e.g. "gem help commands" results in the following error messages: ~~~ ERROR: Loading command: build (LoadError) 193: %1 is not a valid Win32 application. - C:/Tools/ruby200/lib/ruby/2.0.0/x64-mingw32/zlib.so ERROR: Loading command: check (LoadError) 193: %1 is not a valid Win32 application. - C:/Tools/ruby200/lib/ruby/2.0.0/x64-mingw32/zlib.so ERROR: Loading command: cleanup (LoadError) 193: %1 is not a valid Win32 application. - C:/Tools/ruby200/lib/ruby/2.0.0/x64-mingw32/zlib.so ERROR: Loading command: generate_index (LoadError) 193: %1 is not a valid Win32 application. - C:/Tools/ruby200/lib/ruby/2.0.0/x64-mingw32/zlib.so ERROR: Loading command: install (LoadError) 193: %1 is not a valid Win32 application. - C:/Tools/ruby200/lib/ruby/2.0.0/x64-mingw32/zlib.so ERROR: Loading command: pristine (LoadError) 193: %1 is not a valid Win32 application. - C:/Tools/ruby200/lib/ruby/2.0.0/x64-mingw32/zlib.so ERROR: Loading command: push (LoadError) 193: %1 is not a valid Win32 application. - C:/Tools/ruby200/lib/ruby/2.0.0/x64-mingw32/zlib.so ERROR: Loading command: rdoc (LoadError) 193: %1 is not a valid Win32 application. - C:/Tools/ruby200/lib/ruby/2.0.0/x64-mingw32/zlib.so ERROR: Loading command: server (LoadError) 193: %1 is not a valid Win32 application. - C:/Tools/ruby200/lib/ruby/2.0.0/x64-mingw32/zlib.so ERROR: Loading command: specification (LoadError) 193: %1 is not a valid Win32 application. - C:/Tools/ruby200/lib/ruby/2.0.0/x64-mingw32/zlib.so ERROR: Loading command: uninstall (LoadError) 193: %1 is not a valid Win32 application. - C:/Tools/ruby200/lib/ruby/2.0.0/x64-mingw32/zlib.so ERROR: Loading command: unpack (LoadError) 193: %1 is not a valid Win32 application. - C:/Tools/ruby200/lib/ruby/2.0.0/x64-mingw32/zlib.so ERROR: Loading command: update (LoadError) 193: %1 is not a valid Win32 application. - C:/Tools/ruby200/lib/ruby/2.0.0/x64-mingw32/zlib.so ~~~ Seems zlib.so depends on zlib1.dll, but the zlib1.dll delivered using the installer is a 32bit instead of 64bit DLL causing the errors. Replacing the zlib1.dll in the bin/ folder with a proper 64bit version makes the "gem help commands" succeed. -- https://bugs.ruby-lang.org/