Postgres and DB::Pg on OS X
13:42:32 MST on Saturday January 28 2006 #When using the PostgreSQLforMac project's install of Postgres and trying to install perl's DBD::Pg from CPAN the installs fails dieing with this message:
Could not connect: install_driver(Pg) failed:
Can't load 'Pg.bundle' for module DBD::Pg: dlopen( .. ):
Symbol not found: _krb5_free_error
The fix is simple, and easy if you read the error, merely add -lk5crypto to the POSTGRES_LIB you export. However this fact was ungoogle-able and I had to actually look about to figure out what was up. Hopefully this entry will save you the trouble:)
Anyhow here's how to do it:
export POSTGRES_LIB
="/Library/PostgreSQL8/lib/ -lcrypto -lssl -lk5crypto"
export POSTGRES_INCLUDE="/Library/PostgreSQL8/include/"
perl Makefile.PL ;
make ; make test;