1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
|
Pg -- a libpq-based PostgreSQL interface for Perl
# $Id: README,v 1.17 2004/04/21 17:41:14 bmomjian Exp $
DESCRIPTION:
------------
This is version 2.1.0 of Pg (previously called pgsql_perl5 and pgperl).
The web site for this interface is at:
http://gborg.postgresql.org/project/pgperl/projdisplay.php
For information about PostgreSQL, visit:
http://www.postgresql.org/
Pg is an interface between Larry Wall's language perl version 5 and
the database PostgreSQL (previously Postgres95). This has been done by using
the Perl5 application programming interface for C extensions which calls the
Postgres programmer's interface LIBPQ.
COPYRIGHT:
----------
Copyright (c) 1997, 1998 Edmund Mergl
Copyright (c) 1999-2002 PostgreSQL Global Development Group
You may distribute under the terms of either the GNU General Public
License or the Artistic License, as specified in the Perl README file.
IF YOU HAVE PROBLEMS:
---------------------
Please send comments and bug-reports to <pgperl-general@gborg.postgresql.org>.
Please include the output of:
o perl -v
o perl -V
o the PostgreSQL version
o version of Pg
in your bug-report.
REQUIREMENTS:
-------------
build, test and install Perl5 (at least 5.003)
build, test and install PostgreSQL (at least 6.5)
PLATFORMS:
----------
This release of Pg has been developed using Linux 2.2 with
dynamic loading for the perl extensions. Let me know, if there are
any problems with other platforms.
INSTALLATION:
-------------
The Makefile uses the environment variables POSTGRES_INCLUDE and
POSTGRES_LIB, or POSTGRES_HOME to find the library libpq.so and
the include file libpq-fe.h.
If you are using pre-compiled binaries for postgresql and you
can't find libpq.so and libpq-fe.h most probably you forgot to
install the additional development-package for postgresql.
1. POSTGRES_HOME=/usr/local/pgsql; export POSTGRES_HOME
2. perl Makefile.PL
3. make
4. PGDATABASE=test; export PGDATABASE
PGUSER=postgres; export PGUSER
5. make test
6. make install
Do steps 1 - 5 as normal user, not as root!
TESTING:
--------
Run 'make test'.
Note, that the user running this script must have been created with the
access rights to create databases *AND* users! Do not run this script
as root!
If testing fails with the message 'login failed', please check if access
to the database template1 as well as pgperltest is not protected via
pg_hba.conf.
If you are using the shared library libpq.so check if your dynamic
loader finds libpq.so. With Linux the command /sbin/ldconfig -v should
tell you, where it finds libpq.so. If ldconfig does not find libpq.so,
either add an appropriate entry to /etc/ld.so.conf and re-run ldconfig
or add the path to the environment variable LD_LIBRARY_PATH. A typical
error message resulting from not finding libpq.so is:
Can't load './blib/arch/auto/Pg/Pg.so' for module Pg: File not found at
Some linux distributions have an incomplete perl installation. If you
have compile errors like "XS_VERSION_BOOTCHECK undeclared", run:
find <path_to_perl>/lib/ -name XSUB.h -print
If this file is not present, you need to recompile and reinstall perl.
Also RedHat 5.0 seems to have an incomplete perl-installation: if you
get error message during the installation complaining about a missing
perllocal.pod, you need to recompile and reinstall perl.
SGI users: if you get segmentation faults make sure, you use the malloc which
comes with perl when compiling perl (the default is not to).
"David R. Noble" <drnoble@engsci.sandia.gov>
HP users: if you get error messages like:
can't open shared library: .../lib/libpq.sl
No such file or directory
when running the test script, try to replace the
'shared' option in the LDDFLAGS with 'archive'.
Dan Lauterbach <danla@dimensional.com>
DOCUMENTATION:
--------------
Detailed documentation can be found in Pg.pm. Use 'perldoc Pg' after
installation to read the documentation.
Original author Edmund Mergl <E.Mergl@bawue.de>.
|