Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e95130e

Browse files
committed
Add MinGW FAQ.
1 parent 1c24bf9 commit e95130e

File tree

2 files changed

+147
-0
lines changed

2 files changed

+147
-0
lines changed

doc/FAQ_MINGW

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
2+
PostgreSQL Native Win32 FAQ Using MinGW
3+
4+
Last updated: Fri Oct 8 12:47:37 EDT 2004
5+
6+
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
7+
8+
The most recent version of this document can be viewed at
9+
http://momjian.postgresql.org/main/writings/pgsql/project/win32.html.
10+
11+
The native Win32 port is built from source using MinGW tools. There
12+
is also a precompiled binary installer called pginstaller which you
13+
can download from http://pgfoundry.org/projects/pginstaller. It is a
14+
fully native build and uses no additional software like MinGW.
15+
16+
Tools for Building Binaries
17+
18+
The native Win32 port requires a 32-bit NT-based Microsoft operating
19+
system, like Windows NT 4, Windows 2000/2003, or Windows XP. (NT 4
20+
doesn't support tablespaces because it doesn't support the junction
21+
points needed for symlinks.) Earlier operating systems do not have
22+
sufficient infrastructure. Building the port also requires MinGW and
23+
Msys, which can be downloaded from http://www.mingw.org/. MinGW is a
24+
Unix-like build environment for Microsoft operating systems. Msys is a
25+
collection of unix tools required to run shell scripts like
26+
configure. Neither is required to run the resulting binaries; they
27+
are needed only for creating the binaries. We have no intention of
28+
supporting Visual C; their build environment is just too different
29+
from Unix, and maintenance of such a build environment would be too
30+
burdensome.
31+
32+
Steps For Building Binaries
33+
34+
* Download the nightly snapshot tarball from
35+
ftp://ftp.postgresql.org/pub/dev or checkout via CVS (you will
36+
need bison, flex, and perl installed to build from CVS)
37+
* Run configure (you might need to add the --without-zlib argument,
38+
depending on whether you have installed zlib on MinGW)
39+
* Run make install
40+
41+
Note: it is suggested that you run psql under CMD.EXE., as the Msys
42+
console has buffering issues.
43+
If you make a change that you want to contribute, make a context diff
44+
and send it to the mailing list.
45+
46+
Access
47+
48+
The mailing list for discussion is pgsql-hackers-win32@postgresql.org.
49+
You can subscribe by sending an email body containing the word
50+
subscribe to pgsql-hackers-win32-request@postgresql.org.
51+
52+
Resources
53+
54+
There are several resources that helped us complete this port:
55+
* PeerDirect port of PostgreSQL 7.2 to Win32
56+
(ftp://momjian.postgresql.org/pub/postgresql/win32/PeerDirect)
57+
* CONNX Win32 signal
58+
code(ftp://momjian.postgresql.org/pub/postgresql/win32/CONNX)
59+
* SRA port of PostgreSQL to Win32 (unfortunately, this is not
60+
publically available because the threaded portion is proprietary)
61+
* CHM help files
62+
(http://www.pgadmin.org/snapshots/help/en_US/pgadmin3.chm)

doc/src/FAQ/FAQ_MINGW.html

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2+
<html>
3+
<head>
4+
<meta http-equiv="content-type"
5+
content="text/html; charset=ISO-8859-1">
6+
<title>PostgreSQL Native Win32 Status Report</title>
7+
</head>
8+
<body>
9+
<h1 style="text-align: center;">PostgreSQL Native Win32 FAQ Using MinGW<br>
10+
</h1>
11+
<P>Last updated: Fri Oct 8 12:47:37 EDT 2004</P>
12+
<P>Current maintainer: Bruce Momjian (<A href=
13+
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
14+
</P>
15+
16+
<P>The most recent version of this document can be viewed at <A href=
17+
"http://momjian.postgresql.org/main/writings/pgsql/project/win32.html">
18+
http://momjian.postgresql.org/main/writings/pgsql/project/win32.html</A>.</P>
19+
20+
<p>The native Win32 port is built from source using MinGW tools.&nbsp;
21+
There is also a precompiled binary installer called <span
22+
style="font-style: italic;">pginstaller</span> which you can download
23+
from <a href="http://pgfoundry.org/projects/pginstaller">http://pgfoundry.org/projects/pginstaller</a>.&nbsp;
24+
It is a fully native build and uses no additional software like MinGW.<br>
25+
</p>
26+
<h2>Tools for Building Binaries<br>
27+
</h2>
28+
<p> The native Win32 port requires a 32-bit NT-based Microsoft
29+
operating
30+
system, like Windows NT 4, Windows 2000/2003, or Windows XP. (NT 4
31+
doesn't support tablespaces because it doesn't support the junction
32+
points needed for symlinks.)&nbsp; Earlier
33+
operating systems do not have sufficient infrastructure. Building the
34+
port also
35+
requires MinGW and Msys, which can be downloaded from <a
36+
href="http://www.mingw.org/">http://www.mingw.org/</a>. MinGW is
37+
a Unix-like build environment for Microsoft operating systems.
38+
Msys is a collection of unix tools required to run shell scripts like <i>configure.&nbsp;
39+
</i>Neither is required to run the resulting binaries;&nbsp; they are
40+
needed only for creating the binaries.&nbsp; We have no intention
41+
of supporting Visual C; their build environment is just too different
42+
from Unix, and maintenance of such a build environment would be too
43+
burdensome.<br>
44+
</p>
45+
<h2>Steps For Building Binaries<br>
46+
</h2>
47+
<ul>
48+
<li>Download the nightly snapshot tarball from <a
49+
href="ftp://ftp.postgresql.org/pub/dev">ftp://ftp.postgresql.org/pub/dev</a>
50+
or checkout via CVS (you will need <i>bison, flex,</i> and <i>perl</i>
51+
installed to build from CVS)<br>
52+
</li>
53+
<li>Run <i>configure</i> (you might need to add the --without-zlib
54+
argument, depending on whether you have installed <span
55+
style="font-style: italic;">zlib
56+
</span>on MinGW)</li>
57+
<li>Run <i>make install</i></li>
58+
</ul>
59+
Note:&nbsp; it is suggested that you run <i>psql</i> under <i>CMD.EXE.</i>,
60+
as the Msys console has buffering issues.<br>
61+
<br>
62+
If you make a change that you want to contribute, make a context diff
63+
and send
64+
it to the mailing list. <br>
65+
<h2>Access</h2>
66+
The mailing list for discussion is
67+
<i>pgsql-hackers-win32@postgresql.org</i>. You can subscribe by sending
68+
an email body containing the word <i>subscribe</i> to <i><a
69+
href="mailto:pgsql-hackers-win32-request@postgresql.org">pgsql-hackers-win32-request@postgresql.org</a></i>.<br>
70+
<ul>
71+
</ul>
72+
<h2>Resources</h2>
73+
There are several resources that helped us complete this port:<br>
74+
<ul>
75+
<li>PeerDirect port of PostgreSQL 7.2 to Win32 (<a
76+
href="ftp://momjian.postgresql.org/pub/postgresql/win32/PeerDirect">ftp://momjian.postgresql.org/pub/postgresql/win32/PeerDirect</a>)</li>
77+
<li>CONNX Win32 signal code(<a
78+
href="ftp://momjian.postgresql.org/pub/postgresql/win32/CONNX">ftp://momjian.postgresql.org/pub/postgresql/win32/CONNX</a>)</li>
79+
<li>SRA port of PostgreSQL to Win32 (unfortunately, this is not
80+
publically available because the threaded portion is proprietary)</li>
81+
<li>CHM help files (<a
82+
href="http://www.pgadmin.org/snapshots/help/en_US/pgadmin3.chm">http://www.pgadmin.org/snapshots/help/en_US/pgadmin3.chm</a>)</li>
83+
</ul>
84+
</body>
85+
</html>

0 commit comments

Comments
 (0)