You are here: Foswiki>Tasks Web>Item13825 (18 Sep 2017, MichaelDaum)Edit Attach

Item13825: SolrPlugin last update complains about Cache::FileCache, which is installed

pencil
Priority: Low
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: SolrPlugin
Branches: master
Reported By: MichelMallejac
Waiting For:
Last Change By: MichaelDaum
While upgrading SolrPlugin, I get :

MISSING
    Cache::FileCache version > 0 required -- installed version is 0 - Required

In working/logs/error.log :

Can't locate Cache/FileCache.pm in @INC (@INC contains: /home/data/www/doc.4next.ch/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . /home/data/www/doc.4next.ch/lib/CPAN/lib) at /home/data/www/doc.4next.ch/lib/Foswiki/Plugins/SolrPlugin/Index.pm line 29.
 at /home/data/www/doc.4next.ch/lib/Foswiki/Plugins/SolrPlugin/Index.pm line 29.

I've installed this module with : aptitude show libcache-cache-perl ; my server is Ubuntu 12.04.5 LTS , previous installation / upgrades of SolrPlugin did not complain.

# cpanm --sudo --skip-installed Cache::FileCache
Cache::FileCache is up to date. (undef)

# locate FileCache.pm
/usr/share/perl/5.14.2/FileCache.pm
/usr/share/perl5/Cache/FileCache.pm
/usr/share/perl5/Cache/SizeAwareFileCache.pm

-- MichelMallejac - 19 Oct 2015

same:

 MISSING

    Cache::FileCache version > 0 required -- installed version is 0 - Required

root@foswiki:/usr/bin# cpan Cache::FileCache
Loading internal null logger. Install Log::Log4perl for logging messages
CPAN: Storable loaded ok (v2.49_01)
Reading '/root/.cpan/Metadata'
  Database was generated on Wed, 01 Feb 2017 12:41:02 GMT
CPAN: Module::CoreList loaded ok (v5.20150214)
Cache::FileCache is up to date (undef).

-- IgorGiunta - 02 Feb 2017

I get the same error on CentOS. Cache::FileCache is installed. # rpm -qf /usr/share/perl5/vendor_perl/Cache/FileCache.pm perl-Cache-Cache-1.06-12.el7.noarch

The problem seems to be that the DEPENDENCIES for the SolrPlugin has: Cache::FileCache,>0,cpan,Required but Cache::FileCache doesn't actually define a $VERSION variable so the check fails. I don't know enough about the proper syntax of the DEPENDENCIES file to know how to tell it to be OK without a defined version. As a workaround I edited FileCache.pm on my system to add a $VERSION variable but that's not a real long-term fix.

-- DavidM - 15 Feb 2017

Cache::FileCache is part of Cache::Cache ... will fix the DEPENDENCIES accordingly to make the installer happy again.

-- MichaelDaum - 18 Sep 2017
 

ItemTemplate edit

Summary SolrPlugin last update complains about Cache::FileCache, which is installed
ReportedBy MichelMallejac
Codebase 2.0.2
SVN Range
AppliesTo Extension
Component SolrPlugin
Priority Low
CurrentState Closed
WaitingFor
Checkins SolrPlugin:6c3020c57652
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches master
trunkCheckins
masterCheckins SolrPlugin:6c3020c57652
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r4 - 18 Sep 2017, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy