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. At the time of this writing, this is almost never the case in prebuilt Perl packages. If this difficulty arises in your situation, a message like this will appear during the build to point out this fact:
*** 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. |