Re: PG 10 and perl

From: "" <kbrannen(at)pwhome(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: PG 10 and perl
Date: 2017-09-29 14:28:25
Message-ID: 20170929072825.F1BD6484@m0117566.ppops.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>Andy Colson wrote:
>In PG 9.5 this worked fine, and compiling and running PG used the 5.26 version of perl:
>root(at)firefly:/usr/local/pg95/lib/postgresql# ldd plperl.so
> libperl.so => /opt/perl5/perls/perl-5.26/lib/5.26.1/x86_64-linux-thread-multi/CORE/libperl.so (0x00007f81e8bde000)
>
>I started playing with 10, and cannot get it to use the right version of perl. I'll only use the system version:
>root(at)firefly:/usr/local/pg10/lib/postgresql# ldd plperl.so
> libperl.so => /usr/lib64/perl5/CORE/libperl.so (0x00007fc9c67d4000)
>
>But, here's the thing. The config.log reports 5.26 version:
>
>configure:7752: checking for perl
>configure:7770: found /opt/perl5/perls/perl-5.26/bin/perl
>configure:7782: result: /opt/perl5/perls/perl-5.26/bin/perl
>configure:7804: using perl 5.26.1
>...

I'm about to go down this path to prepare for 10.0, but I haven't had time yet.

You don't show your configure command, but did you set PERL there as well as have it in your PATH? Here's what I've done in the past:

./configure --prefix=/opt/pg-9.5 --with-system-tzdata --with-perl PERL=/opt/perl/bin/perl

and it used our custom Perl just fine. If you did that, I'm not sure what else to say at the moment. I hope to get around to checking out RC1 early next week though and I'll be using 5.26 as well.

Hmm, given your report, I'll try to move it up my ToDo list to give myself more time. I'll report back here if I get it to work and haven't seen a reply by you about you getting it to work also.

Kevin

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2017-09-29 14:32:04 Re: PG 10 and perl
Previous Message Jehan-Guillaume (ioguix) de Rorthais 2017-09-29 09:43:48 Re: Speed of conversion from int to bigint