Beruflich Dokumente
Kultur Dokumente
Cart
ActiveState Docs
ActivePerl 5.14 Documentation
Table of Contents
Search
9/24/12
Windows Installers
If you are using ActivePerl to serve CGI / ASP scripts using IIS or another Web server, stop the Web server before installing ActivePerl. MSI Installer Package To install the MSI package double-click on the MSI file in Windows Explorer. Do not install over a 500, 600, 800, 1000, or 1200 series build of ActivePerl. This package must be installed into a separate directory. MSI Package Installation from the Command Line You can install ActivePerl from the command line using the 'msiexec' program. For example: mixc/ mifl.s see i s_iemi
docs.activestate.com/activeperl/5.14/install.html# 2/9
9/24/12
The ADDLOCAL command line property is used to specify which features should be installed. (If ADDLOCAL is not specified, all features are installed.) For example: mixc/ mifl.s ADOA=PR_ETR,ELS see i s_iemi DLCL"ELFAUEPRI" The following features may be specified with the ADDLOCAL switch: PERL_FEATURE (the Perl core) PPM (the Programmer's Package Manager) PERLIS (the Perl for ISAPI interpreter) PERLSE (the Perl ActiveX Scripting Engine) EXAMPLES (some simple examples) A set of command-line properties can be used to configure the installation. For example: mixc/ mifl.s TREDR":"PR_AH"e" see i s_iemi AGTI=c\ ELPT=Ys TARGETDIR: Used to specify the absolute path where ActivePerl will be installed. If not specified, ActivePerl will be installed in a default location on the same drive as the Windows operating system. If this option is used, a value is required. Note: Ensure that the NT 'SYSTEM' user account that actually runs the MSI installer has full access to the target directory. Also, don't select a directory with spaces in its name. Perl will likely work, but many scripts will not. PERL_EXT: If set to 'No', the installer will not create the default '.pl' file extension association with p r . el PL_IISMAP: If is set to 'No', the installer will not create a global IIS script mapping for '.pl' and Perl. PLEX_IISMAP: If set to 'No', the installer will not create a global IIS script mapping for '.plex' and PerlIS. PLX_IISMAP: If set to 'No', the installer will not create a global IIS script mapping for '.plx' and PerlIS. PERL_PATH: If set to 'No', the Perl/bin directory will not be added to the system PATH environment variable. CREATE_SAMPLE_DIR: If set to 'No', the PerlEx sample virtual directory in IIS is not created. The following command-line switches can be used: Silent Mode To run in silent mode, specify the '/q' command line option. The installer will run with no UI. Logging To log the installation process, specify the '/l' command line option and the name of the log file. For example: mixc/ mifl.s / lgtt see i s_iemi l o.x To enable verbose logging, use the * modifier with the / command line option. v l For example: mixc/ mifl.s /* lgtt see i s_iemi lv o.x AS Installer Package The AS package is a generic installation package that can be used on systems where the MSI package is not supported. The AS package provides no uninstall functionality. To install using the AS package, double-click the installer file and follow the prompts.
Windows Configuration
If you run Perl at the command prompt, the script will be executed by the first P r . x it encounters elee in the list of paths in the PATH environment variable. To ensure the script is executed by the Perl interpreter of your choice, specify the complete path to the P r . x you want to use. (Typing p r elee el vat the command prompt will tell you which version of Perl is currently first in your PATH) Installing ActivePerl will change your Path environment variable and may change registry settings, such as file associations, which may affect your Web server. If you want to use a previously installed copy of Perl, you will need to modify these settings. fyePrSrp=elee% % tp elcitpr.x 1 *
docs.activestate.com/activeperl/5.14/install.html# 3/9
9/24/12
asc.lPrSrp so p=elcit
OS X Installer
Installing the OS X Package ActivePerl is distributed on Mac OS X as a disk image (. m file). The disk image contains an dg installer package (. k bundle) that installs ActivePerl. pg Download the ActivePerl disk image (A t v P r - v r i n - p a f r > d g c i e e l < e s o > < l t o m . m ). If the browser does not automatically mount the disk image and open the mounted folder in Finder, double-click A t v P r - v r i n - p a f r > d gto do so. cieel<eso><ltom.m Double-click the ActivePerl installer package (ActivePerl-<version>.pkg) to start the installation. Follow the Installer prompts. The installer will ask for administrative authentication if the current user does not have administrative priviledges. After installation is complete, you may eject the ActivePerl disk image and move ActivePerl-version.dmg to the Trash. OS X includes a non-interactive command line interface to Apple's Installer. To install the ActivePerl Apple installer from the command line: $sd isalr-k /sr/uenm>AtvPr-vrin.k -agt/ uo ntle pg Ues<srae/cieel<eso>pg tre More information on the command line interface to Installer can be found in its m npage. a
OS X Configuration
The Apple Installer package installs ActivePerl in /usr/local/ActivePerl-5.14. To run the perl interpreter and PPM package manager (without having to enter the full path), add /usr/local/ActivePerl-5.14/bin to your PATH environment variable. For example: $epr PT=urlclAtvPr-.4bn$AH xot AH/s/oa/cieel51/i:PT $epr PT=urlclAtvPr-.4st/i:PT xot AH/s/oa/cieel51/iebn$AH To permanently add the directory to your PATH, add it to the . r f l or . a h p o i efile in the poie bs_rfl user's home directory. For example: PT=urlclAtvPr-.4bn$AH AH/s/oa/cieel51/i:PT PT=urlclAtvPr-.4st/i:PT AH/s/oa/cieel51/iebn$AH epr PT xot AH
docs.activestate.com/activeperl/5.14/install.html#
4/9
9/24/12
Alternatively, symbolic links to the binaries can be created in any bin directory currently in the PATH. For example: PT=Ues<srae/i:PT AH/sr/uenm>bn$AH $l - /s/oa/cieel51/i/el/sr/uenm>bnpr n s urlclAtvPr-.4bnpr Ues<srae/i/el $l - /s/oa/cieel51/i/p /sr/uenm>bnpm n s urlclAtvPr-.4bnpm Ues<srae/i/p
Uninstalling ActivePerl on OS X
To uninstall ActivePerl, run the uninstall script: $sd /s/oa/cieel51/i/puisal uo urlclAtvPr-.4bna-nntl Removing ActivePerl will also remove perl modules manually installed using PPM. If neccessary, remove any symbolic links created during configuration. For example: $r /sr/uenm>bnpr m Ues<srae/i/el
Linux Prerequisites
Hardware: 200 MB hard disk space for typical install Operating System: Red Hat 6.2 or later, Debian 2.2 or later Online Help: Web browser
9/24/12
We suggest adding the following line to your .bash_profile file: PT=PT:hm/uenm>bn AH$AH/oe<srae/i Also, we suggest that you create symbolic links to the binaries: l - /oe<srae/cieel51/i/el/oe<srae/i/el n s hm/uenm>AtvPr-.4bnpr hm/uenm>bnpr l - /oe<srae/cieel51/i/p /oe<srae/i/p n s hm/uenm>AtvPr-.4bnpm hm/uenm>bnpm This will allow you to call ActivePerl with a command like: pr -e"el Wrd; el l Hlo ol!"
Linux Configuration
The Red Hat and Debian packages are installed into the /opt/ActivePerl-5.14 directory. Add the /opt/ActivePerl-5.14/bin directory to your PATH environment variable to conveniently access it. For example, in the C shell: %stn PT /p/cieel51/i:PT eev AH otAtvPr-.4bn$AH The generic installer allows you to install the package anywhere that the user has write permission. Add the bin directory to your PATH environment variable to conveniently access it. For example, in the C shell (assuming you installed into /home/<username>/ActivePerl-5.14): %stn PT /oe<srae/cieel51/i:PT eev AH hm/uenm>AtvPr-.4bn$AH
Solaris Installers
PKGADD Package The Solaris package is in pkgadd format. This should be installed as root, using the following commands: %gni AtvPr-.4210-u4slrspgg uzp cieel51..42sn-oai.k.z
docs.activestate.com/activeperl/5.14/install.html# 6/9
9/24/12
%pgd - AtvPr-.4210-u4slrspg kad d cieel51..42sn-oai.k This will install ActivePerl into /opt/ActivePerl-5.14. To uninstall ActivePerl, run: %pgmApr kr Sel This package has only been tested with Solaris 2.6, but is expected to be compatible with other Solaris 2.6 compatible installations as well, including Solaris 7 and Solaris 8. Gzipped Tarball for Solaris The generic installer allows installation as an unprivileged user, and into a user-specified path. GNU tar is required for extracting the files. See Known Issues in the ActivePerl Release Notes for details. Download the distribution to a temporary directory, extract the files, c d rto the ActivePerl hi directory and then run the script i s a l s . The installation script will prompt you for the ntl.h target installation directory. %trzfAtvPr-.4210-u4slrstrg a x cieel51..42sn-oai.a.z %c AtvPr-.4210 d cieel51..42 %.isals /ntl.h If GNU tar is installed as 'gtar', substitute that executable name in the first command above.
Solaris Configuration
The Solaris package is installed into the /opt/ActivePerl-5.14 directory. Add the /opt/ActivePerl-5.14/bin directory to your PATH environment variable to conveniently access it. For example, in the C shell: %stn PT /p/cieel51/i:PT eev AH otAtvPr-.4bn$AH The generic installer allows you to install the package anywhere that the user has write permission. Add the bin directory to your PATH environment variable to conveniently access it. For example, in the C shell (assuming you installed into /home/<username>/ActivePerl-5.14): %stn PT /oe<srae/cieel51/i:PT eev AH hm/uenm>AtvPr-.4bn$AH
AIX Installers
Gzipped Tarball for AIX ActivePerl is distributed on AIX as a gzipped tarball containing an installer. GNU tar is required for extracting the files (see Known Issues in the ActivePerl Release Notes for details). Download the distribution to a temporary directory, extract the files, chdir to the ActivePerl directory and run the script i s a l s . ntl.h
docs.activestate.com/activeperl/5.14/install.html#
7/9
9/24/12
$trzfAtvPr-.4210-i-.-sq.a.z a x cieel51..42ax53<e>trg $c AtvPr-.4210 d cieel51..42 $.isals /ntl.h If GNU tar is installed as 'gtar', substitute that executable name in the first command above. The installation script will prompt you for a target installation directory. If you share the system with other people, or if you do not have root access, you may install ActivePerl in your own user directory. For example: /oe<srae/cieel51 hm/uenm>AtvPr-.4
AIX Configuration
We suggest adding the bin directory of the ActivePerl installation to your .profile file. For example: PT=PT:hm/uenm>AtvPr-.4bn AH$AH/oe<srae/cieel51/i Alternatively, create symbolic links to the binaries in a directory already in your path. For example: $l - /oe<srae/cieel51/i/el/oe<srae/i/el n s hm/uenm>AtvPr-.4bnpr hm/uenm>bnpr $l - /oe<srae/cieel51/i/p /oe<srae/i/p n s hm/uenm>AtvPr-.4bnpm hm/uenm>bnpm
HP-UX Installers
Gzipped Tarball for HP-UX ActivePerl is distributed on HP-UX as a gzipped tarball containing an installer. GNU tar is required for extracting the files (see Known Issues in the ActivePerl Release Notes for details). Download the distribution to a temporary directory, extract the files, chdir to the ActivePerl directory and run the script i s a l s . ntl.h $trzfAtvPr-.4210-ARS-sq.a.z a x cieel51..42P-IC<e>trg $c AtvPr-.4210 d cieel51..42 $.isals /ntl.h If GNU tar is installed as 'gtar', substitute that executable name in the first command above. The installation script will prompt you for a target installation directory. If you share the system with other people, or if you do not have root access, you may install ActivePerl in your own user directory. For example: /oe<srae/cieel51 hm/uenm>AtvPr-.4
HP-UX Configuration
We suggest adding the bin directory of the ActivePerl installation to your .profile file. For example: PT=PT:hm/uenm>AtvPr-.4bn AH$AH/oe<srae/cieel51/i Alternatively, create symbolic links to the binaries in a directory already in your path. For example:
docs.activestate.com/activeperl/5.14/install.html# 8/9
9/24/12
2012 ActiveState Software Inc. All rights reserved. ActiveState, Komodo, ActivePerl, ActivePython, ActiveTcl, and Stackato are trademarks or registered trademarks of ActiveState. All other marks are property of their respective owners.
docs.activestate.com/activeperl/5.14/install.html#
9/9