2001-03-13 23:42:11 +03:00
|
|
|
============================================================
|
2001-04-05 00:02:31 +04:00
|
|
|
Frequently Asked Questions (FAQ) for PostgreSQL 7.1
|
2001-03-13 23:42:11 +03:00
|
|
|
Sun Solaris specific
|
|
|
|
to be read in conjunction with the installation instructions
|
|
|
|
============================================================
|
2001-04-08 20:36:13 +04:00
|
|
|
last updated: $Date: 2001/04/08 16:36:13 $
|
1999-09-27 07:34:54 +04:00
|
|
|
|
|
|
|
current maintainer: Marc Liyanage (liyanage@access.ch)
|
|
|
|
original author: Marc Liyanage (liyanage@access.ch)
|
|
|
|
|
|
|
|
|
|
|
|
Contents:
|
|
|
|
|
2001-03-13 23:42:11 +03:00
|
|
|
1) What tools do I need to build and install PostgreSQL on Solaris?
|
|
|
|
2) Why do I get problems when building with OpenSSL support?
|
2001-04-05 00:02:31 +04:00
|
|
|
3) Why does configure complain about a failed test program?
|
|
|
|
4) A bunch of regression tests fail in random, non-reproduceable
|
|
|
|
patterns. What's wrong?
|
1999-09-27 20:44:56 +04:00
|
|
|
|
|
|
|
|
2001-03-13 23:42:11 +03:00
|
|
|
1) What tools do I need to build and install PostgreSQL on Solaris?
|
1999-09-27 07:34:54 +04:00
|
|
|
|
|
|
|
You will need
|
|
|
|
|
2001-03-13 23:42:11 +03:00
|
|
|
- GNU zip (for installing the documentation)
|
1999-09-27 07:34:54 +04:00
|
|
|
- GNU make
|
2001-03-13 23:42:11 +03:00
|
|
|
- GNU readline library (optional)
|
1999-09-27 07:34:54 +04:00
|
|
|
|
2001-03-13 23:42:11 +03:00
|
|
|
Both GCC and the Sun compiler suite work.
|
1999-09-27 07:34:54 +04:00
|
|
|
|
|
|
|
If you like Solaris packages, you can find these tools here:
|
|
|
|
http://www.sunfreeware.com
|
|
|
|
|
|
|
|
If you prefer sources, look here:
|
|
|
|
http://www.gnu.org/order/ftp.html
|
|
|
|
|
|
|
|
|
2001-03-13 23:42:11 +03:00
|
|
|
2) Why do I get problems when building with OpenSSL support?
|
1999-09-27 07:34:54 +04:00
|
|
|
|
2001-04-08 20:36:13 +04:00
|
|
|
When you build PostgreSQL with OpenSSL support you might get
|
2001-03-13 23:42:11 +03:00
|
|
|
compilation errors in the following files:
|
1999-09-27 07:34:54 +04:00
|
|
|
|
2001-03-13 23:42:11 +03:00
|
|
|
src/backend/libpq/crypt.c
|
|
|
|
src/backend/libpq/password.c
|
|
|
|
src/interfaces/libpq/fe-auth.c
|
|
|
|
src/interfaces/libpq/fe-connect.c
|
1999-09-27 07:34:54 +04:00
|
|
|
|
2001-03-13 23:42:11 +03:00
|
|
|
This is because of a namespace conflict between the standard
|
|
|
|
/usr/include/crypt.h header and the header files provided by OpenSSL.
|
1999-09-27 07:34:54 +04:00
|
|
|
|
2001-04-08 20:36:13 +04:00
|
|
|
Upgrading your OpenSSL installation to version 0.9.6a fixes this
|
|
|
|
problem.
|
2001-04-05 00:02:31 +04:00
|
|
|
|
|
|
|
|
|
|
|
3) Why does configure complain about a failed test program?
|
|
|
|
|
|
|
|
This is probably a case of the run-time linker being unable to find
|
|
|
|
libz or some other non-standard library, such as libssl. To point it
|
|
|
|
to the right location, set the LD_LIBRARY_PATH environment variable,
|
|
|
|
e.g.,
|
|
|
|
|
|
|
|
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib
|
|
|
|
export LD_LIBRARY_PATH
|
|
|
|
|
|
|
|
and restart configure. You will also have to keep this setting
|
|
|
|
whenever you run any of the installed PostgreSQL programs.
|
|
|
|
|
|
|
|
In the future, consider installing the offending libraries so they
|
|
|
|
provide their own "rpath".
|
|
|
|
|
|
|
|
|
|
|
|
4) A bunch of regression tests fail in random, non-reproduceable
|
|
|
|
patterns. What's wrong?
|
|
|
|
|
|
|
|
A lot of users have reported that the parallel regression test suite
|
|
|
|
causes a varying, unpredictable set of tests to fail, usually tests in
|
|
|
|
the second half of the run. The failure is usually a failure to
|
|
|
|
connect to the server at all, or an abrupt loss of the connection.
|
|
|
|
Invariably, these problems go away when the regression test suite is
|
|
|
|
changed to use TCP/IP sockets instead of Unix domain sockets. (Change
|
|
|
|
line 163 of src/test/regress/pg_regress to match *solaris*; yes, there
|
|
|
|
should be an easier way to do this.) Since a number of users do not
|
|
|
|
seem to have any problems with this at all, we do not claim that "Unix
|
|
|
|
domain sockets are broken on Solaris", but feel free to draw your own
|
|
|
|
conclusions, or better yet, share your insights with the rest of us.
|