Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Perl / Modules / December 2004



Tip: Looking for answers? Try searching our database.

2 versions of a module installed?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kevin Buzzard - 29 Dec 2004 12:27 GMT
Hi. I think I have currently got two versions of Net::DNS installed on
my system. Perl has always run fine on my system and I've never needed
to delve into its inner workings but I appear now to have some problems
(specifically, I have just upgraded spamassassin to 3.0.2 and am now
getting some unexpected error messages). Using linux, debian unstable.

Here's why I think something is wrong.

***

root@crackpot:~# perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support available (try 'install Bundle::CPAN')

cpan> i Net::DNS
Strange distribution name [Net::DNS]
Module id = Net::DNS
   DESCRIPTION  Interface to the DNS resolver
   CPAN_USERID  CREIN (Chris Reinhardt <cpan@triv.org>)
   CPAN_VERSION 0.48
   CPAN_FILE    C/CR/CREIN/Net-DNS-0.48.tar.gz
   DSLI_STATUS  RmhO (released,mailing-list,hybrid,object-oriented)
   MANPAGE      Net::DNS - Perl interface to the DNS resolver
   INST_FILE    /usr/local/lib/perl/5.8.4/Net/DNS.pm
   INST_VERSION 0.48

cpan>

***

This seems (to me) to indicate that I have V0.48 of Net::DNS installed.
*But* running spamassassin V3.02 e.g. with

$ spamassassin -r < sample_spam.txt > spam.out

gives me errors of the form

Net::DNS version is 0.23, but need 0.34dnsavailable-1 at /usr/local/share/perl/5.8.4/Mail/SpamAssassin/Dns.pm line 1230.

I am a total novice now. Here are some things that might be helpful:

root@crackpot:~# locate Dns.pm
/root/.cpan/build/Mail-SpamAssassin-2.63/blib/lib/Mail/SpamAssassin/Dns.pm
/root/.cpan/build/Mail-SpamAssassin-2.63/lib/Mail/SpamAssassin/Dns.pm
/usr/local/Mail-SpamAssassin-2.63/lib/Mail/SpamAssassin/Dns.pm
/usr/local/Mail-SpamAssassin-3.0.2/blib/lib/Mail/SpamAssassin/Dns.pm
/usr/local/Mail-SpamAssassin-3.0.2/lib/Mail/SpamAssassin/Dns.pm
/usr/local/share/perl/5.8.3/Mail/SpamAssassin/Dns.pm
/usr/local/share/perl/5.8.4/Mail/SpamAssassin/Dns.pm
/usr/share/perl5/Mail/SpamAssassin/Dns.pm
root@crackpot:~#

(is that rather a lot of Dns.pm's?)

$ perl -V
[snip]
Characteristics of this binary (from libperl):
 Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
 Built under linux
 Compiled at Oct 25 2004 01:13:24
 @INC:
   /etc/perl
   /usr/local/lib/perl/5.8.4
   /usr/local/share/perl/5.8.4
   /usr/lib/perl5
   /usr/share/perl5
   /usr/lib/perl/5.8
   /usr/share/perl/5.8
   /usr/local/lib/site_perl
   /usr/local/lib/perl/5.8.3
   /usr/local/share/perl/5.8.3

Perl itself will have been installed via debian's apt-get. I installed
spamassassin via the tarball.

Any hints as to how to convince spamassassin (which was compiled and
installed after I installed Net::DNS 0.48) to use the right version?

Cheers,

Kevin
Gunnar Hjalmarsson - 29 Dec 2004 16:04 GMT
> Hi. I think I have currently got two versions of Net::DNS installed on
> my system.

<snip>

> root@crackpot:~# locate Dns.pm

Hmm.. You'd better look for the location of DNS.pm or Net/DNS.pm (Linux
is case sensitive).

Also, what does

  $ perl -e 'print "$_\n" for @INC'

result in?

Signature

Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Kevin Buzzard - 29 Dec 2004 17:01 GMT
>Hmm.. You'd better look for the location of DNS.pm or Net/DNS.pm (Linux
>is case sensitive).

I knew that---but I knew sufficiently little about perl to know that
there was a DNS.pm as well as a Dns.pm :-) Thanks! In fact this is
enough of a hint! I have several DNS.pm's, I have just deleted the ones with
$VERSION = "0.23"; in and this has fixed the problem.

Cheers,

Kevin
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.