|Subject:||Test that DBIC Modules Load|
|Date:||Fri, 15 Feb 2013 11:54:54 +0000|
|To:||bug-DBIx-Class [...] rt.cpan.org|
|From:||Daniel Perrett <dperrett [...] cambridge.org>|
BACKGROUND I installed DBIx::Class 0.08123 on Strawberry perl 5.12.3 using ppm (OS: XP Pro). The install was successful, but, while trying to run a minimal app (attached), DBIx::Class failed with this message: Can't locate Carp/Clan.pm in @INC (@INC contains: AudioDB/lib C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .) at C:/strawberry/perl/site/lib/DBIx/Class/Exception.pm line 6. BEGIN failed--compilation aborted at C:/strawberry/perl/site/lib/DBIx/Class/Exception.pm line 6. Compilation failed in require at C:/strawberry/perl/site/lib/DBIx/Class/Schema.pm line 6. BEGIN failed--compilation aborted at C:/strawberry/perl/site/lib/DBIx/Class/Schema.pm line 6. Compilation failed in require at (eval 2) line 2. ...propagated at C:/strawberry/perl/lib/base.pm line 94. BEGIN failed--compilation aborted at AudioDB/lib/AudioDB/Schema.pm line 4. Compilation failed in require at adb-test.pl line 5. BEGIN failed--compilation aborted at adb-test.pl line 5. DBIx/Class/Exception.pm does indeed call Carp::Clan on line 6. I'm sure I can fix it by installing Carp::Clan, but I presume it ought to have gone in the DBIx::Class dependencies, as it's not a core module. DBIx::Class has now switched to a home-grown solution. I'm now upgrading using CPAN instead of ppm and have filed a bug with Strawberry separately to get a better DBIx::Class version. ACTION REQUESTED However, oddly, I also couldn't find any tests that guaranteed all the classes could be loaded ok, but the test suite is pretty big, so possibly I missed them. Nevertheless, clearly 0.8123 passed on a lot of machines, and where it failed, didn't necessarily say anything about Carp::Clan. Should such a test be included, if it is not already? Daniel
Message body not shown because it is not plain text.