[Dbix-class] Failed test when installing DBIx::Class on windows using strawberry perl

Ali M. tclwarrior at gmail.com
Wed Mar 19 07:55:58 GMT 2008


When installing DBIx::Class I got a failed test.

Should I worry, is this serious, I am new to strawberry Perl an CPAN
The thing is when I tried to install using just CPAN and Not CPANPLUS
Installing just failed, CPANPLUS allowed me to proceed! So is this normal!

Here are the commands I used to install and the output I got

PS H:\> perl -MCPANPLUS -e 'shell'
...

CPAN Terminal> install DBIx::Class

[MSG] No 'C:\Documents and Settings\Ali\Application
Data\.cpanplus\custom-sources' dir, skipping custom sources
[MSG] No 'C:\Documents and Settings\Ali\Application
Data\.cpanplus\custom-sources' dir, skipping custom sources
[MSG] No 'C:\Documents and Settings\Ali\Application
Data\.cpanplus\custom-sources' dir, skipping custom sources
Installing DBIx::Class (0.08010)
Running [C:\strawberry\perl\bin\perl.exe
C:\strawberry\perl\bin\cpanp-run-perl.bat
C:\DOCUME~1\Ali\APPLIC~1\CPANPL~1\
510~1.0\build\DBIx-Class-0.08010\Makefile.PL ]...
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies...
[Core Features]
- DBD::SQLite              ...loaded. (1.14 >= 1.13)
- Test::Builder            ...loaded. (0.74 >= 0.33)
- Data::Page               ...loaded. (2.00 >= 2)
- Scalar::Util             ...loaded. (1.19)
- SQL::Abstract            ...loaded. (1.22 >= 1.2)
- SQL::Abstract::Limit     ...loaded. (0.12 >= 0.101)
- Class::C3                ...loaded. (0.19 >= 0.13)
- Class::C3::Componentised ...loaded. (1.0003)
- Storable                 ...loaded. (2.18)
- Carp::Clan               ...loaded. (6.00)
- DBI                      ...loaded. (1.601 >= 1.4)
- Module::Find             ...loaded. (0.06)
- Class::Inspector         ...loaded. (1.22)
- Class::Accessor::Grouped ...loaded. (0.08001 >= 0.05002)
- JSON::Any                ...loaded. (1.16 >= 1)
- Scope::Guard             ...loaded. (0.03 >= 0.03)
*** Module::AutoInstall configuration finished.
Checking if your kit is complete...
Looks good
Writing Makefile for DBIx::Class

Module 'DBIx::Class' requires 'SQL::Abstract::Limit' to be installed

If you don't wish to see this question anymore
you can disable it by entering the following commands on the prompt:
    's conf prereqs 1; s save'

