2014-01-28 6 views
1

에 대학원을 나는 실행펄 DBD 설치 : 맥

perl -MCPAN -e 'install Bundle::DBD::Pg' 

가 묻습니다 :

/Library/PostgreSQL/9.3/bin/pg_config 

이 실행 ... 그리고 마지막 라인은 다음과 같습니다

Path to pg_config? 

내가 말 :

Test Summary Report 
------------------- 
t/02attribs.t  (Wstat: 256 Tests: 249 Failed: 1) 
    Failed test: 23 
    Non-zero exit status: 1 
Files=15, Tests=1691, 29 wallclock secs (0.23 usr 0.05 sys + 5.29 cusr 1.65 csys = 7.22 CPU) 
Result: FAIL 
Failed 1/15 test programs. 1/1691 subtests failed. 
make: *** [test_dynamic] Error 255 
    TURNSTEP/DBD-Pg-2.19.3.tar.gz 
    /usr/bin/make test -- NOT OK 
//hint// to see the cpan-testers results for installing this module, try: 
    reports TURNSTEP/DBD-Pg-2.19.3.tar.gz 
Running make install 
    make test had returned bad status, won't install without force 

DB에서 생성 한 jgp (내 로그인)로 DBI_USER 구성을 보았습니다.

어디서부터 시작해야합니까? 나는 펄과 PostgreSQL에 새로운 오전

Running make test 
PGINITDB="/Library/PostgreSQL/9.3/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.t .... skipped: Set the environment variable TEST_SIGNATURE to enable this test 
t/00basic.t ......... ok 
t/01connect.t ....... Please wait, creating new database for testing 
t/01connect.t ....... 1/15 # 
# DBI       Version 1.631 
# DBD::Pg      Version 2.19.3 
# Perl      Version 5.16.2 
# OS       darwin 
# PostgreSQL (compiled)  90302 
# PostgreSQL (target)   90302 
# PostgreSQL (reported)  PostgreSQL 9.3.2 on x86_64-apple-darwin, compiled by i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00), 64-bit 
# Default port    5432 
# DBI_DSN      dbi:Pg:db="postgres";port=5440;host=<pwd>/dbdpg_test_database/data/socket 
# DBI_USER     jgp 
# Test schema     dbd_pg_testschema 
# LANG      C 
# array_nulls     on 
# backslash_quote    safe_encoding 
# client_encoding    UTF8 
# server_encoding    UTF8 
# standard_conforming_strings on 
# Adjusted:     initdb 
t/01connect.t ....... ok  
t/01constants.t ..... ok  
t/02attribs.t ....... 1/249 
# Failed test 'DB handle attribute "PrintWarn" shows warnings when on' 
# at t/02attribs.t line 263. 
#     '' 
#  doesn't match '(?^:dbd_pg_test_temp)' 
    (in cleanup) DBD::Pg::st DESTROY failed: no connection to the server at t/02attribs.t line 1558. 
# Looks like you failed 1 test of 249. 
t/02attribs.t ....... Dubious, test returned 1 (wstat 256, 0x100) 
Failed 1/249 subtests 
t/03dbmethod.t ...... ok  
t/03smethod.t ....... ok  
t/04misc.t .......... 1/70 # Checking pg_st_split_statement. This may take a while... 
t/04misc.t .......... ok  
t/06bytea.t ......... ok  
t/07copy.t .......... ok  
t/08async.t ......... ok  
t/09arrays.t ........ ok  
t/12placeholders.t .. ok  
t/20savepoints.t .... ok 
t/99cleanup.t ....... 1/1 Removing test database directory 
t/99cleanup.t ....... ok 

내가 인정해야합니다 요청으로

, 여기에 전체 테스트 결과입니다.

+1

시험에 실패 했나요? (테스트 요약이 아님) – ThisSuitIsBlackNot

+0

방금 ​​전체 테스트 결과 - tx로 내 게시물을 편집했습니다! – jgp

답변

2

this has been fixed으로 보이지만 아직 새 릴리스에는 포함되어 있지 않습니다. 분명히, "Postgres는 9.3에서 덜 수면했다."

CPAN (v2.20.1_6)에서 사용할 수있는 개발자 릴리스가 있습니다. 설치할 위치 :

cpan TURNSTEP/DBD-Pg-2.20.1_6.tar.gz 

git으로 최신 소스를 가져올 수 있습니다.

이 나를 위해 일
+0

지금은 효과가있는 것 같습니다. tx – jgp

0

, 난 단지 pg_config 질문, 내 대답이었다 대답했다 : /Applications/Postgres.app/Contents/Versions/9.5/bin/pg_config를

의 출력을 무엇
+0

다른 답변은 문제를 해결합니다. 이것은 정말로 논평입니다. 조금 더 많은 담당자와 함께 [주석을 게시 할 수 있습니다] (// stackoverflow.com/privileges/comment). – Raju