|
| 1 | +This directory contains the tools required to build PostgreSQL using |
| 2 | +Microsoft Visual Studio 2005. |
| 3 | + |
| 4 | + |
| 5 | +Note that PostgreSQL builds natively with Visual C++. You must therefore |
| 6 | +make sure that you do *NOT* have any tools from Cygwin or Mingw present |
| 7 | +in the system PATH. Also, make sure you don't have any Cygwin/Mingw |
| 8 | +environment variables "leaking" through. |
| 9 | + |
| 10 | +First, edit config.pl to reflect what "configure options" you want set. |
| 11 | + |
| 12 | +Then, to build all of PostgreSQL in debug configuration, run the command |
| 13 | + build |
| 14 | +from a Visual Studio Command Prompt (to get all environment |
| 15 | +variables set correctly). |
| 16 | + |
| 17 | +To build all of PostgreSQL in release configuration, run |
| 18 | + build RELEASE |
| 19 | + |
| 20 | +To build just a single project, for example psql, run |
| 21 | + build psql |
| 22 | +or |
| 23 | + build RELEASE psql |
| 24 | + |
| 25 | + |
| 26 | +Dependencies |
| 27 | +------------ |
| 28 | + |
| 29 | +The following packages are needed for the different config options: |
| 30 | + |
| 31 | +pthreads - always required |
| 32 | +Download from ftp://sources.redhat.com/pub/pthreads-win32 |
| 33 | + |
| 34 | +perl - always required |
| 35 | +Get ActiveState Perl from www.activestate.com |
| 36 | + |
| 37 | +flex & bison - required to build from CVS (as opposed to a release tarball) |
| 38 | +Download from http://gnuwin32.sourceforge.net. Note that bison version 2.0 |
| 39 | +will not work. Use either version 1.875, or version 2.1 or newer. |
| 40 | +For flex, use version 2.5.4. |
| 41 | + |
| 42 | +python - required for pl/python |
| 43 | +Get from www.python.org |
| 44 | + |
| 45 | +tcl - required for pl/tcl |
| 46 | +Get ActiveState TCL from www.activestate.com |
| 47 | + |
| 48 | +openssl - required for SSL support |
| 49 | +Get from http://www.slproweb.com/products/Win32OpenSSL.html, or build |
| 50 | +from source from www.openssl.org. |
| 51 | + |
| 52 | +Kerberos - required for Kerberos support |
| 53 | +Get from http://web.mit.edu/Kerberos/dist/index.html |
| 54 | + |
| 55 | +zlib - required for compression support in pg_dump/pg_restore |
| 56 | +Get from http://www.zlib.net |
0 commit comments