Construction of Perl development environment--windows

Source: Internet
Author: User

Steps Summary:

1. Download the installation file

2. Click on the file to install

3. Setting Environment variables

4. Test whether the installation was successful

Example of installing active Perl 5.22 on a Win8

Details:

1. Download the installation file

1) Way1: Install the compiler yourself, then install the Perl module, then compile, install. The benefit of this approach is that all modules can be compiled and installed

2) way2: Download the compiled Perl module directly to install only the defined modules. However, the compiled modules generally contain the functions required by the day. It is best for beginners to install using the second method

Demonstration with Active Perl installation

-Download the MSI file for the local machine in the Web HttP://www.activestate.com/activeperl/downloads

-ActiveState has packaged Perl into the ActivePerl installation file, which corresponds to the latest version of Perl 5.22

If the computer is 32-bit, select x86 download, if the computer is 64-bit, select x64 download.

My computer is 64-bit, so the choice is x64

2. Install Active Perl
After the download is complete, install the active Perl program
1) double hit Open--next

2) agree to license agreement, Next

3) We can specify the path of Perl, but it is best not to have Chinese. When the installation path is specified, you should also note that you need to use it later when setting environment variables.
Next

4) TheNEX point selection is added to the environment path, click on the associated Perl program--Next

5) Install

6) Finish

3. Setting Environment variables

If the add to environment path is selected in the installation process, the ActivePerl automatically sets the environment variable. However, due to compatibility issues, sometimes it will not be set up, then we need to manually add.

The purpose of setting environment variables is to allow the system to recognize the "Perl" 4 letters, without the need to add a lengthy absolute path to run the Perl program

1) Right button "This computer" property

2) Environment variables, advanced system settings


3) under "System variables", find "Path", if not, you need to add it manually.
You can see that active Perl has set environment variables, and if not, you need to add them manually and separate them with semicolons.

Click "OK"




4. Test whether the installation is successful
Enter the operation command for Windows, using the command "Perl-v" or "perl-version"

You can see that the currently installed Perl version and some other relevant information about Perl are indicated after you enter "Perl-v". If you want to know more information, you can use "perl-v" to view


Once the installation is complete, we only need to enter "Perl xxx.pl" when we run the Perl program. xxx.pl for Perl program name


Reference Video: Geek's College "Building Perl Development Environment"

Construction of Perl development environment--windows

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.