Should I install this module? [Y/n]: y
Running [C:\strawberry\c\bin\dmake.EXE test ]...
C:\strawberry\perl\bin\perl.exe "-Iinc" -MExtUtils::Command -e cp
script/dbicadmin blib\script\dbicadmin
pl2bat.bat blib\script\dbicadmin
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/*.t t
/*/*.t
t/02pod......................................ok
t/03podcoverage..............................skipped: set TEST_POD to
enable this test
t/04dont_break_c3............................ok
t/05components...............................ok
t/100populate................................ok
t/101populate_rs.............................ok
t/18inserterror..............................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/18inserterror..............................ok
t/19quotes...................................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/19quotes...................................1/6 # Testing against SQLite 3.4.2
t/19quotes...................................ok
t/19quotes_newstyle..........................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/19quotes_newstyle..........................1/6 # Testing against SQLite 3.4.2
t/19quotes_newstyle..........................ok
t/20setuperrors..............................ok
t/26dumper...................................skipped: Set
$ENV{DATA_DUMPER_TEST} to run this test
t/30dbicplain................................ok
t/31stats....................................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/31stats....................................ok
t/32connect_code_ref.........................DBI::db=HASH(0x123456c)->disconnect
invalidates 22 active statement handles
 (either destroy statement handles or call finish on them before
disconnecting) at C:\DOCUME~1\Ali\APPLIC~1\CPANPL~1\
510~1.0\build\DBIx-Class-0.08010\blib\lib/DBIx/Class/Storage/DBI.pm line 691.
closing dbh with active statement handles at
C:\DOCUME~1\Ali\APPLIC~1\CPANPL~1\510~1.0\build\DBIx-Class-0.08010\blib\
lib/DBIx/Class/Storage/DBI.pm line 691.
t/32connect_code_ref.........................ok
t/33storage_reconnect........................DBI::db=HASH(0x1243eb4)->disconnect
invalidates 22 active statement handles
 (either destroy statement handles or call finish on them before
disconnecting) at t/33storage_reconnect.t line 23.
t/33storage_reconnect........................1/5 closing dbh with
active statement handles at t/33storage_reconnect.t li
ne 23.
t/33storage_reconnect........................ok
t/34exception_action.........................ok
t/35disable_sth_caching......................ok
t/36datetime.................................skipped: Requires
DateTime::Format::MySQL
t/39load_namespaces_1........................ok
t/39load_namespaces_2........................ok
t/39load_namespaces_3........................ok
t/39load_namespaces_4........................ok
t/40resultsetmanager.........................ok
t/41orrible..................................ok
t/42toplimit.................................ok
t/46where_attribute..........................ok
t/47bind_attribute...........................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/47bind_attribute...........................1/7 Use of uninitialized
value in subroutine entry at C:\DOCUME~1\Ali\AP
PLIC~1\CPANPL~1\510~1.0\build\DBIx-Class-0.08010\blib\lib/DBIx/Class/Storage/DBI.pm
line 1003.
t/47bind_attribute...........................ok
t/50fork.....................................skipped: Set
$ENV{DBICTEST_FORK_STRESS} to run this test
t/51threads..................................skipped: Set
$ENV{DBICTEST_THREAD_STRESS} to run this test
t/52cycle....................................skipped: leak test needs
Test::Memory::Cycle
t/53delete_related...........................ok
t/54taint....................................ok
t/55storage_stress...........................skipped: Set
$ENV{DBICTEST_STORAGE_STRESS} to run this test (it is very res
ource intensive!)
t/60core.....................................10/78 # DBICTest::Event
t/60core.....................................ok
t/61findnot..................................ok
t/63register_class...........................ok
t/64db.......................................ok
t/65multipk..................................ok
t/66relationship.............................ok
t/67pager....................................ok
t/68inflate..................................skipped: Need DateTime
for inflation tests
t/68inflate_has_a............................skipped: Need DateTime
for inflation tests
t/68inflate_resultclass_hashrefinflator......ok
t/68inflate_serialize........................ok
t/69update...................................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/69update...................................ok
t/70auto.....................................ok
t/71mysql....................................skipped: Set
$ENV{DBICTEST_MYSQL_DSN}, _USER and _PASS to run this test
t/72pg.......................................skipped: Set
$ENV{DBICTEST_PG_DSN}, _USER and _PASS to run this test (note:
 creates and drops tables named artist and casecheck!)
