Tags:
create new tag
, view all tags

Question

I am installing Twiki 4.2 onto and apache 2.2.8 server with php 5.2.6.

When I run configure, I correct the only incorrect path:

{DefaultUrlHost} = http://ngadm01 BECOMES {DefaultUrlHost} = http://ngadm01/twiki/

I then click "Next". I then get the following fatal error:

Use of uninitialized value in substitution (s///) at (eval 41) line 23.

The apache error log says pretty much the same thing: [Wed Jun 18 08:24:34 2008] [error] [client 172.16.1.7] [Wed Jun 18 08:24:34 2008] configure: Use of uninitialized value in substitution (s///) at (eval 41) line 23., referer: http://ngadm01/twiki/bin/configure

I dug around inside configure but nothing jumped out at me...

Thanks for any help, Chuck

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: CentOS 5
Web server: Apache 2.2.8
Perl version: 5.8.8 built for i386-linux-thread-multi
Client OS: Win XP
Web Browser: Firefox 2
Categories: Installation

-- ChuckCarson - 18 Jun 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

This seems to be redundant to your question at ARGPullingMyHairOutConfigureBroken, so I'm closing this one. Feel free to reopen it if needed.

-- SeanCMorgan - 18 Jun 2008

See Bugs:Item5727. Confirmed that configure cannot run with perl 5.10

-- KennethLavrsen - 23 Jun 2008

We now know more.

The error is in the perl CPAN library CGI.

version 3.37 is know to be buggy and maybe also previous versions. 3.15 is know to now have the problem for sure and probably also versions later.

The error happened when TWiki does this very basic command

$query = new CGI

There are known recorded bugs about this.

which is fixed in 3.38 which was released the 25 Jun 2008 (the day I write this)

We have confirmed upgrading to CGI 3.38 cures the problem.

To verify yourself.

perl -e 'use CGI; print "$CGI::VERSION\n";'

Depending on which distro you use and when you read this, your package manager may already have a new perl for you with a newer CGI. The CGI CPAN lib is normally bundled with perl and not in its own package.

If you do not have an update you can update using CPAN.

perl -MCPAN -e 'upgrade CGI'

which upgrades just CGI to the latest version.

If you are on a shared host - contact your system administrator and ask him to update the CGI CPAN library. Even if configure works without the -w in the shebang line TWiki itself may later show problems and your shared host may be flooded with warning messages.

-- TWiki:Main.KennethLavrsen - 25 Jun 2008

 
Change status to:
Topic revision: r4 - 2008-06-25 - KennethLavrsen
 
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.