Results 1 to 4 of 4

Thread: MRTG on FreeBSD

  1. #1
    Join Date
    Feb 2004
    Posts
    1,226

    MRTG on FreeBSD

    hello

    after portupgrading my mrtg, I'm getting this error:
    -su-2.05b# mrtg
    MRTG_lib version 2.100015 required--this is only version 2.100001 at /usr/local/lib/perl5/5.8.6/Exporter/Heavy.pm line 121.
    BEGIN failed--compilation aborted at /usr/local/bin/mrtg line 84.
    any suggestion on how to fix it?


    some information that may be useful:
    -su-2.05b# locate MRTG_lib
    /usr/lib/mrtg2/MRTG_lib.pm
    /usr/local/lib/mrtg2/MRTG_lib.pm
    /usr/local/lib/perl5/site_perl/5.8.6/MRTG_lib.pm
    -su-2.05b# perl -v

    This is perl, v5.8.6 built for i386-freebsd-64int
    (...)
    -su-2.05b# whereis mrtg
    mrtg: /usr/local/bin/mrtg /usr/local/man/man1/mrtg.1.gz /usr/ports/net-mgmt/mrtg
    -su-2.05b# pkg_which /usr/local/bin/mrtg
    mrtg-2.10.13,1 mrtg-2.11.1,1
    -su-2.05b# pkg_info | grep -i mrtg
    mrtg-2.11.1,1 The multi-router traffic grapher

  2. #2
    Join Date
    Apr 2001
    Location
    Pittsburgh, PA
    Posts
    1,304
    Maybe it's picking up an older version, since you seem to have multiple copies.

    Try:
    grep 2.10 `locate MRTG_lib`

    Kevin

  3. #3
    Join Date
    Feb 2004
    Posts
    1,226
    Originally posted by sigma
    Maybe it's picking up an older version, since you seem to have multiple copies.

    Try:
    grep 2.10 `locate MRTG_lib`

    Kevin
    -su-2.05b# grep 2.10 `locate MRTG_lib`
    /usr/lib/mrtg2/MRTG_lib.pm:# MRTG 2.10.13 Support library MRTG_lib.pm
    /usr/lib/mrtg2/MRTG_lib.pm:$VERSION = 2.100001;
    /usr/local/lib/mrtg2/MRTG_lib.pm:# MRTG 2.10.13 Support library MRTG_lib.pm
    /usr/local/lib/mrtg2/MRTG_lib.pm:$VERSION = 2.100001;
    /usr/local/lib/perl5/site_perl/5.8.6/MRTG_lib.pm:$VERSION = 2.100015;
    I don't want to have multiple copies
    I tried to deinstall and install, but it kept one of them

  4. #4
    Join Date
    Feb 2004
    Posts
    1,226
    now it worked
    had to remove some .pm from /usr/local/lib/mrtg2
    (probably mrtg was using them instead of using the perl's ones)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •