[mrtg] indexmaker problem

Steve Shipway s.shipway at auckland.ac.nz
Sun Apr 6 23:54:28 CEST 2008



> and the error message is :
> Possible precedence problem on bitwise | operator at
> /usr/local/mrtg/bin/../lib/mrtg2/BER.pm line 601.
...
> Can't locate package $VERSION for @MRTG_lib::ISA at

Two problems.

(1) you have an old version of BER.pm and a new version of Perl
(2) The MRTG_lib.pm library is not in the path.

The MRTG_lib and BER libraries come with MRTG, you should be able to
find them in the MRTG directory somewhere.  Make sure you don't have old
versions of BER.pm lying about (delete the old ones) and make sure the
MRTG_lib.pm and the correct BER.pm are in the INC path (the Perl include
path). If you put them in the mrtg/lib directory, you can have 'LibAdd:
/..../mrtg/lib' (correct the path of course) so that MRTG can find them.
You might not be able to do this with indexmaker, though, so you might
have to add 'push @INC,"/.../mrtg/lib";' near the beginning of the
indexmaker script.

I got around all this by just putting them into the
/usr/lib/perl5/site_perl/ path, but you have to be careful with versions
if you do this.

Steve



More information about the mrtg mailing list