SID-01095: "Can't locate setlib.cfg in @INC
" error
| Status: |
Answered |
TWiki version: |
5.0.1 |
Perl version: |
5.12.2 |
| Category: |
CategoryDeployment |
Server OS: |
Windows Server 2008 64 |
Last update: |
15 years ago |
Hello I have run configure.pl successfully and resolved all the errors and warnings. For some reason view.pl is unable to load setlib.cfg.
I get an error when I attempt to execute localhost/bin/view.pl ; i.e. when navigating to the main Twiki installation page from the link on the configuration page. The error is as reads:
Can't locate setlib.cfg in @INC
(@INC
contains: . c:/Perl/site/lib c:/Perl/lib) at C:\Twiki\bin\view.pl line 38. at C:\Twiki\bin\view.pl line 38 main::BEGIN() called at setlib.cfg line 39 eval {...} called at setlib.cfg line 39 BEGIN failed--compilation aborted at C:\Twiki\bin\view.pl line 39. at C:\Twiki\bin\view.pl line 39
at first glance it might appear that all that needs to be done is replace the local file path in setlib.cfg and $twikiLibPath in locallib.cfg to reference the absolute path of my Twiki's lib directory ( for instance change "../lib" to "c:\Twiki\lib"). I've done this already and for some reason
@INC
is still not loading setlib.cfg.
From my configuration script output I see (CGI configuration):
@INC
library path
c:/Twiki/lib
.
c:/Perl/site/lib
c:/Perl/lib
c:/Perl/lib
c:/Twiki/lib/CPAN/lib/arch
c:/Twiki/lib/CPAN/lib/5.12.2/MSWin32-x86-multi-thread
c:/Twiki/lib/CPAN/lib/5.12.2 c:/Twiki/lib/CPAN/lib
I have searched a few other problems with matching "can't locate setlib.cfg" errors but don't see any connection to my problem:
http://twiki.org/cgi-bin/view/Support/ModPerlOnRedHat80
http://twiki.org/cgi-bin/view/Support/MailNotifyAbortsCantFindSetLibCfg
http://twiki.org/cgi-bin/view/Support/TWikiCfgFileNotFound2
I have attached the output from Configure as a separate file
--
ReidPeryam - 2011-02-05
Discussion and Answer
I moved my setlib.cfg to my Perl/lib directory and is seems to resolve the issue with view.pl
Is this the proper solution or will other things also be broken?
--
ReidPeryam - 2011-02-05
Well copying the file to my perl directory apparently resolved the issue so I am inclined to believe it is answere
--
ReidPeryam - 2011-02-07
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.