Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^5: Custom module is present but not read by Apache (?)

by Corion (Pope)
on Dec 10, 2019 at 13:07 UTC ( #11109917=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11109917]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2020-05-29 00:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (166 votes). Check out past polls.

    Notices?