有人可以帮助弄清问题是什么。我重新安装了所有依赖包,但问题没有解决。
在另一台服务器上,这种组合非常有效。
$ cd DBIx-Class-Schema-Loader-0.07040 && make test
我的测试失败,例如:
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/backcompat/0.04006/*.t
t/01use.t ............................... ok
t/02pod.t ............................... ok
t/10_01sqlite_common.t .................. Couldn't build importer for 1: syntax error at (eval 63) line 2, at EOF
BEGIN failed--compilation aborted at /usr/local/share/perl/5.18.2/DBIx/Class/Storage/BlockRunner.pm line 18.
Compilation failed in require at /usr/local/share/perl/5.18.2/DBIx/Class/Storage.pm line 16.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.18.2/DBIx/Class/Storage.pm line 16.
Compilation failed in require at (eval 57) line 2.
...propagated at /usr/share/perl/5.18/base.pm line 83.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.18.2/DBIx/Class/Storage/DBIHacks.pm line 13.
Compilation failed in require at (eval 56) line 2.
...propagated at /usr/share/perl/5.18/base.pm line 83.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.18.2/DBIx/Class/Storage/DBI.pm line 7.
Compilation failed in require at t/lib/dbixcsl_common_tests.pm line 1417.
(in cleanup) Attempt to reload DBIx/Class/Storage/DBI.pm aborted.
Compilation failed in require at t/lib/dbixcsl_common_tests.pm line 1417.
# Looks like your test exited with 255 before it could output anything.
t/10_01sqlite_common.t .................. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 308/308 subtests
t/10_02mysql_common.t ................... skipped: You need to set the DBICTEST_MYSQL_DSN, DBICTEST_MYSQL_USER, and DBICTEST_MYSQL_PASS environment variables
t/10_03pg_common.t ...................... skipped: You need to set the DBICTEST_PG_DSN, _USER, and _PASS environment variables
t/10_04db2_common.t ..................... skipped: You need to set the DBICTEST_DB2_DSN, _USER, and _PASS environment variables
t/10_05ora_common.t ..................... skipped: You need to set the DBICTEST_ORA_DSN, _USER, and _PASS environment variables
t/10_06sybase_common.t .................. skipped: You need to set the DBICTEST_SYBASE_DSN, _USER, and _PASS environment variables
t/10_07mssql_common.t ................... skipped: You need to set the DBICTEST_MSSQL_DSN, _USER and _PASS and/or the DBICTEST_MSSQL_ODBC_DSN, _USER and _PASS environment variables
t/10_08sqlanywhere_common.t ............. skipped: You need to set the DBICTEST_SQLANYWHERE_DSN, _USER and _PASS and/or the DBICTEST_SQLANYWHERE_ODBC_DSN, _USER and _PASS environment variables
t/10_09firebird_common.t ................ skipped: You need to set the DBICTEST_FIREBIRD_DSN, _USER and _PASS and/or the DBICTEST_FIREBIRD_INTERBASE_DSN and/or the DBICTEST_FIREBIRD_ODBC_DSN environment variables
t/10_10informix_common.t ................ skipped: You need to set the DBICTEST_INFORMIX_DSN, _USER, and _PASS environment variables
t/10_11msaccess_common.t ................ skipped: You need to set the DBICTEST_MSACCESS_ODBC_DSN, and optionally _USER and _PASS and/or the DBICTEST_MSACCESS_ADO_DSN, and optionally _USER and _PASS environment variables
t/20invocations.t ....................... DBIx::Class::Schema::connection(): Unable to load storage class DBIx::Class::Storage::DBI: {UNKNOWN}: Couldn't build importer for 1: syntax error at (eval 246) line 2, at EOF
BEGIN failed--compilation aborted at / usr/local/share/perl/5.18.2/DBIx/Class/Storage/BlockRunner.pm line 18.
Compilation failed in require at /usr/local/share/perl/5.18.2/DBIx/Class/Storage.pm line 16.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.18.2/DBIx/Class/Storage.pm line 16.
Compilation failed in require at (eval 236) line 2.
...propagated at /usr/share/perl/5.18/base.pm line 83.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.18.2/DBIx/Class/Storage/DBIHacks.pm line 13.
Compilation failed in require at (eval 235) line 2.
...propagated at /usr/share/perl/5.18/base.pm line 83.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.18.2/DBIx/Class/Storage/DBI.pm line 7.
Compilation failed in require at /usr/share/perl5/Class/C3/Componentised.pm line 150. at /usr/share/perl5/Class/C3/Componentised.pm line 155 at t/20invocations.t line 37
# Looks like your test exited with 255 before it could output anything.
t/20invocations.t ....................... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 68/68 subtests
...