I get the following error when I try to run "make test":

bash-3.2$ make test
PGINITDB="/Library/PostgreSQL/9.0/bin/initdb" PERL_DL_NONLAZY=1 /usr/bin/perl 
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-signature......skipped
        all skipped: Set the environment variable TEST_SIGNATURE to enable this 
test
t/00basic...........ok 1/3                                                   
#   Failed test 'use DBD::Pg;'
#   in t/00basic.t at line 14.
#     Tried to use 'DBD::Pg'.
#     Error:  Can't load 
'/Users/markfarman/Downloads/DBD-Pg-2.17.2/blib/arch/auto/DBD/Pg/Pg.bundle' for 
module DBD::Pg: 
dlopen(/Users/markfarman/Downloads/DBD-Pg-2.17.2/blib/arch/auto/DBD/Pg/Pg.bundle,
 2): Library not loaded: libpq.5.dylib
#   Referenced from: 
/Users/markfarman/Downloads/DBD-Pg-2.17.2/blib/arch/auto/DBD/Pg/Pg.bundle
#   Reason: image not found at 
/System/Library/Perl/5.8.8/darwin-thread-multi-2level/DynaLoader.pm line 230.
#  at (eval 6) line 2
# Compilation failed in require at (eval 6) line 2.
# BEGIN failed--compilation aborted at t/00basic.t line 14.
t/00basic...........NOK 2FAILED--Further testing stopped: Cannot continue 
without DBD::Pg
make: *** [test_dynamic] Error 2

Any idea what is the problem?  I checked the Pg.bundle at 
'/Users/markfarman/Downloads/DBD-Pg-2.17.2/blib/arch/auto/DBD/Pg/Pg.bundle' and 
it has the appropriate permissions.  I also checked for libpq.5.dylib in the 
Postgres lib directory.  It is present but appear to be a symbolic link to a 
file named libpq.5.3.dylib.

Mark L Farman 
Professor
Department of Plant Pathology
University of Kentucky
225 Plant Science Building
1405 Veteran's Dr.
Lexington, KY 40546 USA 
tel: 859 257 7445 x 80728 
fax: 859 323 1961

Reply via email to