Project

General

Profile

Actions

Bug #9936

closed

wrong zlib1.dll installed on windows

Added by cbley (Claudio Bley) almost 10 years ago. Updated almost 10 years ago.

Status:
Third Party's Issue
Assignee:
Target version:
-
ruby -v:
ruby 2.0.0p481 (2014-05-08) [x64-mingw32]
[ruby-core:63133]

Description

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0