Question
I had try to search information as much as possible to solve the following TWiki configuration errots, perhaps I can have some good feedback here:-
On TWiki module in
@INC
path:-
1. Error: 'TWiki.pm' could not be loaded. The error was: Can't locate TWiki.pm in
@INC
(
@INC
contains: ../lib C:/Perl/site/lib C:/Perl/lib .) at (eval 44) line 3.
2. Error: Check path to twiki/lib and check that LocalSite.cfg is present and readable
On Required Perl modules:-
1. Algorithm::Diff - Error: not installed. Required for basic TWiki
Environment
--
KarenPhang - 08 Dec 2006
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.
Your INC should not contain a relative
../lib path. Copy
twiki/bin/LocalLib.cfg.txt to
twiki/bin/LocalLib.cfg and change the settings in it to reflect your environment. Make sure the files are readable by your cgi user.
--
PeterThoeny - 08 Dec 2006
Also make sure you correct the other errors. Algorithm::Diff - Error: not installed. Required for basic TWiki
But first fix the LocalLib.cfg and this can sometimes solve other errors.
--
KennethLavrsen - 09 Dec 2006
Where to modify my INC in order not to point to the relative "../lib" path? Do I need to modify Twiki.cfg since there will be a new
LocalLib.cfg? Does absolute path means "C:\twiki\lib?" or the path that I created in IIS's virtual directory like this "/lib"? I already installed Algorithm::Diff in cygwin and the status is up to date.
The guifr in Windows+IIS+CygwinPerl Installtion Cookbook doesn't explain detail in what's the appropriate path that I should used in Twiki.cfg. Please give me an example.
--
KarenPhang - 12 Dec 2006
You should
never modify TWiki.cfg.
You set this path in
LocalLib.cfg. For example,
$twikiLibPath = 'C:\twiki\lib';
You can extend your
@INC path in
LocalLib.cfg as well, as described in
LocalLib.cfg.txt.
--
CrawfordCurrie - 14 Dec 2006