apache, postgresql, perl

Tom Allison tom at tacocat.net
Tue Jun 24 19:38:27 PDT 2008


I ran into a problem with trying to set up a cgi page on my macbook.

The code uses CGI and DBD::Pg.
 From the command line, it works great.

 From Apache it works badly...

Can't load 
'/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBD/Pg/Pg.bundle' 
for module DBD::Pg: 
dlopen(/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBD/Pg/Pg.bundle, 
1): Library not loaded: /usr/local/pgsql/lib/libpq.5.dylib


I have no /usr/local/pgsql/...
But I have a
/opt/local/lib/postgresql83/libpq.5.dylib

which was put there by the mac port installation.

How do I get these mac port installations playing nice together?


More information about the macports-users mailing list