NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item9693 for docu changes for 1.2 and 2.0.

Item230: lib/CPAN/lib missing in INC path

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Engine configure, might be global  
I am using a fresh trunk checkout.

Installation

  1. Installing with pseud-install default
  2. chown: All direcotries are owned by the script user.
  3. adding my DocRoot path to LocalLib.cfg in bin ( renaming )
  4. creating data/.htpasswd

Issue

Running bin/configrue, then lookin in the CGi-Setup tab is see this error under the "Foswiki module in @INC path"
Error: Foswiki.pm could not be loaded. The error was:

Can't locate Error.pm in @INC (@INC contains: /var/www/www.collaborganize.de/core/lib /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at /var/www/www.collaborganize.de/core/lib/Foswiki.pm line 50.
BEGIN failed--compilation aborted at /var/www/www.collaborganize.de/core/lib/Foswiki.pm line 50.
Compilation failed in require at (eval 85) line 3.

Suggestion

Something is broken in setlib.cfg


Nothing is broken in setlib.cfg; the normal installation procedure for a checkout works perfectly. I have no idea what your DocRoot path is, nor why you would add it to LocalLib.cfg. The only things in LocalLib.cfg should be:
$ENV{TWIKI_ASSERTS} = 1;
$twikiLibPath = "/home/foswiki/trunk/core/lib";

-- CrawfordCurrie - 22 Nov 2008 - 18:20


I'm afraid I'd have to agree it might not be setlib.cfg, but there is something broken.

If I read setlib.cfg correctly, if his $twikiLibPath/lib/CPAN/lib exists, it should add a few things in @INC. From what I could test, it does add them (added some debugging at the end of setlib.cfg), but I never could see them being added through the @INC which is displayed on configure.

So there is something fishy in the Kingdom of Danemark. But I'm not sure setlib.cfg is to blame.

-- OlivierRaginel - 22 Nov 2008 - 23:15
> pwd
/var/www/www.collaborganize.de/core/lib/CPAN/lib
> ll
total 52K
drwxr-xr-x 3 www-data www-data 4.0K Nov 21 11:21 Text/
drwxr-xr-x 3 www-data www-data 4.0K Nov 21 11:21 Package/
drwxr-xr-x 4 www-data www-data 4.0K Nov 21 11:21 Locale/
drwxr-xr-x 4 www-data www-data 4.0K Nov 21 11:21 CGI/
drwxr-xr-x 3 www-data www-data 4.0K Nov 21 11:21 Algorithm/
drwxr-xr-x 6 www-data www-data 4.0K Nov 23 15:46 .svn/
drwxr-xr-x 4 www-data www-data 4.0K Nov 21 11:21 ../
drwxr-xr-x 8 www-data www-data 4.0K Nov 21 11:21 ./
-rw-r--r-- 1 www-data www-data  17K Nov 21 11:21 Error.pm

Problem seems to be fixed for me with changeset: http://trac.foswiki.org/changeset/887

Can i close the bug or does someone still have problems? EugenMayer 23 Von 18:22
Normal practice is to say "Closing this as fixed. Anyone who still has problems please re-open it". That way we avoid having too many half-open bugs in the DB.

Additional note: This seems to be same bug as TWikibug:Item6154 so we have fixed this. Great

ItemTemplate edit

Summary lib/CPAN/lib missing in INC path
ReportedBy EugenMayer
Codebase trunk
SVN Range from revision 844
AppliesTo Engine
Component configure, might be global
Priority Normal
CurrentState Closed
WaitingFor
Checkins Foswikirev:843 Foswikirev:853 Foswikirev:887
TargetRelease patch
ReleasedIn 1.0.0
Topic revision: r12 - 08 Jan 2009, KwangErnLiew
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads