If the --with-perl option was supplied to the configure script, the PostgreSQL build process will attempt to build the PL/Perl shared library and install it in the PostgreSQL library directory.
Because PL/Perl is a shared library, the libperl library must be a shared library also. A Red Hat Database installation meets these conditions; however, if you use another PostgreSQL source and have problems, a message like this will appear during the build:
*** Cannot build PL/Perl because libperl is not a shared library. *** You might have to rebuild your Perl installation. Refer to *** the documentation for details. |
After having reinstalled Perl, change to the directory src/pl/plperl in the PostgreSQL source tree and issue the commands
make clean make all make install |
To install PL/Perl in a particular database, use the createlang script, for example createlang plperl dbname.
If a language is installed into template1, all subsequently created databases will have the language installed automatically. |