Tags:
create new tag
view all tags

Question

I am installing on bluehost. I:

  • downloaded TWiki-4.1.2.tar
  • gunziped it
  • extracted to a folder under my public_html called twiki
  • had CGI:Sessions perl module installed by bluehost
  • renamed /bin files to .pl extensions
  • renamed and edited /bin/LocalLib.cfg with correct absolute path to /lib
  • made /pub readable
  • created a ~/tmp/twiki folder that is world writable - not sure if this was the best idea

When I attempt to run configure.pl, I get

Can't locate Error.pm in @INC (@INC contains: /home/westwoo6/public_html/twiki/lib /usr/lib/perl5/5.8.7/x86_64-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/x86_64-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /home/westwoo6/public_html/twiki/lib/TWiki/Configure/LANGUAGES.pm line 25, <F> line 1162.

I know Error.pm is in /lib/CPAN/lib, along with directories Algorithm, Locale, and Text.

I don not understand exactly how/the syntax of how I am supposed to edit LocalLib.cfg to specify this CPAN library location. I tried copying Error.pm up into the /lib folder and then got an error looking for Algorithm/Diff.pm

How do I fix this? Should I copy or link the files? Or is there a way to set the @INC path so it picks up those files?

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins:  
Server OS: kernel 2.6.21-3_1.BHsmp
Web server: Apache 1.3.37
Perl version: v5.8.7 built for x86_64-linux
Client OS:  
Web Browser:  
Categories: Installation

-- DaveAtkins - 12 Jun 2007

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.

See other Support topic about Error.pm: UserInterfaceInternationalisation, CouldNotSendConfirmEmail, SID-01772, SID-02120, SID-01105, SID-01961, CantLocateErrorPm, SID-01799, SID-01182, SID-01588, UserActivationError, SID-01213, SID-01237, SID-01173, SID-01068, SID-00966

Please let us know how you resolved this issue and close this question.

-- PeterThoeny - 12 Jun 2007

I did this:

[~/www/twiki/lib]# ln -s CPAN/lib/Error.pm .
[~/www/twiki/lib]# ln -s CPAN/lib/Algorithm/ .
[~/www/twiki/lib]# ln -s CPAN/lib/Locale/ .
[~/www/twiki/lib]# ln -s CPAN/lib/Text/ .

but now, when I try to load the site, I get a 500 error and this in the log files:

Can't locate setlib.cfg in @INC (@INC contains: . /usr/lib/perl5/5.8.7/x86_64-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/x86_64-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl) at view.pl line 27. BEGIN failed--compilation aborted at view.pl line 28.

The cause of this error is very simple. When I renamed all the perl scripts to be, perl scripts (adding .pl extension), I got too greedy and renamed setlib.cfg to setlib.cfg.pl.

Some other users may find the text below helpful (minus that one line) for fixing up their bin directories:

A script to rename all the bin files


mv attach attach.pl
mv changes changes.pl
mv configure configure.pl
mv edit edit.pl
mv login login.pl
mv logon logon.pl
mv manage manage.pl
mv oops oops.pl
mv passwd passwd.pl
mv preview preview.pl
mv rdiff rdiff.pl
mv rdiffauth rdiffauth.pl
mv register register.pl
mv rename rename.pl
mv resetpasswd resetpasswd.pl
mv rest rest.pl
mv save save.pl
mv search search.pl
mv statistics statistics.pl
mv twiki twiki.pl
mv upload upload.pl
mv view view.pl
mv viewauth viewauth.pl
mv viewfile viewfile.pl

-- DaveAtkins - 12 Jun 2007

I've gone through all the links mentioned, but none of them talks about Error.pm or other .pm files not found.

I have the exact same issue. I'm using Xampp in Windows8. Have properly renamed files to .cgi (not .cfg files of course) and given correct perl.exe path in all files under /bin folder.

-- Nitin Surana - 2014-07-25

Change status to:
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2014-07-26 - PeterThoeny
 
  • 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.