• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

When I run configure with an almost empty LocalSite.cfg (e.g. just a 1;) I get this output:

SettingsClick the buttons below to open each sectionOpen all options
Environment variables(read only)
Operating system   Solaris 2.8 (sun4-solaris-thread-multi)
Perl version   5.008008 (solaris)
@INC library path   ...REMOVED...
.

This is the Perl library path, used to load TWiki modules, third-party modules used by some plugins, and Perl built-in modules.
CGI bin directory   ...REMOVED...
TWiki module in @INC path   TWiki.pm (Version: TWiki-4.1, Tue, 28 Nov 2006, build 12081) found
Perl modules   
Error: Failed to load DEPENDENCIES: No such file or directory

For a URL such as ...REMOVED.../configure/foo/bar, the correct PATH_INFO is /foo/bar, without any prefixed path components. Click here to test this - particularly if you are using mod_perl, Apache or IIS, or are using a web hosting provider. Look at the new path info here. It should be /foo/bar.
mod_perl   Not used for this script

mod_perl is not loaded into Apache
CGI user   userid = nobody groups = nobody,nobody

Your CGI scripts are executing as this user.
Original PATH   ...REMOVED...

This is the PATH value passed in from the web server to this script - it is reset by TWiki scripts to the PATH below, and is provided here for comparison purposes only.
Current PATH   /bin:/usr/bin

This is the actual PATH setting that will be used by Perl to run programs. It is normally identical to {SafeEnvPath}, unless that variable is empty, in which case this will be the webserver users standard path..
Content-type: text/html
Software error:

Undefined subroutine &TWiki::Configure::Checker::WARN called at ...REMOVED.../TWiki/Configure/Checker.pm line 160.

For help, please send mail to the webmaster (peter@structuredwikis.com), giving this error message and the time and date of the error

No more output after that, e.g. configure screen is truncated at Undefined subroutine message.

Three issues:

  • Perl modules, Error: Failed to load DEPENDENCIES: No such file or directory
  • Undefined subroutine &TWiki::Configure::Checker::WARN
  • Truncated output, e.g. "general path settings" and below are not accessible

-- PTh

No difference when copying/fixing a 4.0 LocalLob.cfg (same errors)

-- PTh

Still testing, but TWiki seems to work fine otherwise.

Raising this to requirement since it prevents a normal install as documented.

-- PTh

In Checker.pm line 156 my guess is that

    
    $<nop>n = WARN("'$prog' program was not found on the",

should be

    $<nop>n = $this->WARN("'$prog' program was not found on the",

Same with line 160

    $<nop>n = WARN("'$prog' program was found on the PATH",

should be

    $<nop>n = $this->WARN("'$prog' program was found on the PATH",

about DEPENDENCIES

This file is supposed to be in tools/DEPENDENCIES

It is in the beta 3 tgz. Did you remember to install the tools directory? Did you move it?

(had to add inside the verbatims above to avoid the $ n to be translated to newline.)

-- KJL

I created an artificial error that triggered the same error as Peter saw (I renamed /usr/bin/diff to something else) and confirmed that it is indeed the missing $this-> that causes the fatal error. And this also eliminates the truncation. Naturally code error causes configure to stop.

So now it is only the DEPENDENCIES thing we need to sort out.

KJL

Thanks Kenneth for fixing the bug. The configure script loads now properly and shows a "Error: Failed to load DEPENDENCIES: No such file or directory" in the "Perl modules" item.

I have a non-standard location of bin, lib and tools, therefore the error.

Actually, it is quite common to install TWiki into existing cgi-bin and htdoc dirs, hence a hardcoded relationship between bin and tools is not so good. Better to find the tools directory relative to the lib dir.

-- PTh

OK, is fixed now. Configure is looking now for tools/DEPENDENCIES relative to twiki/lib instead of twiki/bin, to accomodate non-standard installations where twiki/bin is copied into an existing cgi-bin.

-- PTh

This is a post 4.0.5 bug so closing.

KJL

ItemTemplate
Summary TWiki 4.1 beta 3: Undefined TWiki::Configure::Checker::WARN in Configure
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4
SVN Range TWiki-4.1, Tue, 28 Nov 2006, build 12081
AppliesTo Engine
Component

Priority Urgent
CurrentState Closed
WaitingFor

Checkins 12228 12292 12294
TargetRelease n/a
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r10 - 2006-12-30 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback