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 /usr/src/pgsql/doc, including files FAQ-Irix
+ files in directory /usr/src/pgsql/postgresql-6.5.3/doc, including files FAQ-Irix
and FAQ-Linux. Also look in directory
ftp://ftp.postgresql.org/pub.
If there is a file called INSTALL in this directory then this
$ 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
$ 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
you can specify your actual installation path for
the build process (see the --prefix option below). Type
-$ cd /usr/src/pgsql/src
+$ cd /usr/src/pgsql/postgresql-6.5.3/src
$ ./configure [ options ]
-$ cd /usr/src/pgsql/doc
+$ cd /usr/src/pgsql/postgresql-6.5.3/doc
$ gmake install
Compile the program. Type
-$ cd /usr/src/pgsql/src
+$ cd /usr/src/pgsql/postgresql-6.5.3/src
$ gmake all > make.log 2>&1 &
$ tail -f make.log
Install the program. Type
-$ 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
The last line displayed will be
-gmake[1]: Leaving directory `/usr/src/pgsql/src/man'
+Thank you for choosing PostgreSQL, the most advanced open source
+database engine.
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 su) and doing
- $ cd /usr/src/pgsql/src/interfaces/perl5
+ $ cd /usr/src/pgsql/postgresql-6.5.3/src/interfaces/perl5
$ gmake install
Run the regression tests.
- The file /usr/src/pgsql/src/test/regress/README has detailed
+ The file /usr/src/pgsql/postgresql-6.5.3/src/test/regress/README has detailed
instructions for running and interpreting the regression tests.
A short version follows here:
Type
-$ cd /usr/src/pgsql/src/test/regress
+$ cd /usr/src/pgsql/postgresql-6.5.3/src/test/regress
$ gmake clean
$ gmake all runtest
$ destroydb regression
-$ cd /usr/src/pgsql/src/test/regress
+$ cd /usr/src/pgsql/postgresql-6.5.3/src/test/regress
$ gmake clean
Clean up after yourself. Type
-$ 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
Questions? Bugs? Feedback?
-First, read the files in directory /usr/src/pgsql/doc/.
+First, read the files in directory /usr/src/pgsql/postgresql-6.5.3/doc/.
The FAQ in this directory may be particularly useful.
If
Postgres failed to compile on your computer
-then fill out the form in file /usr/src/pgsql/doc/bug.template
+then fill out the form in file /usr/src/pgsql/postgresql-6.5.3/doc/bug.template
and mail it to the location indicated at the top of the form.