Commit be40754e authored by Magnus Hagander's avatar Magnus Hagander

Rewrite win32 install documentation (it's not client only anymore, and it's

now complete). Update for the MSVC6/Borland support now being only libpq.
Move most of the information about full MSVC build from README file into
documentation.
parent f4ee82e3
This diff is collapsed.
<!-- $PostgreSQL: pgsql/doc/src/sgml/installation.sgml,v 1.285 2007/02/21 15:12:39 momjian Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/installation.sgml,v 1.286 2007/03/13 16:03:36 mha Exp $ -->
<chapter id="installation"> <chapter id="installation">
<title><![%standalone-include[<productname>PostgreSQL</>]]> <title><![%standalone-include[<productname>PostgreSQL</>]]>
...@@ -141,35 +141,6 @@ su - postgres ...@@ -141,35 +141,6 @@ su - postgres
<application>pg_restore</>. <application>pg_restore</>.
</para> </para>
</listitem> </listitem>
<listitem>
<para>
<indexterm>
<primary>installation</primary>
<secondary>on Windows</secondary>
</indexterm>
Additional software is needed to build
<productname>PostgreSQL</productname> on <productname>Windows</>.
You can build <productname>PostgreSQL</productname> for
<productname>NT</>-based versions of <productname>Windows</>
(like Windows XP and 2003) using <productname>MinGW</productname>;
see <filename>doc/FAQ_MINGW</> for details. You can also build
<productname>PostgreSQL</productname> using
<productname>Cygwin</productname>; see <filename>doc/FAQ_CYGWIN</>.
A <productname>Cygwin</productname>-based build will work on older
versions of <productname>Windows</>, but if you have a choice,
we recommend the <productname>MinGW</productname> approach.
While these are the only tool sets recommended for a complete build,
it is possible to build just the C client library
(<application>libpq</application>) and the interactive terminal
(<application>psql</application>) using other <productname>Windows</>
tool sets. For details of that see
<![%standalone-include[the documentation chapter "Client-Only
Installation on Windows"]]> <![%standalone-ignore[<xref
linkend="install-win32">]]>.
</para>
</listitem>
</itemizedlist> </itemizedlist>
</para> </para>
......
This directory contains the tools required to build PostgreSQL using This directory contains the tools required to build PostgreSQL using
Microsoft Visual Studio 2005. Microsoft Visual Studio 2005. This builds the whole backend, not just
the libpq frontend library. For more information, see the documentation
chapter "Installation on Windows".
Note that PostgreSQL builds natively with Visual C++. You must therefore Notes about code indention
make sure that you do *NOT* have any tools from Cygwin or Mingw present --------------------------
in the system PATH. Also, make sure you don't have any Cygwin/Mingw
environment variables "leaking" through.
First, edit config.pl to reflect what "configure options" you want set.
If you need to modify the environment for calling external tools, such as
flex or bison, create a file called "buildenv.bat". This file will be called
by all scripts before anything is done, so the environment can be set up.
(for example, include SET PATH=%PATH%;c:\some\where\bison\bin)
Then, to build all of PostgreSQL in debug configuration, run the command
build
from a Visual Studio Command Prompt (to get all environment
variables set correctly).
To build all of PostgreSQL in release configuration, run
build RELEASE
To build just a single project, for example psql, run
build psql
or
build RELEASE psql
Dependencies
------------
The following packages are needed for the different config options:
pthreads - always required
Download from ftp://sources.redhat.com/pub/pthreads-win32
perl - always required
Get ActiveState Perl from www.activestate.com
flex & bison - required to build from CVS (as opposed to a release tarball)
Download from http://gnuwin32.sourceforge.net. Note that bison version 2.0
will not work. Use either version 1.875, or version 2.1 or newer.
For flex, use version 2.5.4.
python - required for pl/python
Get from www.python.org
tcl - required for pl/tcl
Get ActiveState TCL from www.activestate.com
openssl - required for SSL support
Get from http://www.slproweb.com/products/Win32OpenSSL.html, or build
from source from www.openssl.org.
Kerberos - required for Kerberos support
Get from http://web.mit.edu/Kerberos/dist/index.html
zlib - required for compression support in pg_dump/pg_restore
Get from http://www.zlib.net
libxml2 and libxslt - required for XML support
Get from http://www.zlatkovic.com/pub/libxml or build from source from
http://xmlsoft.org. Note that libxml2 requires iconv.
Code indention
--------------
If the perl code is modified, use perltidy on it since pgindent won't If the perl code is modified, use perltidy on it since pgindent won't
touch perl code. Use the following commandline: touch perl code. Use the following commandline:
perltidy -b -bl -nsfs -naws -l=100 *.pl *.pm perltidy -b -bl -nsfs -naws -l=100 *.pl *.pm
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment