wiki:VarnishOnCygwinWindows

Installing Varnish 3.0.5 on Cygwin Windows


Remember that Varnish on Cygwin Windows is not recommended for productions sites and it is only a proof-of-concept that can be used to test application on Windows or for checking you VCL while in that platform.


Varnish can be executed on Windows using  Cygwin DLL. Cygwin implements the POSIX system call API in terms of Win32 system calls.

More information at #840 and #736 Trac tickets.

There are two options for installing Varnish on Windows:

  • Install full Cygwin environment (32 or 64 bits) with varnish package. Recommended option
  • Install Varnish zip bundle, inside it includes Varnish binaries, GCC compiler, Cygwin, PDCurses and PCRE DLLs. (OUT-OF-DATE, ONLY 3.0.2 for 32 bits)

Sources can be built using:


Install Full Cygwin environment with varnish package

The tar.xz package file is installed inside Cygwin environment using cygwin installer:

Follow this steps:

Build instructions with cygport packages

Cygport source packages can be build using cygport program. Cygport can be installed using cygwin setup.exe . See:  cygport web page and  cygport README.

  • Install CYGWIN environment with cygport tool
  • Download cygport varnish-*-src.tar.xz varnish package files from  https://sourceforge.net/projects/cygvarnish/files/cygport-packages/
  • Uncompress tar.xz files to /usr/src directory
  • Execute cygport commands:
    • cygport varnish-{version}.cygport prep
    • cygport varnish-{version}.cygport compile
    • cygport varnish-{version}.cygport install
  • Compiled binaries are copied to varnish-{version}/inst

Build instructions from source

(OUT-OF-DATE ONLY 3.0.2 for 32 bits) Install Varnish ZIP bundle that includes Varnish binaries, GCC compiler, Cygwin, PDCurses and PCRE DLLs

Full cygwin environment is optional using zip bundle packages:  https://sourceforge.net/projects/cygvarnish/files/windows-zip-bundle/

The ZIP includes Varnish and Cygwin, PDCurses and PCRE DLLs. It is not needed to install any other software.

Cygwin and other DLL sources

Varnish in Windows uses version 1.7.9 of  Cygwin DLL. Native PCRE and PDCurses can be also used instead Cygwin version.

Binary and source Cygwin packages are available in:

Native PCRE and PDCurses win32 are available in:

Attachments