Hi -
I use Dave Page's one-click installers for Mac OS X:
http://www.enterprisedb.com/products/pgdownload.do#osx
I recently installed PostgreSQL 9.0.0 on Mac OS X 10.5.8. PL/perl will
not load because it is looking for Perl 5.10 in the System dirs and I
only have 5.8.8:
$ ./createlang plperl my_db
createlang: language installation failed: ERROR: could not load
library "/Library/PostgreSQL/9.0/lib/postgresql/plperl.so":
dlopen(/Library/PostgreSQL/9.0/lib/postgresql/plperl.so, 10):
Library not loaded: /System/Library/Perl/lib/5.10/libperl.dylib
Referenced from:
/Library/PostgreSQL/9.0/lib/postgresql/plperl.so
Reason: image not found
I tried building plperl.so from source and copied it to
/Library/PostgreSQL/9.0/lib/postgresql/plperl.so. But then I get a
different error:
$ ./createlang plperl my_db
createlang: language installation failed: ERROR: could not load
library "/Library/PostgreSQL/9.0/lib/postgresql/plperl.so":
dlopen(/Library/PostgreSQL/9.0/lib/postgresql/plperl.so, 10):
no suitable image found. Did find:
/Library/PostgreSQL/9.0/lib/postgresql/plperl.so: mach-o,
but wrong architecture
even though the plperl.so I built looks ok:
$ file plperl.so
plperl.so: Mach-O bundle i386
Has anyone else run into this? Anybody have any suggestions?
Thanks!
Larry