Coral: perl install activeperl

Revision as of 13:51, 12 November 2011 by Ric (talk | contribs) (Created page with "<div id="top" style="margin:0;padding: 0px 0px 0px 5px; color: #000; background-color: #FFFFEB; border: 1px solid darkslateblue;"><span id="top" style="margin:0;padding: 0px;font...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Perl - Install ActivePerl

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 automates much of the installation process as explained below.

UniServer 8-Coral
  Home
  Quick Start
  General
  Apache
  MySQL
  PHP
  MSMTP
  CRON
  DtDNS
  Db Backup
» Perl
  Main Index

Download ActivePerl

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

  • As of August 2011, the current version is 5.12.4.1205 file (ActivePerl-5.12.4.1205-MSWin32-x86-294981.msi)
  • Save the downloaded file to folder UniServer\alt_diag\install_perl

Note: If you wish, save a copy of the downloaded file for archiving. After completing the installation, you can save space by deleting the folder UniServer\alt_diag\install_perl.

Top

Install ActivePerl

To extract and install, double click on the batch file:

UniServer\alt_diag\install_perl\extract_install_perl.bat

Note 1:
For a fresh install, this process is automatic and does not require any user input.


Note 2:
If ActivePerl is already installed, you will be prompted to delete the old version and install the new version. Press enter to delete and install. Entering anything other than "Yes" will terminate the installation.

Top

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 F:\test\ActivePerl-5.12.3.1204-MSWin32-x86-294330.msi /qb TARGETDIR=F:\test\temp

These files can then be copied to the desired location.

Top