1998-11-29 07:10:22 +08:00
|
|
|
=======================================================
|
2002-11-02 08:46:23 +08:00
|
|
|
Frequently Asked Questions (FAQ) for PostgreSQL 7.3
|
1998-11-29 07:10:22 +08:00
|
|
|
HP-UX Specific
|
|
|
|
TO BE READ IN CONJUNCTION WITH THE NORMAL FAQ
|
|
|
|
=======================================================
|
2002-11-02 08:46:23 +08:00
|
|
|
last updated: $Date: 2002/11/02 00:46:23 $
|
1998-11-29 07:10:22 +08:00
|
|
|
|
|
|
|
current maintainer: Tom Lane (tgl@sss.pgh.pa.us)
|
|
|
|
original author: Tom Lane (tgl@sss.pgh.pa.us)
|
|
|
|
|
|
|
|
|
|
|
|
Questions covered here:
|
1999-06-06 02:24:55 +08:00
|
|
|
1.1) What do I need to install PostgreSQL on HP-UX?
|
|
|
|
1.2) Anything special about the build/install procedure?
|
2002-11-02 08:46:23 +08:00
|
|
|
1.3) OK, it seemed to build and install, but the regression test fails.
|
1998-11-29 07:10:22 +08:00
|
|
|
|
|
|
|
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
Section 1: Installing PostgreSQL
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
|
1999-06-06 02:24:55 +08:00
|
|
|
1.1) What do I need to install PostgreSQL on HP-UX?
|
1998-11-29 07:10:22 +08:00
|
|
|
|
2002-11-02 08:46:23 +08:00
|
|
|
PostgreSQL 7.3 should work on Series 700/800 PA-RISC machines running
|
|
|
|
HP-UX 10.X or 11.X, given appropriate system patch levels and build
|
|
|
|
tools. At least one developer routinely tests on HPUX 10.20 and we
|
|
|
|
have reports of successful installations on HPUX 11.00 and 11.11.
|
1998-11-29 07:10:22 +08:00
|
|
|
|
1999-06-06 02:24:55 +08:00
|
|
|
Aside from the PostgreSQL source distribution, you will need GNU make
|
1998-11-29 07:10:22 +08:00
|
|
|
(HP's make will not do), and either GNU gcc or HP's full ANSI C compiler.
|
2001-02-20 09:33:07 +08:00
|
|
|
If you intend to build from CVS sources rather than a distribution tarball,
|
|
|
|
you will also need flex (GNU lex) and bison (GNU yacc).
|
1998-11-29 07:10:22 +08:00
|
|
|
|
2002-11-02 08:46:23 +08:00
|
|
|
I'd also recommend making sure you are fairly up-to-date on HP
|
|
|
|
patches. At a minimum, if you are building 64 bit binaries on on HPUX
|
|
|
|
11.11 you may need PHSS_26263 (11.11) or a successor patch otherwise
|
|
|
|
initdb may hang:
|
1999-06-06 02:24:55 +08:00
|
|
|
|
2002-11-02 08:46:23 +08:00
|
|
|
PHSS_26263 s700_800 11.11 ld(1) and linker tools cumulative patch
|
|
|
|
|
|
|
|
On general principles you should be current on libc and ld/dld
|
|
|
|
patches, as well as compiler patches if you are using HP's C compiler.
|
|
|
|
See HP's support sites such as http://itrc.hp.com and
|
|
|
|
ftp://us-ffs.external.hp.com/ for free copies of their latest patches.
|
1998-11-29 07:10:22 +08:00
|
|
|
|
|
|
|
|
1999-06-06 02:24:55 +08:00
|
|
|
1.2) Anything special about the build/install procedure?
|
1998-11-29 07:10:22 +08:00
|
|
|
|
2000-08-27 03:34:24 +08:00
|
|
|
If you have both HP's C compiler and GCC's, then you might want to
|
|
|
|
explicitly select the compiler to use when you run `configure':
|
|
|
|
CC=cc ./configure
|
1998-11-29 07:10:22 +08:00
|
|
|
for HP's C compiler, or
|
2000-08-27 03:34:24 +08:00
|
|
|
CC=gcc ./configure
|
2001-05-01 07:55:26 +08:00
|
|
|
for GCC. If you omit this setting, then configure will pick gcc
|
|
|
|
if it has a choice.
|
1998-11-29 07:10:22 +08:00
|
|
|
|
|
|
|
The default install target location is /usr/local/pgsql, which
|
2001-05-01 07:55:26 +08:00
|
|
|
you might want to change to something under /opt. If so, use
|
|
|
|
the --prefix switch to configure.
|
1998-11-29 07:10:22 +08:00
|
|
|
|
2002-11-02 08:46:23 +08:00
|
|
|
If you are building on a PA-RISC 2.0 machine and want the compiled
|
|
|
|
binaries to run on PA-RISC 1.1 machines you will need to specify
|
|
|
|
+DAportable in CFLAGS.
|
1999-06-06 02:24:55 +08:00
|
|
|
|
1998-11-29 07:10:22 +08:00
|
|
|
|
2002-11-02 08:46:23 +08:00
|
|
|
1.3) OK, it seemed to build and install, but the regression test fails.
|
1998-11-29 07:10:22 +08:00
|
|
|
|
|
|
|
There are several "expected failures" due to differences between HPUX
|
2002-11-02 08:46:23 +08:00
|
|
|
and the regression test reference platform used by the PostgreSQL
|
|
|
|
group. All of these should be compensated for by the regression test
|
|
|
|
comparison mechanism, with the possible exception of some
|
|
|
|
low-order-digit differences in the geometry tests, which vary depending
|
|
|
|
on which compiler and math library versions you use.
|
1998-11-29 07:10:22 +08:00
|
|
|
|
2002-11-02 08:46:23 +08:00
|
|
|
Any other error is cause for suspicion.
|
2001-02-20 09:33:07 +08:00
|
|
|
|
2001-03-20 08:18:21 +08:00
|
|
|
The parallel regression test script (gmake check) is known to lock up
|
2002-11-02 08:46:23 +08:00
|
|
|
when run under HP's Bourne shells: /usr/bin/sh and /sbin/sh. This is a
|
|
|
|
known defect JAGad84609, the fix for which is not yet in any released
|
|
|
|
HP-UX version or shell patches. To work around it, use ksh to run the
|
|
|
|
regression script:
|
2001-03-20 08:18:21 +08:00
|
|
|
gmake SHELL=/bin/ksh check
|
2002-11-02 08:46:23 +08:00
|
|
|
|
|
|
|
If you see that the tests have stopped making progress and only a shell
|
|
|
|
process is consuming CPU, kill the shell process and start over with the
|
|
|
|
above command.
|