7

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?

Dan
  • 32,584
  • 6
  • 98
  • 168
Matt Ellen
  • 355
  • 1
  • 4
  • 12
  • 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](http://emacs.stackexchange.com/questions/3874/easiest-way-to-install-emacs-windows-support-libraries). – legoscia Feb 12 '15 at 14:06

1 Answers1

6

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.

Jonathan Leech-Pepin
  • 4,307
  • 1
  • 19
  • 32