Tags:
create new tag
view all tags

Question

Installed plugin. Seemed to go OK but I get this under FAILEDPLUGINS

TWiki::Plugins::CalendarPlugin could not be loaded. Errors were: Can't locate TWiki/Plugins/CalendarPlugin.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/CGI/ /var/www/html/twiki/lib/CPAN/lib//arch/ /var/www/html/twiki/lib/CPAN/lib//5.8.0/i386-linux-thread-multi/ /var/www/html/twiki/lib/CPAN/lib//5.8.0/ /var/www/html/twiki/lib/CPAN/lib// /var/www/html/twiki/lib . /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0) at (eval 29) line 1. BEGIN failed--compilation aborted at (eval 29) line 1.

Wed, 08 Feb 2006 build 8740, Plugin API version 1.1

Environment

TWiki version: TWikiRelease04x00x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat Enterprise Linux3.0
Web server: apache 2.0.46-56
Perl version: v5.8.0
Client OS: Citrix
Web Browser: Explorer 6
Categories: Installation, Plugins

-- SeanHarvey - 01 Jun 2006

Answer

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.

The TWiki lib is not listed in the Perl lib path. Did you set the $twikiLibPath in twiki/bin/LocalLib.cfg?

-- PeterThoeny - 01 Jun 2006

I'm having the same problem. In twiki/bin/setlib.cfg, $twikiLibPath is set to /var/lib/twiki/lib. I'm running TWiki version 02 Sep 2004 on a Debian server with Apache/1.3.34 and Perl v5.8.8.

The specific error I'm getting is: Can't locate TWiki/Plugins/CalendarPlugin.pm in @INC (@INC contains: /var/lib/twiki/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 (eval 22) line 1.

But given the first item in @INC, I don't understand why it can't find CalendarPlugin.pm, when I certainly can: $ ls /var/lib/twiki/lib/TWiki/Plugins/CalendarPlugin.pm /var/lib/twiki/lib/TWiki/Plugins/CalendarPlugin.pm

-- KatieBechtold - 09 Jun 2006

Check the permissions of the files. They must be readable by the Apache user (nobody, wwwrun etc.)

-- PeterThoeny - 09 Jun 2006

Fixed! It was file permissions. Thanks

-- SeanHarvey - 14 Jun 2006

Hi, PeterThoeny I am using ubuntu 8.04,installed twiki & apache2 using apt-get (Not manually),and you know that twiki related directories are a little different from other systems, I don't know which files and how to set file permissions.

Plugin ERROR:
TWiki::Plugins::CalendarPlugin could not be loaded.  Errors were: 
Can't locate TWiki/Plugins/CalendarPlugin.pm in @INC (@INC contains: /etc/twiki/ . /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 (eval 40) line 1.
BEGIN failed--compilation aborted at (eval 40) line 1.
And here is twiki related directories:
ls -l /etc/twiki /var/lib/twiki/ /var/www/twiki/
/etc/twiki:
total 16
-rw-r--r-- 1 yugo www-data 7828 May 21 15:34 LocalSite.cfg
-rw-r--r-- 1 yugo root     7228 May 21 13:55 apache.conf

/var/lib/twiki/:
total 28
lrwxrwxrwx  1 yugo root        23 May 20 14:33 bin -> /usr/lib/cgi-bin/twiki/
drwxrwxrwx 10 yugo www-data  4096 May 21 16:21 data
lrwxrwxrwx  1 yugo root        16 May 20 14:33 lib -> /usr/share/perl5
drwxrwxrwx  2 yugo root      4096 May 20 14:33 locale
lrwxrwxrwx  1 yugo root        14 May 20 14:33 log -> /var/log/twiki
lrwxrwxrwx  1 yugo root        18 May 20 14:33 pub -> /var/www/twiki/pub
drwxrwxrwx  2 yugo root     12288 May 20 14:33 templates
drwxrwxrwx  3 yugo root      4096 May 21 14:36 tools
drwxrwxrwx  3 yugo www-data  4096 May 20 14:33 working

/var/www/twiki/:
total 4
drwxr-xr-x 9 www-data www-data 4096 May 20 14:47 pub

-- YugoZhao - 21 May 2008

How did you get past the findUser problem ??

-- DanMitton - 30 Jun 2008

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2008-06-30 - DanMitton
 
  • 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.