pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Brannen <KBrannen@efji.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: trouble making PG use my Perl
Date: Thu, 27 Feb 2020 15:07:29 -0500
Message-ID: <13023.1582834049@sss.pgh.pa.us> (raw)
In-Reply-To: <SN6PR19MB2272787EB708A94C083CD442A4EB0@SN6PR19MB2272.namprd19.prod.outlook.com>
References: <SN6PR19MB2272787EB708A94C083CD442A4EB0@SN6PR19MB2272.namprd19.prod.outlook.com>

Kevin Brannen <KBrannen@efji.com> writes:
> The issue is that I've not been able to make Pg use our Perl (in
> /opt/perl) instead of the system one (in /usr).

plperl.so will typically have a more or less hard-coded path to
libperl.so, eg

$ ldd ...installdir.../lib/plperl.so 
        linux-vdso.so.1 =>  (0x00007ffc613cf000)
        libperl.so => /usr/lib64/perl5/CORE/libperl.so (0x00007fa315d48000)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fa315b11000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fa31577d000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fa315563000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007fa315349000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fa315145000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fa314ec1000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fa314c89000)
        libutil.so.1 => /lib64/libutil.so.1 (0x00007fa314a86000)
        /lib64/ld-linux-x86-64.so.2 (0x000055646d09b000)
        libfreebl3.so => /lib64/libfreebl3.so (0x00007fa314883000)

You might be able to override that with LD_LIBRARY_PATH, but it's
a pain, and it will certainly not work if your homebrew libperl
isn't 100% ABI-compatible with the system one.

Personally I'd build plperl against the Perl you want to use it with.
The rest of PG isn't dependent on Perl, so you could use the community
install for the rest of it if you like.

			regards, tom lane





view thread (12+ messages)  latest in thread

Message-ID: <13023.1582834049@sss.pgh.pa.us>
Permalink:  ../13023.1582834049@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13023.1582834049@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, KBrannen@efji.com
  Subject: Re: trouble making PG use my Perl
  In-Reply-To: <13023.1582834049@sss.pgh.pa.us>
  References: <SN6PR19MB2272787EB708A94C083CD442A4EB0@SN6PR19MB2272.namprd19.prod.outlook.com> <13023.1582834049@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox