导航菜单
首页 >  安装 ActiveState Perl  > ActivePerl 5.32 Documentation

ActivePerl 5.32 Documentation

Installing ActivePerl for Windows Installing ActivePerl using the State ToolInstalling ActivePerl using the Windows installerInstalling ActivePerl using the State Tool (beta)

The State Tool is the command line interface (CLI) for the ActiveState Platform. You can use it to authenticate with the Platform, and then download and configure your ActivePerl 5.32 runtime environment.

If you don’t already have the State Tool installed, open Windows Powershell as Administrator and run the following command to set it up:

IEX(New-Object Net.WebClient).downloadString('https://platform.activestate.com/dl/cli/install.ps1')

Open the command prompt (cmd.exe) and run state activate ActiveState/ActivePerl-5.32. This command downloads the runtime environment from the ActiveState Platform, configures it, and creates an “activated state”, an isolated environment for you to work in.

For information on installing and working with the State Tool, see the State Tool section in the ActiveState Platform documentation.

Installing ActivePerl using the Windows installer

You can install ActivePerl by downloading and running the Setup Wizard (.exe). For more complex installations you can run the Setup Wizard on the command line.

Before you begin

Before you start the installation, you need to ensure that your system meets the prerequisites, and that you do not have other Perl distributions that are going to conflict with ActivePerl.

PrerequisitesWindows Server 2008, 7, Server 2012, 8 (x86 and x64), and 10.The installation requires at least 200 MB of hard drive spacePerl for ISAPI requires an ISAPI-compatible web server, such as IISPerlScript requires an ActiveX scripting host such as Internet Explorer or Windows Scripting HostPerl Environment Variables: if Perl environment variablessuch as PERLLIB, PERL5LIB or PERL5OPThave been set on your system, you should unset them before installingActivePerl. Otherwise, these variables may cause incompatible versions ofPerl modules to be used during the installation process.System Account: (EXE Installer only) Do not launch theinstallation package from a directory for which the “System” account doesnot have read permission. If you do, the Windows Installer Service will notbe able to access the EXE file in order to perform the installation. Youmay get an error message to this effect, or it may fail mysteriously.Administrative Privileges: ActivePerl installations must be performed by a privileged useronly. If you install ActivePerl without full administrator privileges, thefollowing problems occur:Environment variables are set only for the current userPerlScript file associations are not createdThe PerlScript feature will be unavailableRegistry entries are created under HKEY_CURRENT_USER and not underHKEY_LOCAL_MACHINEIIS script mappings are not setActivePerl applications will not write messages to the event logActivePerl only appears in the Add/Remove Programslist for the current userUpgrading ActivePerl

Upgrading from earlier ActivePerl versions requires that you delete the old version of ActivePerl, and then install the 5.32 version.

Using the ActivePerl Setup Wizard

There are two ways to install ActivePerl with the setup wizard:

You can run the setup wizard and enter the required information to install the software.If you want to automate the installation, you can run the setup wizard from the command line.Running the ActivePerl Setup Wizard

When you install ActivePerl, you should run the setup wizard as an Administrator.

Note: If you do not have Administrator rights on the computer, you can use the generic ActiveState Package Installer to complete the installation.

Download and save the .exe installation package.Right-click the .exe file and select Run As Administrator.Follow the prompts on screen to complete the installation.

Running the installation as an Administrator allows other users on the computer to use ActivePerl, and ensures that all of ActivePerl’s features function correctly.

Running the ActivePerl Setup Wizard on the command line

You can install ActivePerl from the command line. You should start the command prompt as an Administrator to ensure the the installation can complete successfully. ActivePerl’s installer uses Windows Installer technology, which allows you to partially control the install from the command line.

Starting the Setup Wizard

You can start the Setup Wizard from the command line, and walk through the installation steps in the user interface.

c:\> ActivePerl-.exeLogging the Setup Wizard output

If you want to enable logging you can add the appropriate command line switches to specify the level of logging and the log file location. The following command will generate a log of the install in “install.log” in the current directory.

c:\> ActivePerl-.exe /L*v ./install.logSpecifying a custom installation directory

You can also specify a custom installation directory instead of using the default.

c:\> ActivePerl-.exe APPDIR=C:\apps\PerlComplete installation example

You can combine command line options to complete your custom installation from the command line. For example, the following command will install ActivePerl to C:\apps\Perl.

c:\> ActivePerl-.exe /qn+ APPDIR="C:\apps\Perl" ^ /L*v ./install.log

For more information about the command line installation options, contact support@activestate.com

Uninstalling ActivePerl

The ActivePerl for Windows can be uninstalled using the Modify, Repair or Uninstall ActivePerl shortcut in the ActiveState ActivePerl 2.7 program group in the Windows Start menu, or you can use Add/Remove Programs in the Control Panel.

Alternatively, you use the setup wizard (.exe) file to uninstall ActivePerl on the command line and write the progress to a log file:

c:\> ActivePerl-.exe /x // /L*v ./uninstall.logDocumentation built withHugousing theMaterial theme. ActiveState Platform   Downloads   Community   Code Recipes   © 2020 ActiveState Software Inc. All rights reserved. Trademarks. Privacy Policy.

相关推荐: