5

I'm getting the message "zlib library not found" when I start emacs and I found that I need to download zlib, which is fine. Then I need to put the DLL somewhere, but I can't find where that should be.

Where do the DLLs that emacs depends on need to go?

  • 2
    I'd try to put it in the bin directory near emacs executable. – wvxvw Feb 12 '15 at 12:53
  • That was a lucky guess, maybe people building Emacs on Windows will explain it better (there may be more than one place where Emacs looks for libraries for example). – wvxvw Feb 12 '15 at 13:37
  • 1
    See also this question. – legoscia Feb 12 '15 at 14:06
4

You have two choices:

  1. Place all the associated libraries within the emacs\bin folder. This will allow them to be linked as needed
  2. Place all associated libraries in a folder found on you %PATH%. I prefer doing it this way because it ensures that I keep the libraries in place following upgrades.

    c:\bin\
         +- emacs\ (directory softlink to desired emacs version
         +- emacs-libs\
         `- emacs-<version>\
                         `- bin
    

c:\bin\emacs\bin\ and c:\bin\emacs-libs\ are both stored on my %PATH%, like this I can keep older versions if necessary (change the softlink when needed) and emacs-libs will contain the valid .dlls so that I do not need to copy them over when updating.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.