Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

problem: "can't locate package $VERSION"

by shriken (Priest)
on Apr 25, 2007 at 15:38 UTC ( #612042=perlquestion: print w/ replies, xml ) Need Help??
shriken has asked for the wisdom of the Perl Monks concerning the following question:

This problem is part of some Perl code which supports an MRTG (multi-router traffic grapher) installation. I think I broke this when I recently upgraded to perl 5.8.8. I'm getting...
Can't locate package $VERSION for @MRTG_lib::ISA at /usr/bin/indexmake +r line 49 main::BEGIN() called at /usr/bin/../lib/mrtg2/ line 49 eval {...} called at /usr/bin/../lib/mrtg2/ line 49 Can't locate package $VERSION for @MRTG_lib::ISA at (eval 6) line 1.
line 49 in /usb/bin/indexmaker (it's a perl script) is: use MRTG_lib "2.090017"; starts off with...
package MRTG_lib; require 5.005; use strict; use SNMP_util "0.86"; use vars qw($OS $SL $PS @EXPORT @ISA $VERSION %mrtgrules);
and the vars module (in my /usr/local/lib/perl5/5.8.8/) has: our $VERSION = '1.01'; a runtime peek at @INC with perl -e 'print(join(",\n",@INC));' reports
/usr/local/lib/perl5/5.8.8/i686-linux, /usr/local/lib/perl5/5.8.8, /usr/local/lib/perl5/site_perl/5.8.8/i686-linux, /usr/local/lib/perl5/site_perl/5.8.8, /usr/local/lib/perl5/site_perl,
ok, I'm lost...

Comment on problem: "can't locate package $VERSION"
Select or Download Code
Replies are listed 'Best First'.
Re: problem: "can't locate package $VERSION"
by NetWallah (Abbot) on Apr 25, 2007 at 16:21 UTC
    You will need to upgrade MRTG to at least 2.9.22 (Current version is 2.15.1).

    From the CHANGELOG:

    Changes 2.9.22
    From: Tobi
    * removed VERSION for ISA arry in ... it has no reason to be
      there, and perl 5.8 complains

         "Choose a job you like and you will never have to work a day of your life" - Confucius

Re: problem: "can't locate package $VERSION"
by Anonymous Monk on Apr 26, 2007 at 03:10 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://612042]
Approved by Joost
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2015-12-01 21:56 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (28 votes), past polls