Technology Errors

Can’t Locate JavaScript/DataFormValidator.pm In @INC

The error detailed below is from the Apache error logs. The error displayed in the Apache error log after the first attempt to visit monarch.cgi for the first time. I had already installed the JavaScript::DataFormValidator Perl module but after initially installing the JavaScript::DataFormValidator Perl module I also installed Perl 5.10 in a different location than the Perl 5.8.8 that was already installed on the CentOS Linux server. Below I describe the error, how to install the JavaScript::DataFormValidator Perl module using the CPAN shell, and some minor modifications I made to the Monarch CGI scripts to use Perl 5.10 instead of Perl 5.8.8.

Technology Errors

Perl Module Error: Can’t locate URI/Escape.pm in @INC

In the process of installing Monarch, which is a Nagios file manager, earlier I ran into a couple errors for modules I thought I had already installed. Then I realized the issue must be because during the process of installing modules Perl wanted to upgrade from 5.8 to 5.10 on CentOS. I went ahead and upgraded Perl however I left 5.8.8 intact since CentOS seems to rely on Perl 5.8.8 in many ways. Anyhow the full error I received is below as noted from the Apache error logs. You can easily resolve the below error by following the directions below.

Technology Errors

install_driver(Pg) failed: DBD::Pg object version 2.13.1 does not match bootstrap parameter v2.13.1

I recently decided to do a fresh CentOS install on a web server with a minimal amount of sites on it because it seemed easier than attempting to upgrade everything. With a fresh install I figured I would be forced to get everything completed quicker. The server was upgraded from CentOS 5.1 to CentOS 5.3 and from ISPConfig 2.X to ISPConfig 3.X. One of the virtual host configurations was for a Nagios server that monitors a fairly large list of servers running various services from basic server items like CPU, Load, Disk Space, etc. all the way to complex PostgreSQL statistics and other custom items. There are numerous Perl scripts to monitor PostgreSQL including check_pg_connections.pl, check_pg_lock_status.pl, check_pg_max_xid.pl, check_pg_queries.pl, check_pg_time.pl, and check_pg_waiting_queries.pl. The scripts use the DBD-Pg Perl module to make a connection (remote or local) to PostgreSQL servers.

Technology Errors

Failed during this command: RGARCIA/perl-5.10.0.tar.gz : make NO isa perl

First let me say I am not very familiar with Perl or with CPAN so this is to hopefully help out anyone else in my shoes. I received the below type of error during various attempts at installing items from the CPAN shell. I will provide a couple examples of the errors as well as how I figured out that in reality I already had the latest version installed for my version of Perl, which is Perl 5.8.8, and the error was really saying there is a new version but Perl 5.10.0 is required.