just starting out with perl (trying to get an Request Tracker install working): For some reason I can't install Cache::Cache! (or rather the tests are failing): Notes: perl 5.8.8 on CentOS 5.8 Final (x86_64, 2.6.18-308.13.1.el5), Apache 2.2.23 (I've seen no reports for 2.6.18-308 on cpan.org, but some versions of 2.6.18-xyz fail (mostly alpha5 or xend4 versions are the failures), but most pass:
I've tried with cpan, cpanm, I've tried to use pm-uninstall to get rid of it, but it says it's not there..
cpanm Cache::Cache
--> Working on Cache::Cache
Fetching http://www.cpan.org/authors/id/J/JS/JSWARTZ/Cache-Cache-1.06.tar.gz ... OK
Configuring Cache-Cache-1.05 ... OK
Building and testing Cache-Cache-1.06 ... FAIL
! Installing Cache::Cache failed. See /root/.cpanm/build.log for details.
so I:
more /root/.cpanm/build.log
relevant section of output is (seems to be):
Manifying blib/man3/Cache::NullCache.3
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1_test_cache_interface.t ................. ok
t/2_test_memory_cache.t .................... ok
Error:
Can't call method "set_size" on unblessed reference at /root/.cpanm/work/1354840722.23539/Cache-Cache-1.06/blib/lib/Cache/BaseCache.pm line 240.
Can't call method "set_size" on unblessed reference at /usr/local/lib/perl5/site_perl/5.8.8/Error.pm line 38.
Error::_throw_Error_Simple('HASH(0x11e14db8)') called at /usr/local/lib/perl5/site_perl/5.8.8/Error.pm line 310
Error::subs::run_clauses('HASH(0x11e14d48)', 'Can\'t call method "set_size" on unblessed reference at /root...', undef, 'ARRAY(0x11efcbd8)') called at /usr/local/lib/perl5/site_perl/5.8.8/Error.pm line
430
Error::subs::try('CODE(0x11e14ba8)', 'HASH(0x11e14d48)') called at /root/.cpanm/work/1354840722.23539/Cache-Cache-1.06/blib/lib/Cache/CacheTester.pm line 59
Cache::CacheTester::test('Cache::CacheTester=HASH(0x11e14ae8)', 'Cache::FileCache=HASH(0x121d2ea8)') called at t/3_test_file_cache.t line 41
t/3_test_file_cache.t ......................
Failed 33/35 subtests
Error:
Can't call method "set_size" on unblessed reference at /root/.cpanm/work/1354840722.23539/Cache-Cache-1.06/blib/lib/Cache/BaseCache.pm line 240.
Can't call method "set_size" on unblessed reference at /usr/local/lib/perl5/site_perl/5.8.8/Error.pm line 38.
Error::_throw_Error_Simple('HASH(0x15e77d8)') called at /usr/local/lib/perl5/site_perl/5.8.8/Error.pm line 310
Error::subs::run_clauses('HASH(0x15e7768)', 'Can\'t call method "set_size" on unblessed reference at /root...', undef, 'ARRAY(0x15a1bd8)') called at /usr/local/lib/perl5/site_perl/5.8.8/Error.pm line 43
0
Error::subs::try('CODE(0x15e74a8)', 'HASH(0x15e7768)') called at /root/.cpanm/work/1354840722.23539/Cache-Cache-1.06/blib/lib/Cache/CacheTester.pm line 59
Cache::CacheTester::test('Cache::CacheTester=HASH(0x15e7618)', 'Cache::SharedMemoryCache=HASH(0x15e6af8)') called at t/4_test_shared_memory_cache.t line 41
t/4_test_shared_memory_cache.t .............
Failed 33/35 subtests
And then it just repeats for a while...
This is line 240/241 from /root/.cpanm/work/1354840722.23539/Cache-Cache-1.06/blib/lib/Cache/BaseCache.pm
$object->set_size( $self->_get_backend( )->
get_size( $self->get_namespace( ), $p_key ) );
Sorry if this seems like a total newb question. I've searched for so many different string combinations from all of these different errors and it's like nobody has ever had this problem before. To boot, I read about Cache::Cache, that it's like so solid that it hasn't been updated in two years or something, and it's one of the most common modules.
I need this module because it's a dependency of HTML::Mason, which is a dependency of Request Tracker 4.0.8. I've installed almost all the other dependencies (I've tried installing IPC::ShareLite, successfully, and 'mason' instead, to no avail). Sure I could force install something, but I'm really not that comfortable with it as a newbie to just go around '--force' everything, as I know that it won't necessarily work, and that's what the tests are telling me.
The other modules I can see I'm missing, some of which fail to be installed mentioned above, and additionally Plack won't install:
PSGI missing dependencies:
Plack ...MISSING
HTML::Mason ...MISSING
Can't locate HTML/Mason.pm in @INC
HTML::Mason::PSGIHandler ...MISSING
Can't locate HTML/Mason/PSGIHandler.pm in @INC
Plack::Handler::Starlet ...MISSING