Click here to get back home

2 versions of a module installed?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
2 versions of a module installed? Kevin Buzzard 12-29-2004
Posted by Kevin Buzzard on December 29, 2004, 1:27 pm
Please log in for more thread options

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_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


Posted by Gunnar Hjalmarsson on December 29, 2004, 6:04 pm
Please log in for more thread options
Kevin Buzzard wrote:
> 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?

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


Posted by Kevin Buzzard on December 29, 2004, 6:01 pm
Please log in for more thread options
>
>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


Similar ThreadsPosted
How do I totally remove module installed via MakeMaker February 5, 2005, 1:58 pm
DB_File needs compatible versions of libdb & db.h May 4, 2006, 5:14 am
Math Clipboard Guitest versions questions Feb 26, 2008 February 26, 2008, 12:37 pm
Spreadsheet-ParseExcel: Parsing various MS Excel file versions / grabing checkbox values? September 17, 2004, 3:11 am
What is installed December 8, 2005, 11:18 am
Updating installed modules? June 23, 2006, 3:36 am
Finding installed modules January 8, 2008, 4:52 pm
List of all modules installed on a system August 8, 2007, 1:41 pm
Modules installed with PPM -- how to install on air-gapped machines December 30, 2004, 7:16 pm
most elegant way to find an installed datafile directory July 7, 2006, 9:07 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap