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

Win64 DLL location #34

Closed
steveshaddick opened this issue Jul 6, 2013 · 8 comments · May be fixed by #294
Closed

Win64 DLL location #34

steveshaddick opened this issue Jul 6, 2013 · 8 comments · May be fixed by #294

Comments

@steveshaddick
Copy link

Please note that on Windows 7 64bit the dependent DLLs need to be placed in C:\Windows\SysWOW64 (not C:\Windows\System32).

@ahupp
Copy link
Owner

ahupp commented Sep 27, 2013

Do you have a 64-bit version of libmagic?

@ahupp
Copy link
Owner

ahupp commented Sep 27, 2013

Lots of people have been looking for that.

@skizzy
Copy link

skizzy commented Oct 9, 2013

please help, all the DLL's I download was giving me 'invalid error' which one of those files should I download? Because , I think most might be outdated, since they were coded in 2007. Kindly share the exact link of the DLL'S

@iljau
Copy link

iljau commented Jan 25, 2014

There's a project named MSYS2. It provides windows builds of common unix packages (and very recent versions of them).

But it's rather sneaky. One has to browse though Haskell wiki to find out that it exist: https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows/MSYS2

Package list:
http://sourceforge.net/projects/msys2/files/REPOS/MSYS2/i686/
http://sourceforge.net/projects/msys2/files/REPOS/MSYS2/x86_64/

msys-magic-1.dll can be found in the build of file package.

Using Dependency Walker to figure out other required dll's is left as an exercise for the reader. ;-)

@fake-name
Copy link

You can get the 64 bit DLL by just using the 64 bit Cygwin install quite easily.

@oba2cat3
Copy link

you can also use this build:
pidydx

@mattproetsch
Copy link

mattproetsch commented May 6, 2017

I'm using Win10 x64 with updates. I had an error using the DLLs linked by @oba2cat3. However I used @iljau's sources and got this working. Dependency Walker gave msys-2.0.dll and msys-z.dll as dependencies of file.exe for package version file-5.29-1.

Win10 x64 steps
Download from the x86_64 MSYS build repository:

  • msys-file package.
  • msys2-runtime package. Drop usr/bin/msys-2.0.dll inside the usr/bin folder of msys-file package.
  • zlib package. Drop usr/bin/msys-z.dll inside the usr/bin folder of msys-file package.

To get import magic working correctly make sure that the three DLLs are somewhere on your PATH. I also had to add the string value 'msys-magic-1.dll' to the list stored in windows_dlls of magic.py so that the module init searched for the MSYS version. Alternatively you can just rename msys-magic-1.dll -> magic1.dll if you don't want to change the contents of package files.

EDIT
Scratch all that. Just follow these instructions.

@ahupp
Copy link
Owner

ahupp commented Aug 25, 2023

Merging into #293

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

Successfully merging a pull request may close this issue.

7 participants