2 versions of a module installed?

From: Kevin Buzzard (buzzard_at_crackpot.ma.ic.ac.uk)
Date: 12/29/04


Date: Wed, 29 Dec 2004 12:27:34 +0000 (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



Relevant Pages

  • RE: Trying to make DBI work for me
    ... leaving something behind that conflicts with the new installation. ... Everything worked fine if we unstalled perl 5.6, ... directory, installed perl 5.8, and reloaded the DBI and DBD modules. ... Using 'ppm uninstall DBI' I uninstalled DBI. ...
    (perl.dbi.users)
  • RE: rooted NT/2K boxen?
    ... If you suspect that a compromise has occurred, ... above information are available as Perl scripts from ... executables (Perl installation not required), ... Health - your guide to health and wellness ...
    (Focus-Microsoft)
  • Re: question about installation of GD::Text on cygwin (could be a Makefile q)
    ... I just created a fresh installation of Perl 5,8.2 on my platform: ... Writing Foo/Makefile.PL ... If someone else could run the above tests on Cygwin as well, ...
    (comp.lang.perl.misc)
  • Re: pkgdb -F and a few other questions
    ... Some of the app's were dependent on Perl 5.6.1, ... > to the Perl 5.8.1 and all is well, and ran a use.perl port command. ... Yes -- replacing the main perl installation does tend to blow away ... All of the packages in question are modules you've installed directly ...
    (freebsd-questions)
  • Re: [opensuse] GPRS Easy Connect and perl-Gnome2
    ... use the cpan shell rather than install them manually ... or individually from the command line ... I use Perl extensively, install all my modules from CPAN and have never ... but in that environment the installation mechanism will follow ...
    (SuSE)