MIDAS KnowledgebaseMIDAS Knowledgebase

How to install Perl modules

Our web-based Room Booking and Resource Scheduling system, MIDAS is written in the Perl programming language. Perl is available for all major web servers, and installed as standard on most web servers nowadays.

If Perl isn't available on your server, it must first be installed & configured before you can install and run MIDAS.

MIDAS also requires a number of Perl "modules", many of which are included in the default installation of Perl. Once you've installed Perl, our Server Readiness Tool will then help you to identify any missing Perl modules required by MIDAS.

This article outlines how to install any missing modules identified through our Server Readiness Tool, or when attempting to install MIDAS on your server.

WHM/cPanel How to install Perl modules via WHM

  1. Login to your WHM
  2. Locate/search for "Install a Perl Module" in the left hand menu
  3. On the "Install a Perl Module" screen, enter the name of the module you wish to install and click "Install Now":
    How to install a Perl module in WHM

Linux How to install Perl modules via the command line (Linux-based systems)

Before installing Perl modules for the first time, you'll need to ensure that the CPAN Perl Module installer has been installed, to do this from the command line (bash):
# yum install perl-CPAN make gcc
# cpan
You'll then be prompted to configure CPAN for the first time.
Once complete, at the cpan prompt, type o conf commit to save settings, followed by quit to exit the cpan prompt.

You'll only need to do the above once. Once CPAN has been installed, installing a Perl module is as simply as entering the following command from the command line:

# /usr/bin/perl -MCPAN -e 'install <module_name>'

...where "<module_namegt;" is the name of the module you wish to install (i.e. "DBD::mysql") and "/usr/bin/perl" is the path to the installation of Perl on your server in which you wish to install the module (which should be the same as the "Path To Perl" setting you subsequently specify when installing MIDAS on your server).
When installing Perl modules via the command line in this way, if you omit the path to path, and simply type "perl -MCPAN....", this will instead install Perl modules to the default/root installation of Perl on your server, which may not be the same installation that is available when you install your MIDAS scheduling system (as many servers have multiple installations of Perl at different server locations for different users/purposes). For this reason, it's recommended that you always specify the path to the perl installation your MIDAS system will use, rather than just using "perl" (with no path) when installing Perl modules via the Linux command line.

ActivePerl How to install Perl modules via ActivePerl

ActivePerl comes with a Perl Package Manager (PPM) utility which allows you to easily install additional Perl modules.
Instructions for how to install Perl modules via PPM may be found in our Install & Configure Perl on Windows guide.
Vendor documentation on how to use the PPM tool may also be found here

Cygwin How to install Perl modules via Cygwin

Open the Cygwin Terminal, and type:
$ perl -MCPAN -e shell
cpan> install <module_name>

...or just:
$ cpan <module_name>

Note: You'll need to ensure that "Make" is installed as part of your Cygwin setup in order to be able to install Perl modules. To install "Make", run your Cygwin setup again and you'll find "Make" listed under "Devel" category

Strawberry Perl How to install Perl modules via Strawberry Perl

Open the Cpan Client, and type:
cpan> install <module_name>
You might also be interested in...
MIDAS » KB » Support » Article 00129

← Return to Knowledgebase