Question
I am instalilng a TWiki at work. I have a weird error from configure. There isn't much information to go on:
Error: LocalSite.cfg is unreadable or has a configuration problem that is causing a Perl error - the following message(s) was generated:
require failed:
The @INC
path is
/home/y/share/twiki/lib/CPAN/lib//arch/:/home/y/share/twiki/lib/CPAN/lib//5.6.1/i386-freebsd/:/home/y/share/twiki/lib/CPAN/lib//5.6.1/:/home/y/share/twiki/lib/CPAN/lib//:/home/y/share/twiki/lib:/home/y/lib/perl5/5.6.1/i386-freebsd:/home/y/lib/perl5/5.6.1:/home/y/lib/perl5/site_perl/5.6.1/i386-freebsd:/home/y/lib/perl5/site_perl/5.6.1:/home/y/lib/perl5/site_perl:.
LocalSite.cfg is readable
-rw-rw-rw- 2 nobody wheel 700 Nov 20 11:18 LocalSite.cfg
and contains
my $incdir = getTWikiLibDir() . "/include";
foreach my $incfile (sort glob("$incdir/*.cfg")) {
do $incfile;
}
$TWiki::cfg{ScriptUrlPath} = '/twiki/bin';
$TWiki::cfg{DefaultUrlHost} = 'http://box.company.com:5050';
$TWiki::cfg{Plugins}{ChecklistPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{ContributorsPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{TreeBrowserPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{TreePlugin}{Enabled} = 1;
$TWiki::cfg{Password} = '6AT2Pd6GN.Vrk';
$TWiki::cfg{Plugins}{TimeTablePlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{ToolTipPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{ExplicitNumberingPlugin}{Enabled} = 1;
$TWiki::cfg{Plugins}{XmlQueryPlugin}{Enabled} = 1;
1;
So... can anyone suggest what "require" might have failed? Where? How?
Can't find one of the plugins?? They all seem to be accounted for in lib/TWiki/Plugins
Environment
--
VickiBrown - 20 Nov 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
The routine
getTWikiLibDir() is defined in namespace TWiki, but
LocalSite.cfg is evaluated in
TWiki::Configure::Load in recent versions. An easy way to get it working should be to replace
getTWikiLibDir() by
TWiki::getTWikiLibDir().
However, as far as I know, in recent versions of TWiki
LocalSite.cfg is always written from scratch, which would imply that your initial loop over reading
*.cfg will get lost. It looks like
/include is some sort of site configuration - where does it come from?
--
HaraldJoerg - 20 Nov 2007
Hmmm... that may have come along for the ride wth the internally repackaged TWiki. Perhaps I'll try taking that loop out...
--
VickiBrown - 20 Nov 2007