create new tag
, view all tags

SID-02125: Can no longer run configure for existing installation

Status: Answered Answered TWiki version: 5.0.1 Perl version: 5.14.2
Category: CategoryInstallation Server OS: Ubuntu Linux 12.04.1 LTS Last update: 2 years ago

Software error:

Failed to load the perl module TWiki::Configure::Load. The module was found at /srv/www/twiki/lib/TWiki/Configure/Load.pm, but I don't have permission to read it.

Please ensure that:

  1. TWiki::Configure::Load is installed,
  2. that the module is available on the @INC path,
  3. that the webserver user (www-data) has permission to read the TWiki/Configure/Load.pm file.
The detailed error seen was: Use of qw(...) as parentheses is deprecated at /srv/www/twiki/lib/TWiki/Configure/Load.pm line 89. Compilation failed in require at (eval 25) line 2. BEGIN failed--compilation aborted at (eval 25) line 2.

Pardon my dumb look, but I am totally clueless about (1) what is wrong, (2) how it went bad, and (3) what I need to do to fix it!

-- Larry Bristol - 2015-11-18

Discussion and Answer

This could be related to new CPAN:CGI version that has incompatibility issues. See TWikiSystemRequirements.

A new TWiki extension is now available that addresses the CGI issue: CgiContrib - for background see AddCGIpmToTWikiCore.

See related questions SID-02078, SID-02079.

-- Peter Thoeny - 2015-11-18

Thanks for the information. I cannot argue pro or con in that regard, and I am quite sure the installed version of CGI is a higher level than the newly implemented installation guide. None of the things I have found in my research suggest that "configure" is subject to this problem.

Be that as it may, the first suggestion I saw was to install a back-level version of CGI. I freely admit I am NOT a perl/CPAN expert! My problem here is that I can find NO guidance on how one can install a back-level module. Can someone give me some help in that regard?

As per the CgiContrib suggestion: I clearly do not have a good understanding of this solution. How can I install CgiContrib when I cannot get "configure" to run in the first place?

-- Larry Bristol - 2015-11-19

That is what the CgiContrib does, downgrade the CGI module.

Install CgiContrib manually by copying the .zip or .tar to the server, unpacking it, and moving the files into the twiki directory, preserving the directory structure.

-- Peter Thoeny - 2015-11-19

Roger! Will do, and will report back the results.

-- Larry Bristol - 2015-11-19

(Sorry for the delay; I was out because of the holidays) I downloaded the CgiContrib.tgz file, and expanded it into the twiki installation directory. The following files were modified:

  • lib/CGI.pm
  • lib/CGI/
  • lib/CGI/Carp.pm
  • lib/CGI/Cookie.pm
  • lib/CGI/Pretty.pm
  • lib/CGI/Push.pm
  • lib/CGI/Util.pm
  • lib/TWiki/Contrib/
  • lib/TWiki/Contrib/CgiContrib.pm
  • data/TWiki/
  • data/TWiki/CgiContrib.txt
I then restarted Apache2 and tried to run the configure function. There was no change. I still get the same error message.

-- Larry Bristol - 2015-11-30

Check the permissions of all files and directories below srv/www/twiki/lib, they need to be readable by the webserver user.

-- Peter Thoeny - 2015-12-01

They are. Everything below /srv/www/ is owned and readable by www-data.

Stupid question: The "bad" version of CGI (and Carp) is still in CPAN. Should they be removed? How does one uninstall something in CPAN?

-- Larry Bristol - 2015-12-01

No, the "bad" CGI should not be removed, other programs might depend on it. Make sure to specify an absolute lib path /srv/www/twiki/lib in your twiki/bin/LocalLib.cfg. With that, the "good" CGI should be picked up first.

The install location of your manually installed CgiContrib looks good.

-- Peter Thoeny - 2015-12-02

Hello folks,

sorry for interrupting: I know that CgiContrib can solve many problems, but this one doesn't seem to be one of them. The symptoms and the software versions clearly indicate that the issue is actually Bugs:Item6800, solved in TWiki 5.1.1.

The offending syntax qw() has been removed in quite a couple of locations in TWiki, so probably an upgrade would be the best solution.

BTW: Ubuntu 12.04 has Perl 5.14.2 and CGI version 3.52. So CgiContrib should not be necessary, but on the other hand - it doesn't do any harm.

-- Harald Jörg - 2015-12-02

I think the problem originated because (somewhere along the line) I used CPAN to update CGI and CGI::Carp to the latest versions. I suspect that my problem arrived at that time, and I have only recently attempted to run "configure".

There is a little more to the story. We are in the process of building a new server. The current server is on a physical machine; it runs fine other than the configure script. The new server is on a virtual machine where the current twiki installation was simply copied; the configure script does not work there either. Since I cannot do the configuration there at all, even the normal scripts (such as bin/view) do not work, either. Anyway, the idea was to clone the current server and get it working first, then upgrade everything, including the latest version of TWiki, Ubuntu 14.04 LTS, and so forth.

Anyway, I am stuck. The qw() thing may be the answer, but I have to think of upgrading the TWiki release as a last resort, as that is not in the conversion plan to the virtual server. Is there any other suggestion?

-- Larry Bristol - 2015-12-02

Incidentally, Peter, I think the absolute path is specified correctly: # -------------- Path to lib directory containing TWiki.pm.
# The absolute path to the 'lib' directory in your installation..

$twikiLibPath = "/srv/www/twiki/lib";

-- Larry Bristol - 2015-12-02

Your best bet is to install the latest TWiki-6.0.2 on the virtual machine, make a backup of your old TWiki, and restore that on the new TWiki. Use the BackupRestorePlugin to backup and restore. Alternatively simply zip your twiki folder, and restore selectively, making sure not to mix old and new TWiki code and configuration. Only restore twiki/data and twiki/pub, but omit twiki/data/TWiki, twiki/data/_default, twiki=pub/TWiki and twiki/pub/_default. Make sure the file ownership and permissions are correct. Do not restore other dirs, such as twiki/lib, twiki/bin, twiki/templates.

-- Peter Thoeny - 2015-12-02

Virtual Server: I installed TWiki-6.0.2; the problem is resolved. Old server: No change; server to be retired anyway.

Thanks for the help!

-- Larry Bristol - 2015-12-08

      Change status to:
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.
Status Answered
Title Can no longer run configure for existing installation
SupportCategory CategoryInstallation
TWiki version 5.0.1
Server OS Ubuntu Linux 12.04.1 LTS
Web server Apache
Perl version 5.14.2
Browser & version Firefox 42.0
Edit | Attach | Watch | Print version | History: r13 < r12 < r11 < r10 < r9 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r13 - 2015-12-08 - LarryBristol
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.