Tags:
create new tag
, view all tags

Question

  • TWiki version: 20030201
  • Perl version: 5.8.0
  • Web server & version: Apache/1.3.27 (Unix) mod_perl/1.27 mod_jk/1.1.0
  • Server OS: Debian GNU/Linux
  • Web browser & version: Mozilla 1.x
  • Client OS: Debian GNU/Linux

I am testing an upgrade to 20030201 from 20011201. Installed 20030201 in twiki1/, in parallel to working one in twiki/. /var/www/twiki1/bin/setlib.cfg contains:

$twikiLibPath = '/var/www/twiki1/lib';

Output of testenv is as follows:

REQUEST_URI /twiki1/bin/testenv
SCRIPT_FILENAME /var/www/twiki1/bin/testenv
SCRIPT_NAME /twiki1/bin/testenv 
[...]
@INC library path:/var/www/twiki1/lib
/etc/perl
/usr/local/lib/perl/5.8.0
/usr/local/share/perl/5.8.0
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.8.0
/usr/share/perl/5.8.0
/usr/local/lib/site_perl

[...]

TWiki module in @INC path: Warning: 'TWiki.pm' not found - check path to twiki/lib and edit twiki/bin/setlib.cfg if necessary. 

...which I cannot understand.

What is more, a request to /twiki1/bin/view/Sandbox/WebHome says

Can't locate TWiki/Prefs.pm in @INC (@INC contains: /var/www/twiki1/lib . /etc/perl /usr/local/lib/perl/5.8.0 /usr/local/share/perl/5.8.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8.0 /usr/share/perl/5.8.0 /usr/local/lib/site_perl) at /var/www/twiki1/lib/TWiki.pm line 152.
BEGIN failed--compilation aborted at /var/www/twiki1/lib/TWiki.pm line 152.
Compilation failed in require at /var/www/twiki1/bin/view line 28.
BEGIN failed--compilation aborted at /var/www/twiki1/bin/view line 28.

...someone has found TWiki.pm, seemingly.

Setting $twikiLibPath = '../lib'; was of no use. Gives same errors, respectively.

Yes, lib/TWiki.pm and lib/TWiki/Prefs.pm do exist and have the same User/Attributes as the ones of the old, working installation.

Anyone having an idea what I could, maybe try to fix or at least diagnose this problem any further? If this is a known issue of Perl 5.8.0 I have overlooked s.th. in Support/Codev...

-- PatrickHansmeier - 25 Feb 2003

Answer

The problem is that ModPerl doesn't have the current working directory you expect - read up on the mod_perl pages here for more info, or Google:twiki+mod_perl+lib. You must use absolute pathnames for any settings, and you will probably have to point mod_perl to the /foo/twiki/bin directory explicitly. See comment towards end of SettingLibPath in particular.

I don't think it's a Perl 5.8 issue, other people seem to be using this OK.

-- RichardDonkin - 26 Feb 2003

Feedback

Spending half a day on mod_perl, switching it off finally with the problem persisting, greping all files for any path-references, I went back to square one: TWiki Standard Installation. Problem solved, seemingly, I forgot to 775 one of the dirs under lib/.

-- PatrickHansmeier - 04 Mar 2003

More Feedback

Thanks for posting this. I just had exactly the same problem, and you've save me hours of investigation.

-- PeterWhiting - 20 Apr 2003

Topic revision: r4 - 2003-04-20 - PeterWhiting
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.