From: Peter Eisentraut Date: Tue, 5 May 2015 18:41:39 +0000 (-0400) Subject: doc: Update installation instructions for new shared libperl/libpython handling X-Git-Tag: REL9_5_ALPHA1~331 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53f09657676782d5f6ccf563907fde48a6bea13c;p=postgresql doc: Update installation instructions for new shared libperl/libpython handling --- diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index 4968e09c99..89648349c2 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -169,32 +169,22 @@ su - postgres also on most platforms. This appears to be the default in recent Perl versions, but it was not in earlier versions, and in any case it is the choice of whomever - installed Perl at your site. + installed Perl at your site. configure will fail + if building PL/Perl is selected but it cannot + find a shared libperl. In that case, you will have + to rebuild and install Perl manually to be + able to build PL/Perl. During the + configuration process for Perl, request a + shared library. + + + If you intend to make more than incidental use of PL/Perl, you should ensure that the Perl installation was built with the usemultiplicity option enabled (perl -V will show whether this is the case). - - - If you don't have the shared library but you need one, a message - like this will appear during the PostgreSQL - 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. - - (If you don't follow the on-screen output you will merely notice - that the PL/Perl library object, - plperl.so or similar, will not be - installed.) If you see this, you will have to rebuild and - install Perl manually to be able to - build PL/Perl. During the - configuration process for Perl, - request a shared library. - @@ -220,28 +210,15 @@ su - postgres library, the libpython libpython library must be a shared library also on most platforms. This is not the case in a default - Python installation. If after - building and installing PostgreSQL you have a file called - plpython.so (possibly a different - extension), then everything went well. Otherwise you should - have seen a notice like this flying by: - -*** Cannot build PL/Python because libpython is not a shared library. -*** You might have to rebuild your Python installation. Refer to -*** the documentation for details. - - That means you have to rebuild (part of) your - Python installation to create this - shared library. - - - - If you have problems, run Python 2.3 or later's - configure using the --enable-shared flag. On some - operating systems you don't have to build a shared library, but - you will have to convince the PostgreSQL build - system of this. Consult the Makefile in - the src/pl/plpython directory for details. + Python installation built from source, but a + shared library is available in many operating system + distributions. configure will fail if + building PL/Python is selected but it cannot + find a shared libpython. That might mean that you + either have to install additional packages or rebuild (part of) your + Python installation to provide this shared + library. When building from source, run Python's + configure with the --enable-shared flag.