Re: FreeBSD Port of mrtg Not Happy when Trying to Start

2008-09-24 Thread Martin McCormick
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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Port of mrtg Not Happy when Trying to Start

2008-09-23 Thread Martin McCormick
Jerry writes:
 On Mon, 22 Sep 2008 09:54:04 -0500
 Martin McCormick [EMAIL PROTECTED] wrote:
We are moving a mrtg system to FreeBSD so I installed
  the port from /usr/ports/net-mgmt/mrtg and the installation went
  flawlessly along with perl5.88 which it needs.

Then, I posted that I had failed to install the snmp utilities
so had not done everything necessary. At about that time, I
received the message I am partly quoting here.

 You might want to check and see if the 'p5-SNMP-Util-1.8.1' port is
 installed {/usr/ports/net-mgmt/p5-SNMP-Util}. If not, try installing it
 yourself and see if the problem goes away.

Thanks greatly. I did in fact not have it, installed it, and the
problem is still unchanged.

 If you have 'portmanager' installed, you could try:
 
 portmanager net-mgmt/p5-SNMP-Util -l -p -y

I installed portmamager and it reported everything
present.

 
 Check the '/var/log/portmanager.log' to see what transpired.

No complaints at all.

When installing mrtg, I left the ipv6 box unchecked as
we have none, and turned on the snmpV3 support which made no
difference.  Still the same error:

Can't locate SNMP_util.pm in @INC (@INC contains: /usr/local/bin/../lib/mrtg2 /u
sr/local/bin /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.
8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /us
r/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at /usr/local/bin/mrt
g line 292.

Since this is more or less a dead in the water error, I
suspect I am doing something in the wrong sequence or am not
totally starting from scratch on the mrtg make. I have been
doing

make clean, then make configure and then make install. 
There is no problem at all with the make process so I
am at a loss as to what to try next.

Martin McCormick
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Port of mrtg Not Happy when Trying to Start

2008-09-23 Thread Boris Samorodov
On Tue, 23 Sep 2008 08:30:03 -0500 Martin McCormick wrote:
 Jerry writes:
  On Mon, 22 Sep 2008 09:54:04 -0500
  Martin McCormick [EMAIL PROTECTED] wrote:

 We are moving a mrtg system to FreeBSD so I installed
   the port from /usr/ports/net-mgmt/mrtg and the installation went
   flawlessly along with perl5.88 which it needs.

 Then, I posted that I had failed to install the snmp utilities
 so had not done everything necessary. At about that time, I
 received the message I am partly quoting here.

  You might want to check and see if the 'p5-SNMP-Util-1.8.1' port is
  installed {/usr/ports/net-mgmt/p5-SNMP-Util}. If not, try installing it
  yourself and see if the problem goes away.

 Thanks greatly. I did in fact not have it, installed it, and the
 problem is still unchanged.

  If you have 'portmanager' installed, you could try:
  
  portmanager net-mgmt/p5-SNMP-Util -l -p -y

   I installed portmamager and it reported everything
 present.

  Check the '/var/log/portmanager.log' to see what transpired.

 No complaints at all.

   When installing mrtg, I left the ipv6 box unchecked as
 we have none, and turned on the snmpV3 support which made no
 difference.  Still the same error:

 Can't locate SNMP_util.pm in @INC (@INC contains: /usr/local/bin/../lib/mrtg2 
 /u
 sr/local/bin /usr/local/lib/perl5/5.8.8/BSDPAN 
 /usr/local/lib/perl5/site_perl/5.
 8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl 
 /us
 r/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at 
 /usr/local/bin/mrt
 g line 292.

 Since this is more or less a dead in the water error, I
 suspect I am doing something in the wrong sequence or am not
 totally starting from scratch on the mrtg make. I have been
 doing

 make clean, then make configure and then make install. 
 There is no problem at all with the make process so I
 am at a loss as to what to try next.

If you install ports at default paths then net-mgmt/p5-SNMP-Util
should install SNMP_util.pm to
/usr/local/lib/perl5/site_perl/5.8.8/SNMP .
Do you have this file?


WBR
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Port of mrtg Not Happy when Trying to Start

2008-09-23 Thread Martin McCormick
Boris Samorodov writes:
 If you install ports at default paths then net-mgmt/p5-SNMP-Util
 should install SNMP_util.pm to
 /usr/local/lib/perl5/site_perl/5.8.8/SNMP .
 Do you have this file?

I appear to.

$ pwd
/usr/local/lib/perl5/site_perl/5.8.8/SNMP

$ ls -l

total 68
-r-xr-xr-x  1 root  wheel  65627 Jun 27  2000 Util.pm
-r-xr-xr-x  1 root  wheel223 Jun 27  2000 Util_env.pm

Martin McCormick
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Port of mrtg Not Happy when Trying to Start

2008-09-23 Thread Dan Nelson
In the last episode (Sep 23), Martin McCormick said:
 When installing mrtg, I left the ipv6 box unchecked as we have none,
 and turned on the snmpV3 support which made no difference.  Still the
 same error:
 
 Can't locate SNMP_util.pm in @INC (@INC contains: /usr/local/bin/../lib/mrtg2 
 /usr/local/bin /usr/local/lib/perl5/5.8.8/BSDPAN 
 /usr/local/lib/perl5/site_perl/5.8.8/mach 
 /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl 
 /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at 
 /usr/local/bin/mrtg line 292.

