|
1 |
| -<!-- $Header: /cvsroot/pgsql/doc/src/sgml/installation.sgml,v 1.17 2000/09/06 19:54:45 petere Exp $ --> |
| 1 | +<!-- $Header: /cvsroot/pgsql/doc/src/sgml/installation.sgml,v 1.18 2000/09/17 20:35:27 petere Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="installation">
|
4 | 4 | <title><![%flattext-install-include[<productname>PostgreSQL</> ]]>Installation Instructions</title>
|
@@ -37,50 +37,81 @@ su - postgres
|
37 | 37 | might wish to consult if you are having trouble.
|
38 | 38 | </para>
|
39 | 39 |
|
40 |
| - <formalpara> |
41 |
| - <title>Compiler</> |
42 |
| - <para> |
43 |
| - You need a Standard (<quote>ANSI</>) C compiler. Recent versions |
44 |
| - of <productname>GCC</> are recommendable, but <productname>PostgreSQL</> is known to |
45 |
| - build with a wide variety of compilers from different vendors. |
46 |
| - </para> |
47 |
| - </formalpara> |
48 |
| - |
49 |
| - <formalpara> |
50 |
| - <title>Make</title> |
51 |
| - <para> |
52 |
| - Building <productname>PostgreSQL</> requires <acronym>GNU</> <application>make</>; it |
53 |
| - will <emphasis>not</> work with other <application>make</> |
54 |
| - programs. <acronym>GNU</> <application>make</> is often installed |
55 |
| - under the name <filename>gmake</filename>. This document will |
56 |
| - always refer to it by that name. (On GNU/Linux systems GNU make is |
57 |
| - the default tool with the name <filename>make</filename>.) To test |
58 |
| - for <acronym>GNU</acronym> <application>make</application> enter |
| 40 | + <para> |
| 41 | + The following prerequisites exist for building <productname>PostgreSQL</>: |
| 42 | + <itemizedlist> |
| 43 | + <listitem> |
| 44 | + <para> |
| 45 | + <acronym>GNU</> <application>make</> is required; other |
| 46 | + <application>make</> programs will <emphasis>not</> work. |
| 47 | + <acronym>GNU</> <application>make</> is often installed under |
| 48 | + the name <filename>gmake</filename>; this document will always |
| 49 | + refer to it by that name. (On GNU/Linux systems GNU make is the |
| 50 | + default tool with the name <filename>make</>.) To test for |
| 51 | + <acronym>GNU</acronym> <application>make</application> enter |
59 | 52 | <screen>
|
60 | 53 | <userinput>gmake --version</userinput>
|
61 | 54 | </screen>
|
62 |
| - If at all possible you should try to use version 3.76.1 or later. |
63 |
| - If you need to get <acronym>GNU</acronym> |
64 |
| - <application>make</application>, you can find it at your local |
65 |
| - <acronym>GNU</acronym> mirror site (see <ulink |
66 |
| - url="http://www.gnu.org/order/ftp.html">http://www.gnu.org/order/ftp.html</>) |
67 |
| - or at <ulink |
68 |
| - url="ftp://ftp.gnu.org/gnu/make">ftp://ftp.gnu.org/gnu/make</ulink>. |
69 |
| - </para> |
70 |
| - </formalpara> |
| 55 | + If at all possible you should use version 3.76.1 or later. |
| 56 | + </para> |
| 57 | + </listitem> |
71 | 58 |
|
72 |
| - <formalpara> |
73 |
| - <title>Resources</> |
74 |
| - <para> |
75 |
| - Check that you have sufficient disk space. You will need about 30 |
76 |
| - MB for the source tree during compilation and about 5 MB for the |
77 |
| - installation directory. An empty database takes about 1 MB, later |
78 |
| - it takes about five times the amount of space that a flat text |
79 |
| - file with the same data would take. If you are going to run the |
80 |
| - regression tests you will temporarily need an extra 20 MB. Use the |
81 |
| - <command>df</command> command to check for disk space. |
82 |
| - </para> |
83 |
| - </formalpara> |
| 59 | + <listitem> |
| 60 | + <para> |
| 61 | + You need an <acronym>ISO</>/<acronym>ANSI</> C compiler. Recent |
| 62 | + versions of <productname>GCC</> are recommendable, but |
| 63 | + <productname>PostgreSQL</> is known to build with a wide variety |
| 64 | + of compilers from different vendors. |
| 65 | + </para> |
| 66 | + </listitem> |
| 67 | + |
| 68 | + <listitem> |
| 69 | + <para><application>gzip</></para> |
| 70 | + </listitem> |
| 71 | + |
| 72 | + <listitem> |
| 73 | + <para> |
| 74 | + The <acronym>GNU</> <productname>Readline</> library for comfortable |
| 75 | + line editing and command history retrieval will automatically be used |
| 76 | + if found. You might wish to install it before proceeding, but it is not |
| 77 | + required. |
| 78 | + </para> |
| 79 | + </listitem> |
| 80 | + |
| 81 | + <listitem> |
| 82 | + <para> |
| 83 | + <application>Flex</> and <application>Bison</> are |
| 84 | + <emphasis>not</> required when building from a released source |
| 85 | + package because the output files are pre-generated. You will |
| 86 | + need these programs only when building from a CVS tree or when |
| 87 | + the actual scanner and parser definition files were changed. If |
| 88 | + you need them, be sure to get <application>Flex</> 2.5.4 or |
| 89 | + later and <application>Bison</> 1.28 or later. Other yacc |
| 90 | + programs can sometimes be used, but doing so requires extra |
| 91 | + efforts and is not recommended. Other lex programs will |
| 92 | + definitely not work. |
| 93 | + </para> |
| 94 | + </listitem> |
| 95 | + </itemizedlist> |
| 96 | + </para> |
| 97 | + |
| 98 | + <para> |
| 99 | + If you need to get a <acronym>GNU</acronym> package, you can find |
| 100 | + it at your local <acronym>GNU</acronym> mirror site (see <ulink |
| 101 | + url="http://www.gnu.org/order/ftp.html">http://www.gnu.org/order/ftp.html</> |
| 102 | + for a list) or at <ulink |
| 103 | + url="ftp://ftp.gnu.org/gnu/make">ftp://ftp.gnu.org/gnu/make</ulink>. |
| 104 | + </para> |
| 105 | + |
| 106 | + <para> |
| 107 | + Also check that you have sufficient disk space. You will need about |
| 108 | + 30 MB for the source tree during compilation and about 5 MB for the |
| 109 | + installation directory. An empty database takes about 1 MB, later |
| 110 | + it takes about five times the amount of space that a flat text file |
| 111 | + with the same data would take. If you are going to run the |
| 112 | + regression tests you will temporarily need an extra 20 MB. Use the |
| 113 | + <command>df</command> command to check for disk space. |
| 114 | + </para> |
84 | 115 | </sect1>
|
85 | 116 |
|
86 | 117 | <![%flattext-install-ignore;[
|
@@ -534,7 +565,9 @@ su - postgres
|
534 | 565 | <filename>odbcinst.ini</> configuration file. The default is
|
535 | 566 | <filename>/usr/local/pgsql/etc</filename> or whatever you
|
536 | 567 | specified as <option>--sysconfdir</option>. A default file
|
537 |
| - will be installed there. |
| 568 | + will be installed there. If you intend to share the |
| 569 | + <filename>odbcinst.ini</> file between several ODBC drivers |
| 570 | + then you may want to use this option. |
538 | 571 | </para>
|
539 | 572 | </listitem>
|
540 | 573 | </varlistentry>
|
@@ -623,17 +656,14 @@ su - postgres
|
623 | 656 | </variablelist>
|
624 | 657 | </para>
|
625 | 658 |
|
626 |
| - <formalpara> |
627 |
| - <title>Environment variables</> |
628 |
| - <para> |
629 |
| - You can set the <envar>CC</> environment variable to choose the C |
630 |
| - compiler to use. If you don't then <filename>configure</> will |
631 |
| - look for one. For example: |
| 659 | + <para> |
| 660 | + You can set the <envar>CC</> environment variable to choose the C |
| 661 | + compiler to use. If you don't then <filename>configure</> will |
| 662 | + look for one. For example: |
632 | 663 | <screen>
|
633 | 664 | <userinput>CC=/opt/bin/gcc ./configure</>
|
634 | 665 | </screen>
|
635 |
| - </para> |
636 |
| - </formalpara> |
| 666 | + </para> |
637 | 667 |
|
638 | 668 | </step>
|
639 | 669 |
|
@@ -740,19 +770,16 @@ All of PostgreSQL is successfully made. Ready to install.
|
740 | 770 | </step>
|
741 | 771 | </procedure>
|
742 | 772 |
|
743 |
| - <formalpara> |
744 |
| - <title>Cleanup</> |
745 |
| - <para> |
746 |
| - After the installation you can make room by removing the built |
747 |
| - files from the source tree with the <command>gmake clean</> |
748 |
| - command. This will preserve the choices made by the configure |
749 |
| - program, so that you can rebuild everything with <command>gmake</> |
750 |
| - later on. To reset the source tree to the state in which it was |
751 |
| - distributed, use <command>gmake distclean</>. If you are going to |
752 |
| - build for several platforms from the same source tree you must do |
753 |
| - this and re-configure for each build. |
754 |
| - </para> |
755 |
| - </formalpara> |
| 773 | + <para> |
| 774 | + After the installation you can make room by removing the built |
| 775 | + files from the source tree with the <command>gmake clean</> |
| 776 | + command. This will preserve the choices made by the configure |
| 777 | + program, so that you can rebuild everything with <command>gmake</> |
| 778 | + later on. To reset the source tree to the state in which it was |
| 779 | + distributed, use <command>gmake distclean</>. If you are going to |
| 780 | + build for several platforms from the same source tree you must do |
| 781 | + this and re-configure for each build. |
| 782 | + </para> |
756 | 783 |
|
757 | 784 | </sect1>
|
758 | 785 |
|
@@ -801,6 +828,7 @@ libpq.so.2.1: cannot open shared object file: No such file or directory
|
801 | 828 | </screen>
|
802 | 829 | then this step was necessary. Simply take care of it then.
|
803 | 830 | </para>
|
| 831 | + |
804 | 832 | </sect2>
|
805 | 833 |
|
806 | 834 | <sect2>
|
@@ -1078,7 +1106,7 @@ gunzip -c user.ps.gz \
|
1078 | 1106 | <entry>PA-RISC</entry>
|
1079 | 1107 | <entry>7.0</entry>
|
1080 | 1108 | <entry>2000-04-12, Tom Lane (<email>tgl@sss.pgh.pa.us</>)</entry>
|
1081 |
| - <entry></> |
| 1109 | + <entry>See also <filename>doc/FAQ_HPUX</></> |
1082 | 1110 | </row>
|
1083 | 1111 | <row>
|
1084 | 1112 | <entry>IRIX 6.5.6f</entry>
|
@@ -1169,14 +1197,14 @@ gunzip -c user.ps.gz \
|
1169 | 1197 | <entry>x86</entry>
|
1170 | 1198 | <entry>7.0</entry>
|
1171 | 1199 | <entry>2000-04-01, Dr. Andreas Kardos (<email>kardos@repas-aeg.de</>)</entry>
|
1172 |
| -<entry></> |
| 1200 | +<entry>See also <filename>doc/FAQ_QNX4</></> |
1173 | 1201 | </row>
|
1174 | 1202 | <row>
|
1175 | 1203 | <entry>SCO OpenServer 5</entry>
|
1176 | 1204 | <entry>x86</entry>
|
1177 | 1205 | <entry>6.5</entry>
|
1178 | 1206 | <entry>1999-05-25, Andrew Merrill (<email>andrew@compclass.com</>)</entry>
|
1179 |
| -<entry></> |
| 1207 | +<entry>See also <filename>doc/FAQ_SCO</></> |
1180 | 1208 | </row>
|
1181 | 1209 | <row>
|
1182 | 1210 | <entry>SCO UnixWare 7</entry>
|
|