This text was part of FoswikiOnMacOSXLeopard

Troubleshooting

Error: Can't install extensions (Insecure dependency in open while running with -T switch)

The fix is to update CPAN and CPAN:IO::File:
  1. Run sudo cpan Bundle::CPAN IO::File (entering your super user password)
  2. Restart the web server, return back to configure and repeat the install steps
(See Tasks.Item786)

Leopard problems continued

By ArthurClemens - 01 Mar 2009

The Mac OS security update has broken perl, and it broke cpan so that you cannot use it to update CPAN:IO::File. The solution I have followed (with advice on IRC):
  1. Use MacPorts to install a separate version of perl: sudo port install perl5.8
  2. Let Foswiki use the new perl location with the tools script rewriteshebang.pl:
    • cd yourinstallation/bin
    • sudo perl ../tools/rewriteshebang.pl
      • Enter /opt/local/bin/perl
    • cd yourinstallation/tools
    • sudo perl rewriteshbang.pl
      • Enter /opt/local/bin/perl
  3. Set CPANBASE in bin/LocalLib.cfg to empty: $CPANBASE = '...';

Notes (Foswiki 1.1.2):

  1. The tools/rewriteshebang.pl script confirms that you want to change all references to the default perl interpreter to the one entered. You can run this script from directly within the tools/ folder.
  2. There is no CPANBASE definition in bin/LocalLib.cfg.

Error: Can't install extensions (Undefined subroutine &Compress::Zlib::gzopen)

Further instructions (I have not tested them): cpan does not wok - Undefined subroutine &Compress::Zlib::gzopen

Install Zlib.pm from http://search.cpan.org/~pmqs/Compress-Zlib/ and copy to your lib.

-- MatthiasWientapper - 10 Oct 2010

Note regarding 1.1.2-1 DMG on Lion

Quick note: I tried http://foswiki.org/Support/FoswikiOnMacOSXLeopard today on my wife's new install of Mac OS Lion (I installed Lion onto a new disk and restored her data from Time Machine: Foswiki didn't work after the restore - it would show the contents of the foswiki bin directory instead of running the scripts.)

So I tried running the 1.1.2-1 pkg installer.

But, it didn't install Foswiki 1.1.2-1 as promised. Even though the dialog said it was successful.

instead it resurrected the previous install of Foswiki. The now running Foswiki says "running Foswiki version Foswiki-1.0.4, Wed, 18 Mar 2009" which I guess was what we had previously installed (but was broken)

