Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: "Can't locate Net/DNS/RR/PTR.pm in @INC"

From: Bob Proulx <bob(at)proulx.com>
Date: Sat Oct 13 2007 - 09:59:04 EDT


Jose Mario Pires wrote:
> Please excuse me if this isn't the appropriate place to report this issue
> and asking for help.

If it relates to use or development of SpamAssassin then it is on topic.

> I have installed the last available version of Qmailtoaster and things

Is Qmailtoaster related to SpamAssassin?

> error: Can't locate Net/DNS/RR/PTR.pm in @INC (@INC contains: ../lib
> ...
> I have checked that Net/DNS/RR/PTR.pm exists in
> /usr/lib/perl5/site_perl/5.8.8/x86_64-linux-thread-multi (one of the
> directories in @INC), so I can't figure out what is happening.

The typical way to check that a module is found and loaded by perl is to test it specifically. Run a script that can't have an error (for example "0") and then instruct perl to load the module (such as -MNet::DNS). If it is silent then it worked. If not then it failed.

  $ perl -Mnon-existent-module -e 0
  Can't locate non.pm in @INC (@INC contains: ...trimmed...   BEGIN failed--compilation aborted.

Using that test, the following should work if things are installed correctly. Or you will get a command line message that you can use to chase down the problem further.

Do you need help?X

  $ perl -MNet::DNS::RR::PTR -e 0

This succeeded silently for me on my system and I assume should work for you as well. But with the errors you have reported I assume that it will report an error on your system but will lead you to the problem.

Bob Received on Sat Oct 13 10:00:22 2007

This archive was generated by hypermail 2.1.8 : Fri Jul 04 2008 - 15:00:40 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library