How to check if Perl module is installed

How to check if Perl module is installed

To verify if a specific perl module is installed on the server/ready for use, you can execute this command from shell:

perl -e "use Themodulename::Here"

For example, let's test if Zlib is installed "A core Perl module installed by default on all systems"

[root@carbondev ~]# perl -e "use Compress::Zlib"
[root@carbondev ~]#

The output will look like above, showing no errors in calling a use function. If the module is not installed however you'll see something like below output:

[root@carbondev ~]# perl -e "use Soap::Lite"
Can't locate Soap/Lite.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
    • Related Articles

    • RDS License not installed error showing on customers server

      Hello Customers may notice that RDS license is showing as not installed properly on their remote desktop session. Cartika utilizes a centralized, licensed per user, RDS install. Individual local admins, or RDS users will not be able to view the ...
    • MSSQL Redirect Module

      Cartika has introduced an MSSQL redirect module available for all Reseller customers (including UR customers, VDC, VPS and Cloud customers with MSSQL enabled) This module can be found under E.Manager > 3rd party Tools > CPDevel in your reseller ...
    • Menu Hider Module

      Cartika has added a new Module that is ready to use for ALL reseller customers. This includes UR customers, VDC, VPS or Cloud Hsphere customers. The menu hider can be found in your reseller control panel under E.Manager > 3rd Party Tools > CPDevel ...
    • Installing Bacula4Hosts Hsphere Control Panel Module

      To install Hsphere package su - cpanel java psoft.hsp.tools.PkgInstaller --package=Bacula1.0.2.hsp (replace 1.0.2.hsp with current version - ie x.x.x.hsp) Once installed, log into hsphere admin CP and navigate to E.Manager > 3rd Party Tools > ...
    • WHMCS Module for Reselling OnAPP Based Cloud & VPS Solutions

      Module download, instructions and guides can be found on the OnAPP site here   http://onapp.com/whmcs/