Re: Compiling Pl/Perl on Mac OSX

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Logan Bowers <logan(at)datacurrent(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Compiling Pl/Perl on Mac OSX
Date: 2007-09-07 02:16:39
Message-ID: 8928.1189131399@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Logan Bowers <logan(at)datacurrent(dot)com> writes:
> Has anyone had any luck compiling the Pl/Perl language on Mac OSX
> (10.4)? I get the following error:

Worksforme ... which Postgres version are you using exactly?

> gcc -no-cpp-precomp -O2 -Wall -Wmissing-prototypes -Wpointer-arith -
> Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-
> aliasing -bundle -multiply_defined suppress plperl.o spi_internal.o
> SPI.o -L/opt/local/lib -L/usr/local/lib -L/opt/local/lib/perl5/5.8.8/
> darwin-2level/CORE -L../../../src/port -L/System/Library/Perl/5.8.6/
> darwin-thread-multi-2level/CORE/ /opt/local/lib/perl5/5.8.8/
> darwin-2level/auto/DynaLoader/DynaLoader.a -lperl -ldl -lm -lc -
> bundle_loader ../../../src/backend/postgres -o libplperl.0.0.so

Actually, I'm wondering about the references to /opt/local/lib/perl5/
there; I don't see those in my build --- here's my command for linking
plperl:

gcc -no-cpp-precomp -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -g -bundle -multiply_defined suppress plperl.o spi_internal.o SPI.o -L/usr/local/lib -L/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE -L../../../src/port /System/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a -lperl -ldl -lm -lc -bundle_loader ../../../src/backend/postgres -o libplperl.0.0.so

I'm a bit suspicious that you have a non-shared-library build of Perl
under /opt, and you've done something that makes Postgres find that
instead of the Apple-supplied version.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ow Mun Heng 2007-09-07 02:21:06 Re: Column as arrays.. more efficient than columns?
Previous Message brian 2007-09-07 02:11:37 Re: log_statement and PREPARE