From owner-freebsd-questions@FreeBSD.ORG Wed Sep 24 18:58:15 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 807C21065679 for ; Wed, 24 Sep 2008 18:58:15 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (dc.cis.okstate.edu [139.78.103.93]) by mx1.freebsd.org (Postfix) with ESMTP id 5427C8FC18 for ; Wed, 24 Sep 2008 18:58:15 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (localhost.cis.okstate.edu [127.0.0.1]) by dc.cis.okstate.edu (8.14.2/8.13.8) with ESMTP id m8OIwEYO035342 for ; Wed, 24 Sep 2008 13:58:14 -0500 (CDT) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <200809241858.m8OIwEYO035342@dc.cis.okstate.edu> to: freebsd-questions@freebsd.org Date: Wed, 24 Sep 2008 13:58:14 -0500 From: Martin McCormick Subject: Re: FreeBSD Port of mrtg Not Happy when Trying to Start X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2008 18:58:15 -0000 It appears that the problem of getting mrtg to start may have something to do with perl and libraries. I installed mrtg on another FreeBSD6.3 system today. That system would have worked so I began poking around on both systems and then it hit me. It's terribly obvious after one realizes what is wrong. The problem system complains: Can't locate SNMP_util.pm in @INC (@INC contains: --- and then a ls showing everything else that is there. The working test system does have: /usr/local/lib/perl5/site_perl/5.8.8/SNMP_util.pm The problem system actually has an extremely similar file name: /usr/local/lib/perl5/site_perl/5.8.8/Net_SNMP_util.pm Easy to overlook but still a totally different file name. Gee, what if I just link the missing name to the good file as in ln -s Net_SNMP_util.pm SNMP_util.pm That produced: Subroutine version redefined at /usr/local/lib/perl5/site_perl/5.8.8/SNMP_util.pm line 394. and so on for 22 lines of similar squawks. I did briefly have net-snmp installed on that system but it has been deinstalled unless it left a library or two lying around. There is no need for net-snmp so if I could figure out what it put on and make sure it is gone, that might fix the problem. Martin McCormick