Jul 23 12:29:26 MBP Installer[13142]: @(#)PROGRAM:Install  PROJECT:Install-684
Jul 23 12:29:26 MBP Installer[13142]: @(#)PROGRAM:Installer  PROJECT:Installer-530
Jul 23 12:29:26 MBP Installer[13142]: Hardware: MacBookPro3,1 @ 2.40 GHz (x 2), 4096 MB RAM
Jul 23 12:29:26 MBP Installer[13142]: Running OS Build: Mac OS X 10.7 (11A511)
Jul 23 12:29:26 MBP Installer[13142]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
Jul 23 12:29:26 MBP Installer[13142]: Env: TMPDIR=/var/folders/_j/h634719n3vv5w50277w5172r0000gn/T/
Jul 23 12:29:26 MBP Installer[13142]: Env: SHELL=/bin/bash
Jul 23 12:29:26 MBP Installer[13142]: Env: HOME=/Users/andreacleaver
Jul 23 12:29:26 MBP Installer[13142]: Env: USER=andreacleaver
Jul 23 12:29:26 MBP Installer[13142]: Env: LOGNAME=andreacleaver
Jul 23 12:29:26 MBP Installer[13142]: Env: DISPLAY=/tmp/launch-eDXMqQ/org.x:0
Jul 23 12:29:26 MBP Installer[13142]: Env: SSH_AUTH_SOCK=/tmp/launch-KbGgGI/Listeners
Jul 23 12:29:26 MBP Installer[13142]: Env: Apple_PubSub_Socket_Render=/tmp/launch-AhgNrQ/Render
Jul 23 12:29:26 MBP Installer[13142]: Env: COMMAND_MODE=unix2003
Jul 23 12:29:26 MBP Installer[13142]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0:0
Jul 23 12:29:26 MBP Installer[13142]: Foswiki-1.1.2-1  Installation Log
Jul 23 12:29:26 MBP Installer[13142]: Opened from: /Volumes/Foswiki-1.1.2-1/Foswiki-1.1.2-1.pkg
Jul 23 12:29:26 MBP Installer[13142]: Product archive /Volumes/Foswiki-1.1.2-1/Foswiki-1.1.2-1.pkg trustLevel=100
Jul 23 12:30:24 MBP Installer[13142]: InstallerStatusNotifications plugin loaded
Jul 23 12:30:32 MBP runner[13169]: Administrator authorization granted.
Jul 23 12:30:32 MBP Installer[13142]: ================================================================================
Jul 23 12:30:32 MBP Installer[13142]: User picked Standard Install
Jul 23 12:30:32 MBP Installer[13142]: Choices selected for installation:
Jul 23 12:30:32 MBP Installer[13142]:    Install: "Foswiki-1.1.2-1"
Jul 23 12:30:32 MBP Installer[13142]:    Install: "Application_Root"
Jul 23 12:30:32 MBP Installer[13142]:        Foswiki-1.1.2-1.pkg#applicationroot.pkg : org.foswiki : 1.0
Jul 23 12:30:32 MBP Installer[13142]: ================================================================================
Jul 23 12:30:32 MBP Installer[13142]: It took 0.00 seconds to summarize the package selections.
Jul 23 12:30:32 MBP Installer[13142]: -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost
Jul 23 12:30:32 MBP Installer[13142]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Volumes/Foswiki-1.1.2-1/Foswiki-1.1.2-1.pkg#applicationroot.pkg
Jul 23 12:30:32 MBP Installer[13142]: Set authorization level to root for session
Jul 23 12:30:32 MBP Installer[13142]: Will use PK session
Jul 23 12:30:32 MBP Installer[13142]: Starting installation:
Jul 23 12:30:32 MBP Installer[13142]: Configuring volume "AndreaCleaverHDD"
Jul 23 12:30:32 MBP Installer[13142]: Preparing disk for local booted install.
Jul 23 12:30:32 MBP Installer[13142]: Free space on "AndreaCleaverHDD": 265.28 GB (265284530176 bytes).
Jul 23 12:30:32 MBP Installer[13142]: Create temporary directory "/var/folders/fv/mqh8r2qx0qx_71tp1nnf1kcc0000gn/T//Install.13142IFcCYf"
Jul 23 12:30:32 MBP Installer[13142]: IFPKInstallElement (1 packages)
Jul 23 12:30:32 MBP Installer[13142]: Using authorization level of root for IFPKInstallElement
Jul 23 12:30:32 MBP installd[13175]: PackageKit: ----- Begin install -----
Jul 23 12:30:32 MBP installd[13175]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
Jul 23 12:30:32 MBP installd[13175]: PackageKit: packages=(
       "PKLeopardPackage <file://localhost/Volumes/Foswiki-1.1.2-1/Foswiki-1.1.2-1.pkg#applicationroot.pkg>"
   )
Jul 23 12:30:32 MBP installd[13175]: PackageKit: Extracting file://localhost/Volumes/Foswiki-1.1.2-1/Foswiki-1.1.2-1.pkg#applicationroot.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0)
Jul 23 12:30:36 MBP installd[13175]: PackageKit: Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root (2 items) to /
Jul 23 12:30:36 MBP installd[13175]: PackageKit: Executing script "./postflight" in /private/tmp/PKInstallSandbox.tYOaif/Scripts/org.foswiki.GQsKky
Jul 23 12:30:40 MBP installd[13175]: PackageKit: Writing receipt for org.foswiki to /private/var/db/receipts
Jul 23 12:30:41 MBP installd[13175]: Installed "Foswiki-1.1.2-1" ()
Jul 23 12:30:41 MBP installd[13175]: PackageKit: ----- End install -----
Jul 23 12:30:41 MBP Installer[13142]: Running install actions
Jul 23 12:30:41 MBP Installer[13142]: Removing temporary directory "/var/folders/fv/mqh8r2qx0qx_71tp1nnf1kcc0000gn/T//Install.13142IFcCYf"
Jul 23 12:30:41 MBP Installer[13142]: Finalize disk "AndreaCleaverHDD"
Jul 23 12:30:41 MBP Installer[13142]: Notifying system of updated components
Jul 23 12:30:41 MBP Installer[13142]: 
Jul 23 12:30:41 MBP Installer[13142]: **** Summary Information ****
Jul 23 12:30:41 MBP Installer[13142]:   Operation      Elapsed time
Jul 23 12:30:41 MBP Installer[13142]: -----------------------------
Jul 23 12:30:41 MBP Installer[13142]:        disk      0.01 seconds
Jul 23 12:30:41 MBP Installer[13142]:      script      0.00 seconds
Jul 23 12:30:41 MBP Installer[13142]:        zero      0.01 seconds
Jul 23 12:30:41 MBP Installer[13142]:     install      9.18 seconds
Jul 23 12:30:41 MBP Installer[13142]:     -total-      9.21 seconds
Jul 23 12:30:41 MBP Installer[13142]: 
Jul 23 12:30:41 MBP Installer[13142]: IFDInstallController 1D5D270 state = 5
Jul 23 12:30:41 MBP Installer[13142]: Displaying 'Install Succeeded' UI.

I don't know why it failed silently: I didn't look.

I intend to upgrade my laptop to Lion in a couple of weeks, and I might do a regular install there to test it out.

I hope this information is useful to someone.

-- MartinCleaver - 23 Jul 2011

That's odd. Probably some confusion with links under /Library/Webserver/Documents regarding pre-existing installations?

I just tried the 1.1.2 DMG from FoswikiOnMacOSXLeopard and it worked for me on my macbook running Lion. However, I am going to build a new 1.1.3 installer package on Lion in the next days.

-- MatthiasWientapper - 12 Nov 2011

Built a 1.1.3 Package on Lion for Lion and it works on my machine. Can you check again, please?

-- MatthiasWientapper - 13 Nov 2011
Topic revision: r5 - 14 Nov 2011, MatthiasWientapper - This page was cached on 11 Dec 2018 - 03:28.

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