Installation:
Before installation, use the cpansign -v program to cryptographically verify that your copy of DBD :: Pg is complete and valid. The cpansign program is part of the :: Signature module, available from CPAN.
By default, Makefile.PL uses App :: Info to find the location of the PostgreSQL library and include directories. However, if you want to control yourself, define the environment variables POSTGRES_INCLUDE and POSTGRES_LIB, or define only POSTGRES_HOME. Note that if you have a compiled PostgreSQL with SSL support, you must define the POSTGRES_LIB environment variable and add "-lsl" and "-lcrypto" to it, for example:
export POSTGRES_LIB = "/ usr / local / pgsql / lib -lssl -lcrypto"
Common steps for installing DBD :: Pg:
- perl Makefile.PL
- to do
- make a test
- make install
Take steps 1 to 2 as a regular user, not as root!
If the script cannot find the pg_config information, it will ask you for the path to it. Enter the full path to pg_config here, including the name of the file itself.
If you want to use the module, read the documentation.