t/73oracle...................................skipped: Set
$ENV{DBICTEST_ORA_DSN}, _USER and _PASS to run this test. Warn
ing: This test drops and creates tables called 'artist', 'cd' and 'track'
t/73oracle_inflate...........................skipped: needs DateTime
and DateTime::Format::Oracle for testing
t/745db2.....................................skipped: Set
$ENV{DBICTEST_DB2_DSN}, _USER and _PASS to run this test
t/746db2_400.................................skipped: Set
$ENV{DBICTEST_DB2_400_DSN}, _USER and _PASS to run this test
t/746mssql...................................skipped: Set
$ENV{DBICTEST_MSSQL_ODBC_DSN}, _USER and _PASS to run this tes
t
t/74mssql....................................skipped: Set
$ENV{DBICTEST_MSSQL_DSN}, _USER and _PASS to run this test
t/75limit....................................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/75limit....................................ok
t/76joins....................................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/76joins....................................ok
t/77join_count...............................ok
t/78self_referencial.........................ok
t/79aliasing.................................ok
t/80unique...................................ok
t/81transactions.............................20/67 Issuing rollback()
for database handle being DESTROY'd without explic
it disconnect() at t/81transactions.t line 232.
DBIx::Class::Storage::DBI::__ANON__(): DBI Exception: DBD::SQLite::db
do failed: table employee already exists(1) at dbd
imp.c line 271 [for Statement "
--
-- Table: employee
--
CREATE TABLE employee (
  employee_id INTEGER PRIMARY KEY NOT NULL,
  position integer NOT NULL,
  group_id integer,
  group_id_2 integer,
  name varchar(100)
)"] at t/lib/DBICTest.pm line 109
# Looks like you planned 67 tests but only ran 54.
# Looks like your test died just after 54.
t/81transactions............................. Dubious, test returned
255 (wstat 65280, 0xff00)
 Failed 13/67 subtests
t/82cascade_copy.............................ok
t/83cache....................................ok
t/84serialize................................ok
t/85utf8.....................................ok
t/86might_have...............................ok
t/86sqlt.....................................skipped: SQL::Translator required
t/87ordered..................................ok
t/88result_set_column........................ok
t/89dbicadmin................................skipped: Install
Text::CSV_XS or Text::CSV_PP to run this test
t/89inflate_datetime.........................skipped: Need
DateTime::Format::MySQL for inflation tests
t/90ensure_class_loaded......................ok
t/90join_torture.............................ok
t/91debug....................................ok
t/91merge_attr...............................ok
t/92storage..................................ok
t/92storage_on_connect_do....................ok
t/93nobindvars...............................skipped: Set
$ENV{DBICTEST_MYSQL_DSN}, _USER and _PASS to run this test
t/93single_accessor_object...................ok
t/94pk_mutation..............................ok
t/94versioning...............................skipped: needs
DBD::SQLite and SQL::Translator 0.09 for testing
t/95sql_maker_quote..........................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/95sql_maker_quote..........................ok
t/96file_column..............................ok
t/96multi_create.............................ok
t/97result_class.............................ok
t/bindtype_columns...........................skipped: Set
$ENV{DBICTEST_PG_DSN}, _USER and _PASS to run this test
t/cdbi-sweet-t/08pager.......................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-sweet-t/08pager.......................ok
t/cdbi-t/01-columns..........................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/01-columns..........................ok
t/cdbi-t/02-Film.............................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/02-Film.............................7/96
DBIx::ContextualFetch::db=HASH(0x129d2a4)->disconnect invalidates 8 ac
tive statement handles (either destroy statement handles or call
finish on them before disconnecting) at t/cdbi-t/02-Fil
m.t line 224.
closing dbh with active statement handles at t/cdbi-t/02-Film.t line 224.
DBD::SQLite::db prepare_cached warning: attempt to prepare on inactive
database handle(0) at dbdimp.c line 249 [for Stat
ement "SELECT me.title, me.director, me.codirector, me.rating,
me.numexplodingsheep, me.hasvomit FROM Movies me WHERE (
( me.title = ? ) )"] at
C:\DOCUME~1\Ali\APPLIC~1\CPANPL~1\510~1.0\build\DBIx-Class-0.08010\blib\lib/DBIx/Class/Storag
e/DBI.pm line 1188.
t/cdbi-t/02-Film.............................ok
t/cdbi-t/03-subclassing......................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/03-subclassing......................ok
t/cdbi-t/04-lazy.............................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/04-lazy.............................ok
t/cdbi-t/06-hasa.............................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/06-hasa.............................ok
t/cdbi-t/09-has_many.........................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/09-has_many.........................ok
t/cdbi-t/11-triggers.........................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/11-triggers.........................ok
t/cdbi-t/12-filter...........................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/12-filter...........................ok
t/cdbi-t/13-constraint.......................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/13-constraint.......................ok
t/cdbi-t/14-might_have.......................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/14-might_have.......................ok
t/cdbi-t/15-accessor.........................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/15-accessor.........................ok
t/cdbi-t/16-reserved.........................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/16-reserved.........................ok
t/cdbi-t/18-has_a............................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/18-has_a............................ok
t/cdbi-t/19-set_sql..........................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/19-set_sql..........................ok
t/cdbi-t/21-iterator.........................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/21-iterator.........................ok
t/cdbi-t/22-self_referential.................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/22-self_referential.................ok
t/cdbi-t/30-pager............................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/30-pager............................ok
t/cdbi-t/98-failure..........................Name
"DBD::SQLite::sqlite_version" used only once: possible typo at C:/STRA
WB~1/perl/lib/DynaLoader.pm line 226.
t/cdbi-t/98-failure..........................ok
t/resultset_class............................ok

Test Summary Report
-------------------
t/81transactions.t                       (Wstat: 65280 Tests: 54 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 67 tests but ran 54.
Files=106, Tests=2436, 209 wallclock secs ( 0.77 usr +  0.52 sys =  1.29 CPU)
Result: FAIL
Failed 1/106 test programs. 0/2436 subtests failed.
dmake.EXE:  Error code 255, while making 'test_dynamic'
[ERROR] MAKE TEST failed: Bad file descriptor


The tests for 'DBIx::Class' failed. Would you like me to proceed
anyway or should we abort?

Proceed anyway? [y/N]: y
*** Install log written to:
  C:\Documents and Settings\Ali\Application
Data\.cpanplus\install-logs\DBIx-Class-0.08010-1205912931.log

Module 'DBIx::Class' installed successfully
No errors installing all modules



More information about the DBIx-Class mailing list