Question
After a successful installation of the lates TWiki beta and several
PlugIns everything was fine until I tried to install the
ActionTrackerPlugIn (including Time-modules-2003-1126 from CPAN).
And now I get the following error message for all pages:
TWiki Installation Error
Template file view.tmpl not found or template directory /srv/twiki/templates not found.
Check the $templateDir variable in TWiki.cfg.
First I checked the templates - ok.
Second I checked the settings with testenv - ok.
Third I checked the warning.txt and found:
30 Apr 2004 - 23:30 Plugin "TWiki::Plugins::TreePlugin" could not be loaded by Perl. Errors were:
Can't locate TWiki/Plugins/TreePlugin/TWikiNode.pm in
@INC
(
@INC
contains: ../lib . /usr/lib/perl5/5.8.0/i586-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl) at ../lib/TWiki/Plugins/TreePlugin.pm line 26.
BEGIN failed--compilation aborted at ../lib/TWiki/Plugins/TreePlugin.pm line 26.
Compilation failed in require at (eval 27) line 1.
BEGIN failed--compilation aborted at (eval 27) line 1.
Does anybody know this problem and how can I fix it?
Environment
--
StephanPulver - 30 Apr 2004
Answer
You have a relative path for libraries. Loading of libs can fail if the current directory gets changed by a Plugin that gets initialized beforehand. Set an absolute path in your
twiki/bin/setlib.cfg for the TWiki libs and you should be fine.
--
PeterThoeny - 01 May 2004
I tried this but still have the same effect?
01 May 2004 - 09:33 Plugin "TWiki::Plugins::TreePlugin" could not be loaded by Perl. Errors were:
Can't locate TWiki/Plugins/TreePlugin/TWikiNode.pm in
@INC
(
@INC
contains: /srv/twiki/lib . /usr/lib/perl5/5.8.0/i586-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl) at /srv/twiki/lib/TWiki/Plugins/TreePlugin.pm line 26.
BEGIN failed--compilation aborted at /srv/twiki/lib/TWiki/Plugins/TreePlugin.pm line 26.
Compilation failed in require at (eval 27) line 1.
BEGIN failed--compilation aborted at (eval 27) line 1.
Any thing else I could try?
--
StephanPulver - 30 Apr 2004
What does
InstalledPlugins say?
--
MartinCleaver - 01 May 2004
I do not come that far. The only page I can call is bin/testenv
--
StephanPulver - 01 May 2004