- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我跑:
perl -MCPAN -e 'install Bundle::DBD::Pg'
它问:
Path to pg_config?
我说:
/Library/PostgreSQL/9.3/bin/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
我看到 DBI_USER 配置转向 jgp(我的登录名),我也在数据库中创建了它。
关于我应该从哪里开始的任何提示?
根据要求,这里是完整的测试结果:
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
我必须承认我是 perl 和 PostgreSQL 的新手。
最佳答案
看起来像this has been fixed但尚未包含在新版本中。显然,“Postgres 在 9.3 中变得不那么健谈了。”
CPAN (v2.20.1_6) 上有一个开发者版本可用。安装:
cpan TURNSTEP/DBD-Pg-2.20.1_6.tar.gz
或者您可以使用 git
获取最新的源代码。
关于perl - 安装 perl DBD :Pg on Mac,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21415607/
我正在尝试在 Ubuntu 12.04 上运行生物信息学工具 OrthoMCL。此工具需要一个 MySQL 数据库来进行数据处理。我的 SQL 数据库运行良好,版本为 5.5.34。 OrthoMCL
安装信息: Using DBI 1.608 (for perl 5.008009 on x86_64-linux) installed in /usr/local/lib/perl5/site_per
当尝试运行从 PHP 网页创建新 oracle 数据库的 perl 脚本时,出现错误。 我的 PHP 页面托管在 linux 服务器 (centos7) 更新了以下环境变量: export ORACL
在http://kobesearch.cpan.org/htdocs/DBD-mysql/DBD/mysql.pm.html有对 ODBC 的某些引用,但 afaik DBD::mysql 在连接堆栈
因为使用 DBD::mysql 的类似语句似乎工作正常,当使用 DBD::SQLite 时,我在 HAVING 子句中使用整数占位符的错误在哪里?作为 DBI 驱动程序? #!/usr/bin/per
我写了下面的代码: $dbh = DBI->connect('dbi:SQLite:mysqlite.db', "", "") || die "Cannot connect: $DBI::errstr
#!/usr/bin/env perl use warnings; use strict; use DBI; my $dbh = DBI->connect( "DBI:CSV:", '', '', {
我尝试了 3 种不同的方法来将多行(超过 500 行)插入到 SQLite 表中。与直觉相反,下面的方法 3 是最快的。我本以为方法 2 是最快的,因为它使用“准备好的”语句句柄。但是我的第三种方法—
有人可以指导我如何安装 Perl DBD::Oracle模块? 这是我到目前为止所做的: 平台:RHEL 5.8 64 位 已安装 Perl DBI 包 安装了适用于 Linux 64 位的 Orac
我试图在 Mac OS 上运行 Perl DBI 并不断遇到此错误: install_driver(mysql) failed: Can't load '/Library/Perl/5.18/darw
我很难让手动事务按照 DBD::Pg 中的记录工作,或者我只是误解了所述文档。 我的理解是,如果我想手动管理事务,我应该关闭 AutoCommit。 $dbh->{AutoCommit} = 0; $
为什么行 "$rc = $dbh->func( 'dropdb', $dbname, 'admin' );"删除数据库 db_test_2? #!/usr/bin/perl use warnings;
我正在尝试使用 DBD::Mock测试使用数据库的代码。到目前为止,正常的 SQL 查询工作得很好,但是我对如何测试调用存储过程的代码有些不知所措。使用 DBD::Mock::Session->new
我想通过 Perl 连接到 Oracle 数据库。为此,我尝试使用以下命令从 CPAN 安装 DBD::Oracle: [root@localhost Admin]# cpan DBD::Oracle
我曾尝试在 Linux 和 Windows 上使用 DBD::Advantage,但没有成功。 Windows 版本附带了一个看似完整的安装程序,但它留下了 DBD-Advantage-8.10.ta
我正在尝试使用带有 DBI 和 DBD::CSV 的德式 CSV 文件。这反过来又使用 Text::CSV 来解析文件。我想使用 SQL 查询该文件中的数据。 我们先来看看文件。它由分号( ; )分隔
我有两个疑问 当我运行以下 perl 脚本时,我收到以下错误 Unable to connect: ORA-12154: TNS:could not resolve the connect ident
有人可以解释一下 DBI 和 DBD 到底是什么吗?什么时候应该使用其中一种以及使用一种的好处。 最佳答案 DBI 是数据库访问库,而 DBD 是 DBI 用来访问特定数据库的“驱动程序”(例如,一个
在写我的问题时(如何:插入一个新条目,如果已经存在,请更新它),我在Related Questions中找到了一些答案: $sql = "INSERT OR REPLACE INTO $table
我并行使用 SQLite 数据库。主要用于阅读——这意味着一切都很好。但也用于写入和删除表格。然后突然我在随机时间得到这个(这表明一个竞争条件 - 这是预期并行运行的东西): Error: near
我是一名优秀的程序员,十分优秀!