Tags:
create new tag
view all tags

SID-01095: "Can't locate setlib.cfg in @INC" error

Status: Answered 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

      Change status to:
ALERT! 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.

SupportForm
Status Answered
Title "Can't locate setlib.cfg in @INC" error
SupportCategory CategoryDeployment
TWiki version 5.0.1
Server OS Windows Server 2008 64
Web server IIS 7
Perl version 5.12.2
Topic attachments
I Attachment History Action Size Date Who Comment
HTMLhtml ReidTwikiInstallConfiguration.html r1 manage 57.1 K 2011-02-05 - 02:38 ReidPeryam the text output from my configuration.pl (no errors or warnings)
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2011-02-07 - ReidPeryam
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.