Read any last minute information and platform specific porting
notes. There are some platform specific notes at the end of this
file for Ultrix4.x, Linux, BSD/OS and NeXT. There are other
- files in directory <FileName>/usr/src/pgsql/doc</FileName>, including files FAQ-Irix
+ files in directory <FileName>/usr/src/pgsql/postgresql-6.5.3/doc</FileName>, including files FAQ-Irix
and FAQ-Linux. Also look in directory
<ULink url="ftp://ftp.postgresql.org/pub">ftp://ftp.postgresql.org/pub</ULink>.
If there is a file called INSTALL in this directory then this
<ProgramListing>
$ cd
$ gunzip -c postgresql-6.5.3.tar.gz \
- | tar xvf - src/bin/pg_dump/pg_dumpall
-$ chmod a+x src/bin/pg_dump/pg_dumpall
-$ src/bin/pg_dump/pg_dumpall > db.out
-$ rm -rf src
+ | tar xvf - postgresql-6.5.3/src/bin/pg_dump/pg_dumpall
+$ chmod a+x postgresql-6.5.3/src/bin/pg_dump/pg_dumpall
+$ postgresql-6.5.3/src/bin/pg_dump/pg_dumpall > db.out
+$ rm -rf postgresql-6.5.3
</ProgramListing>
</Para>
<programlisting>
$ su -
$ cd /usr/src
-$ mv pgsql pgsql_6_0
+$ mv pgsql pgsql.old
$ cd /usr/local
-$ mv pgsql pgsql_6_0
+$ mv pgsql pgsql.old
$ exit
</programlisting>
</Para>
you can specify your actual installation path for
the build process (see the --prefix option below). Type
<ProgramListing>
-$ cd /usr/src/pgsql/src
+$ cd /usr/src/pgsql/postgresql-6.5.3/src
$ ./configure [ <replaceable>options</replaceable> ]
</ProgramListing>
</Para>
<acronym>HTML</acronym> documentation. Type
<ProgramListing>
-$ cd /usr/src/pgsql/doc
+$ cd /usr/src/pgsql/postgresql-6.5.3/doc
$ gmake install
</ProgramListing>
</para>
Compile the program. Type
<ProgramListing>
-$ cd /usr/src/pgsql/src
+$ cd /usr/src/pgsql/postgresql-6.5.3/src
$ gmake all > make.log 2>&1 &
$ tail -f make.log
</ProgramListing>
<Para>
Install the program. Type
<ProgramListing>
-$ cd /usr/src/pgsql/src
+$ cd /usr/src/pgsql/postgresql-6.5.3/src
$ gmake install > make.install.log 2>&1 &
$ tail -f make.install.log
</ProgramListing>
<Para>
The last line displayed will be
<programlisting>
-gmake[1]: Leaving directory `/usr/src/pgsql/src/man'
+Thank you for choosing PostgreSQL, the most advanced open source
+database engine.
</programlisting>
At this point, or earlier if you wish,
type control-C to get out of tail.
complete its installation, either now or later, by becoming the user that
does own the Perl library (often root) (via <command>su</command>) and doing
<ProgramListing>
- $ cd /usr/src/pgsql/src/interfaces/perl5
+ $ cd /usr/src/pgsql/postgresql-6.5.3/src/interfaces/perl5
$ gmake install
</ProgramListing>
</Para>
<Step Performance="required">
<Para>
Run the regression tests.
- The file <filename>/usr/src/pgsql/src/test/regress/README</filename> has detailed
+ The file <filename>/usr/src/pgsql/postgresql-6.5.3/src/test/regress/README</filename> has detailed
instructions for running and interpreting the regression tests.
A short version follows here:
</Para>
<Para>
Type
<ProgramListing>
-$ cd /usr/src/pgsql/src/test/regress
+$ cd /usr/src/pgsql/postgresql-6.5.3/src/test/regress
$ gmake clean
$ gmake all runtest
</ProgramListing>
<ProgramListing>
$ destroydb regression
-$ cd /usr/src/pgsql/src/test/regress
+$ cd /usr/src/pgsql/postgresql-6.5.3/src/test/regress
$ gmake clean
</ProgramListing>
<Para>
Clean up after yourself. Type
<ProgramListing>
-$ rm -rf /usr/src/pgsql_6_5
-$ rm -rf /usr/local/pgsql_6_5
-# Also delete old database directory tree if it is not in
-# /usr/local/pgsql_6_5/data
-$ rm ~/postgresql-6.5.3.tar.gz
+$ rm -rf /usr/src/pgsql
+$ rm -rf /usr/src/pgsql.old
+# Also delete the old database directory tree if desired.
+$ rm -rf /usr/local/pgsql.old
</ProgramListing>
</Para>
</Step>
<Para>
Questions? Bugs? Feedback?
-First, read the files in directory <filename>/usr/src/pgsql/doc/</filename>.
+First, read the files in directory <filename>/usr/src/pgsql/postgresql-6.5.3/doc/</filename>.
The FAQ in this directory may be particularly useful.
</Para>
<Para>
If <ProductName>Postgres</ProductName> failed to compile on your computer
-then fill out the form in file <filename>/usr/src/pgsql/doc/bug.template</filename>
+then fill out the form in file <filename>/usr/src/pgsql/postgresql-6.5.3/doc/bug.template</filename>
and mail it to the location indicated at the top of the form.
</Para>