You are here: Foswiki>Tasks Web>Item230 (08 Jan 2009, KwangErnLiew)Edit Attach

Item230: lib/CPAN/lib missing in INC path

pencil
Priority: Normal
Current State: Closed
Released In: 1.0.0
Target Release: patch
Applies To: Engine
Component: configure, might be global
Branches:
Reported By: EugenMayer
Waiting For:
Last Change By: KwangErnLiew
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 distro:666c11ef6cd8 distro:7ebfc6ed2e2e distro:b1d6a6a73d38
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 Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy