PostgreSQL 9 Mac OS X one-click install - PL/perl broken

From: "Larry Leszczynski" <larryl(at)emailplus(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: PostgreSQL 9 Mac OS X one-click install - PL/perl broken
Date: 2010-09-27 22:35:58
Message-ID: 1285626958.27649.1397181931@webmail.messagingengine.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Davis 2010-09-27 22:40:28 Re: zero_damaged_pages doesn't work
Previous Message David Boreham 2010-09-27 21:07:24 zero_damaged_pages doesn't work