Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

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

From: Jose Mario Pires <jose.mario.pires(at)nls.pt>
Date: Sat Oct 13 2007 - 23:36:15 EDT


On Sat, October 13, 2007 15:59, Bob Proulx wrote:
> ...
>> I have installed the last available version of Qmailtoaster and things
>
> Is Qmailtoaster related to SpamAssassin?

Qmailtoaster is a package or distribution that includes Vpopmail (that in turn is a package based in Qmail), SpamAssassin and other products like Clamav and Squirrel Mail.

>> 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.
>
> $ 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.
>...

Thank you very much for the feedback.

Silly me, it was just a problem with permissions: contrarily to most of the directories of Perl, the directory that contains Net/DNS/RR/PTR.pm was accessible only by root. I guess it is put like that by the CPAN makefiles.

Regards,
Jose Received on Sat Oct 13 23:37:20 2007

This archive was generated by hypermail 2.1.8 : Fri Jul 04 2008 - 15:01:39 EDT

Do you need help?X

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