That file is supposed to be installed by the p5-SNMP_Session port,
which is marked as a dependency by mrtg.  Do you maybe have an old or
bad install of that port?

$ locate /SNMP_util.pm
/usr/local/lib/perl5/site_perl/5.8.8/SNMP_util.pm

$ pkg_which /usr/local/lib/perl5/site_perl/5.8.8/SNMP_util.pm
p5-SNMP_Session-1.12

$ pkg_info -rR mrtg-2.16.2,1
Information for mrtg-2.16.2,1:

Depends on:
Dependency: perl-5.8.8_1
Dependency: p5-SNMP_Session-1.12
Dependency: png-1.2.32
Dependency: jpeg-6b_7
Dependency: pkg-config-0.23_1
Dependency: freetype2-2.3.7
Dependency: gd-2.0.35,1
Dependency: p5-PathTools-3.2701
Dependency: p5-Pod-Parser-1.35_2

$ pkg_info -L p5-SNMP_Session-1.12
Information for p5-SNMP_Session-1.12:

Files:
/usr/local/lib/perl5/site_perl/5.8.8/BER.pm
/usr/local/lib/perl5/site_perl/5.8.8/SNMP_Session.pm
/usr/local/lib/perl5/site_perl/5.8.8/SNMP_util.pm
/usr/local/lib/perl5/site_perl/5.8.8/mach/auto/SNMP_Session/.packlist
/usr/local/share/doc/SNMP_Session/README
/usr/local/share/doc/SNMP_Session/README.SNMP_util
/usr/local/share/doc/SNMP_Session/index.html

 
-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Port of mrtg Not Happy when Trying to Start

2008-09-23 Thread Boris Samorodov
On Tue, 23 Sep 2008 10:32:11 -0500 Martin McCormick wrote:
 Boris Samorodov writes:

  If you install ports at default paths then net-mgmt/p5-SNMP-Util
  should install SNMP_util.pm to
  /usr/local/lib/perl5/site_perl/5.8.8/SNMP .
  Do you have this file?

   I appear to.

 $ pwd
 /usr/local/lib/perl5/site_perl/5.8.8/SNMP

 $ ls -l

 total 68
 -r-xr-xr-x  1 root  wheel  65627 Jun 27  2000 Util.pm
 -r-xr-xr-x  1 root  wheel223 Jun 27  2000 Util_env.pm

I stand corrected, Dan Nelson was right, the needed file is installed
by net-mgmt/p5-SNMP_Session. Sorry for the confusion.


WBR
-- 
bsam
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Port of mrtg Not Happy when Trying to Start

2008-09-22 Thread Martin McCormick
Martin McCormick writes:
 We are moving a mrtg system to FreeBSD so I installed
 the port from /usr/ports/net-mgmt/mrtg and the installation went
 flawlessly along with perl5.88 which it needs.
 
 When I tried to start it, 

I just now found out that I should also install the snmp
utilities. I thought that mrtg took care of this, but it does
not so please disregard the earlier message. I will install
net-snmp and see if things work better.

Thanks.

Martin McCormick
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Port of mrtg Not Happy when Trying to Start

2008-09-22 Thread Jerry
On Mon, 22 Sep 2008 09:54:04 -0500
Martin McCormick [EMAIL PROTECTED] wrote:

   We are moving a mrtg system to FreeBSD so I installed
 the port from /usr/ports/net-mgmt/mrtg and the installation went
 flawlessly along with perl5.88 which it needs.
 
   When I tried to start it, I got the following taken from
 a screen capture so you can see the version number, etc:
 
 ===   Registering installation for mrtg-2.16.2,1
 mrtgfbsd# /usr/local/bin/mrtg /usr/local/etc/mrtg.cfg
 Can't locate SNMP_util.pm in @INC (@INC
 contains: /usr/local/bin/../lib/mrtg2 /u
 sr/local/bin /usr/local/lib/perl5/5.8.8/BSDPAN 
 /usr/local/lib/perl5/site_perl/5.
 8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl 
 /us
 r/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .)
 at /usr/local/bin/mrt g line 292.
 
   I did a standard make install on the mrtg port after
 doing the same for perl5.8 in /usr/ports/lang. One would expect
 that it should find everything it needs so I may have failed to
 give it the right options. I am hoping somebody has gotten
 mrtg to work under FreeBSD6.3 as I am not terribly familiar with
 it and am setting it up for the benefit of other members of our
 group who are waiting for it to be running.
 Many thanks for any ideas or information as to whether or not
 the port of mrtg should still run under FreeBSD6.3.

You might want to check and see if the 'p5-SNMP-Util-1.8.1' port is
installed {/usr/ports/net-mgmt/p5-SNMP-Util}. If not, try installing it
yourself and see if the problem goes away.

If you have 'portmanager' installed, you could try:

portmanager net-mgmt/p5-SNMP-Util -l -p -y

Check the '/var/log/portmanager.log' to see what transpired.

-- 
Jerry
[EMAIL PROTECTED]

A beautiful woman is a blessing from Heaven, but a good cigar is a
smoke. -- Kipling


signature.asc
Description: PGP signature