From: | Logan Bowers <logan(at)datacurrent(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Compiling Pl/Perl on Mac OSX |
Date: | 2007-09-05 22:52:16 |
Message-ID: | 0E7032E1-D681-4230-A436-977F251E5028@datacurrent.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hello all,
Has anyone had any luck compiling the Pl/Perl language on Mac OSX
(10.4)? I get the following error:
*** 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 I modify Makefile.global and set "perl_useshrplib = true" I get
the linker error:
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
/usr/bin/ld: Undefined symbols:
_PL_errgv
_PL_markstack_max
_PL_markstack_ptr
_PL_na
_PL_stack_base
_PL_stack_max
_PL_stack_sp
_PL_sv_undef
_PL_tmps_floor
_PL_tmps_ix
_PL_curpad
_PL_op
_PL_sv_yes
collect2: ld returned 1 exit status
make[3]: *** [libplperl.0.0.so] Error 1
make[2]: *** [all] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2
Not super surprising, of course, but if I look for libperl, I find:
/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE/libperl.dylib
/System/Library/Perl/lib/5.8/libperl.dylib
Which seems like it should fit the bill. I can't seem to find any
docs online that say one way or another how I can make this work.
Any thoughts? Thanks!
Logan Bowers
From | Date | Subject | |
---|---|---|---|
Next Message | Liam Slusser | 2007-09-05 22:57:32 | pg_dump doesn¹t dump everything? |
Previous Message | Rodrigo De León | 2007-09-05 21:45:28 | Re: Querying database for table pk - better way? |