Zero logo

Installing Perl

This page covers installing Strawberry Perl and Active Perl. If you have previously installed Strawberry Perl and upgrading to a newer version or replacing it with Active Perl, first delete the old version by deleting the following folder and all its content:

  • C:\UniServerZ\core\perl

Note: Deleting this folder returns the server to a default state, completely removes Perl.

Installing Strawberry Perl

Installing is a misnomer! Nothing is installed to your PCs registry all files are extracted to their appropriate location within the UniServer folder structure.

The extraction procedure is identical for all plugin versions, proceed as follows:

  1. Download Perl-plugin installation file e.g ZeroXIII_strawberry_perl_5_22_1_1.exe
    See Plugins page for download details.
  2. Save to folder UniServerZ.
  3. If running, stop Apache and MySQL servers and also exit UniController.
  4. Double click on the above installation file.
    This runs the self extracting archive.
  5. If prompted allow overwriting of existing files.
  6. If you wish, delete the installation file, it is no longer required.

Note: ZeroXIII_strawberry_perl_5_22_1_1.exe installs full verson of Strawberry Perl 5.22.1.1 portable.

Installing Active Perl

ActivePerl is considered to be the de facto standard. However the ActivePerl Community License restricts the way the package can be distributed. Since this is inconsistent with The Uniform Server's license, ActivePerl is not included with The Uniform Server, nor is it available as a plug-in. On the other hand, you are free to download, install and use a personal copy of ActivePerl Community Edition. If you need to make it portable, it must be installed first and then integrated into The Uniform Server’s file structure.

This process is a bit tedious because ActivePerl is distributed only in msi format. Although the files are extractable without actually performing an installation, they do require relocating. The Uniform Server XL automates much of the installation process as explained below.

Download ActivePerl

First download the latest version of ActivePerl Community Edition from ActiveState (http://www.activestate.com/activeperl/downloads)

  • As of December 2015, the current version is 5.20.2 file (ActivePerl-5.20.2.2002-MSWin32-x86-64int-299195.msi)
  • Save the downloaded file to folder UniServerZ\tmp

Note: If you wish, save a copy of the downloaded file for archiving. After completing the installation, the file is automatically deleted.

Install ActivePerl

Install ActivePerl using Uniform Server Zero's batch file as follows:

Extract and Install

  • 1) Navigate to folder: UniControllerZ\home\install_perl
  • 2) To extract and install, double click on the batch file: extract_install_perl.bat
    • For a fresh install, the process is automatic and does not require any user input.
    • If ActivePerl is already installed you will be prompted to delete this and
      install new version. Press enter to delete and install. Entering anything
      other than "Yes" terminates installation.
  • On completion the installation file is deleted.

Test

  • Run UniController.
  • Run test script: Perl > View test.pl
  • Confirm pages displayed.

Background

Files within a MSI installer file are easily extracted using a batch file.

Use the following batch command to perform extraction:

  msiexec /a "Full path to MSI file" /qb TARGETDIR="Full path to target folder"

  msiexec               - Batch command
  /a                    - Forces all files to be reinstalled.
  Full path to MSI file - Package name of the Windows Installer package file
  /qb                   - Displays a basic user interface.
  TARGETDIR=            - Folder where etracted files will be saved

Example:  

  msiexec /a C:\UniServerZ\test\ActivePerl-5.20.2.2002-MSWin32-x86-64int-299195.msi /qb TARGETDIR=C:\UniServerZ\test

These files can then be copied to the desired location.

Note: The above code is integrated into Uniform Server Zero's batch file.


--oOo--