How to install Perl modulesOur 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.
- How to install Perl modules via WHM
- How to install Perl modules via the command line (Linux-based systems)
- How to install Perl modules via ActivePerl
- How to install Perl modules via Cygwin
- How to install Perl modules via Strawberry Perl
How to install Perl modules via WHM
- Login to your WHM
- Locate/search for "Install a Perl Module" in the left hand menu
- On the "Install a Perl Module" screen, enter the name of the module you wish to install and click "Install Now":
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):
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:
...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.
How to install Perl modules via ActivePerlActivePerl 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
How to install Perl modules via CygwinOpen the Cygwin Terminal, and type:
cpan> install <module_name>
How to install Perl modules via Strawberry PerlOpen the Cpan Client, and type:
← Return to Knowledgebase