You are here: Foswiki>Tasks Web>Item132 (11 Nov 2008, CrawfordCurrie)Edit Attach

Item132: Unable to install extensions from configure

pencil
Priority: Urgent
Current State: Closed
Released In:
Target Release:
Applies To: Web Site
Component:
Branches:
Reported By: CrawfordCurrie
Waiting For:
Last Change By: CrawfordCurrie
Can't install extensions on nextwiki.org from configure.

I added debugging to the install script for BuildContrib, then tried to install it. It fails with the message:
************************************************************
Could not load installer script from tools/extender.pl.

If this is a TWiki release prior to 4.2, please download the
latest version of the script from:

http://twiki.org/cgi-bin/view/Codev/ExtenderScript

and place it in the 'tools' directory below your installation
root (create the directory if necessary).

If this is TWiki 4.2 or later, the script is missing from
your installation, or may be broken.
************************************************************
Working directory was: /usr/home/twikifork.org
File error was: Invalid argument

"Working directory" is the result of Cwd::cwd. "File error" is $! immediately after the do 'tools/extender.pl'.

I looked at /usr/home/twikifork.org/tools/extender.pl as root, and it's there; but it appears that it can't be seen by the webserver user.

If you need to add more debugging to the install script, here's how:
  1. modify trunk/BuildContrib/lib/TWiki/Contrib/BuildContrib/TEMPLATE_instal;er.pl as required
  2. perl build.pl upload BuildContrib
  3. try and install it

-- CrawfordCurrie - 10 Nov 2008 - 19:46

[gmc@dave BuildContrib]$ perl build.pl BuildContrib upload BuildContrib/lib/TWiki/Contrib/BuildContrib/build.pl not found at build.pl line 35. [gmc@dave BuildContrib]$

??

(disclaimer: never used buildcontrib before)

-- KoenMartens - 10 Nov 2008 - 21:30

Never mind, I'll let you learn about BuildContrib in your own time.

I fixed it. Turns out that perl on nextwiki.org refuses to 'do' that file, even when it is referenced using an absolute path. I added fallback code that open()s and reads the file, then evals the content (the theoretical function of 'do', in other words) and it works without errors.

-- CrawfordCurrie - 11 Nov 2008 - 11:05

ItemTemplate edit

Summary Unable to install extensions from configure
ReportedBy CrawfordCurrie
Codebase
SVN Range TWiki-4.2.3, Wed, 06 Aug 2008, build 17396
AppliesTo Web Site
Component
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:eae09ff34e1a distro:5422353d5230
ReleasedIn
Topic revision: r5 - 11 Nov 2008, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy