How To Install Perl On Windows Server 2008

How to install & configure ActivePerl on a Windows server This article is part of our 'How to install pre-requisites needed for running a self-hosted edition of MIDAS from a Windows server' series.It applies to self-hosted installations of MIDAS on Windows-based servers only, and outlines how to install ActivePerl on Windows. Other Windows distributions of Perl (such as Strawberry Perl) are. The only reason to install ActivePerl is if you will be running Perl. Both Linux machines and Windows machines, you will want to install Perl to.

Installing Perl modules required by various open source software is a routine tasks for sysadmins. Installing Perl modules manually by resolving all the dependencies is tedious and annoying process.

Installing Perl modules using CPAN is a better solution, as it resolves all the dependencies automatically. In this article, let us review how to install Perl modules on Linux using both manual and CPAN method.

When a Perl module is not installed, application will display the following error message. In this example, XML::Parser Perl module is missing.

Install Perl Modules Manually

Download Perl module

Go to CPAN Search website and search for the module that you wish to download. In this example, let us search, download and install XML::Parser Perl module. I have downloaded the XML-Parser-2.36.tar.gz to /home/download

Build the perl module

Install the perl module

This is very simple for one module with no dependencies. Typically, Perl modules will be dependent on several other modules. Chasing all these dependencies one-by-one can be very painful and annoying task. I recommend the CPAN method of installation as shown below. Use the manual method only if the server is not connected to the Internet.

Install Perl Modules using CPAN automatically

Verify whether CPAN is already installed

To install Perl modules using CPAN, make sure the cpan command is working. You should have the CPAN perl module installed before you can install any other Perl modules using CPAN. In this example, CPAN module is not installed.

Install the CPAN module using yum

Output of yum install perl-CPAN command:

Configure cpan the first time

The first time when you execute cpan, you should set some configuration parameters as shown below. I have shown only the important configuration parameters below. Accept all the default values by pressing enter.

Note: Make sure to execute “o conf commit” in the cpan prompt after the configuration to save the settings.

Install Perl Modules using CPAN

Cnckad 17 torrent download. You can use one of the following method to install a Perl module using cpan.

Output of above perl install command:

In the example above, Email::Reply is dependent on the several other modules. CPAN automatically resolves the dependencies and installs Email::Reply and all the dependent Perl modules.

If you liked this article, please bookmark it on del.icio.us and Stumble it.

> Add your comment

If you enjoyed this article, you might also like.

How to setup windows server

Next post: Backup and Restore MySQL Database Using mysqldump

Previous post: How To Install Or Upgrade LAMP: Linux, Apache, MySQL and PHP Stack Using Yum

    Search