in reply to Re^4: Custom module is present but not read by Apache (?)
in thread Custom module is present but not read by Apache (?)

But on the old machine, there is one of these files:

/usr/lib/perl5/5.12.3/x86_64-linux-thread-multi/Error.pm /usr/lib/perl5/5.12.3/Error.pm /usr/lib/perl5/vendor_perl/5.12.3/x86_64-linux-thread-multi/Error.pm /usr/lib/perl5/vendor_perl/5.12.3/Error.pm /usr/lib/perl5/5.12.3/x86_64-linux-thread-multi/Error.pm /usr/lib/perl5/5.12.3/Error.pm

And on the new machine, no such file exists:

/root/perl5/lib/perl5/5.16.3/x86_64-linux-thread-multi/Error.pm /root/perl5/lib/perl5/5.16.3/Error.pm /root/perl5/lib/perl5/x86_64-linux-thread-multi/Error.pm /root/perl5/lib/perl5/Error.pm /usr/local/lib64/perl5/Error.pm /usr/local/share/perl5/Error.pm /usr/lib64/perl5/vendor_perl/Error.pm /usr/share/perl5/vendor_perl/Error.pm /usr/lib64/perl5/Error.pm /usr/share/perl5/Error.pm

Most likely, as I and tobyink already pointed out, Errror.pm is installed on the old machine, but is not on the new machine. Either talk to your system administrator, or the developer of the program about the prerequisites. Also consider maybe installing Error.pm via the package manager on the new machine, or instructing your system administrator to do so.

You can check on the old machine if Error is installed by using:

perl -MError -e 'print "Error.pm is installed"'

Replies are listed 'Best First'.
Re^6: Custom module is present but not read by Apache (?)
by Anonymous Monk on Dec 10, 2019 at 13:29 UTC
    Ok, now, THAT seems strange... I can run the login.cgi script locally (terminal) and I get the HTML page - no problem. BUT, when I try to load in on Firefox, then I get again the same message with the Error module. I checked and Error is installed. I also tried to install it through CPAN and it said:
    cpan[3]> install Error + + + Error is up to date (0.17028).
    So, I am thinking that something is wrong with my Apache conf file, but what could it be I wonder?
      Ah, I checked: OLD machine: /usr/lib/perl5/vendor_perl/5.12.3/Error.pm NEW machine: /root/perl5/lib/perl5/Error.pm Is this a problem?
        Ok, it is, because this path is not in the new server's INC. Can I install the Error.pm module in anothe path? When I do it through CPAN, I think it puts it under /root/perl5, which is not part of @INC