On Sun, 9 Feb 2003 17:24:23 +0100, 
Arnt Karlsen <[EMAIL PROTECTED]> wrote in message 
<[EMAIL PROTECTED]>:

> Hi,
> 
> ..RH-8.0, and ntop-2.56-0, _which_ version rrd-tools to use???
> 
> ..rrdtools whines:
> [root@lana src]# rpm -Uvh 
> /usr/src/redhat/RPMS/i386/rrdtool*-1.0.40-1.8.0.i386.rpm 
> error: Failed dependencies:        perl(Net::SNMP) is needed by 
> rrdtool-1.0.40-1.8.0
> [root@lana src]#
> 
> ..rrd-tools keeps on whining:
> [root@lana src]# rpm -Uvh
> /usr/src/redhat/RPMS/i386/rrdtool-*1.0.38-1.i386.rpm 
> error: Failed dependencies:        perl(Net::SNMP) is needed by 
> rrdtool-1.0.38-1
> 
> ..which is exactly _nowhere_, best match is a mention of it over 
> at cpan.org, as a requirement for perl(Net::SNMP::Interfaces).

..turns out I jumped a bit to conclusions: 
http://search.cpan.org/author/DTOWN/Net-SNMP-4.0.3/lib/Net/SNMP.pm
http://search.cpan.org/author/JSTOWE/Net-SNMP-Interfaces-0.4/Interfaces.pm

..which of these do I need? 

..and where do I put it/them?
  
..I have: 
[root@lana ntop]# rpm -qa | grep perl
perl-libwww-perl-5.65-2
perl-DBD-Pg-1.13-5
perl-Compress-Zlib-1.16-8
perl-PDL-2.3.2-10
perl-XML-Dumper-0.4-22
perl-DB_File-1.804-55
perl-Net-DNS-0.26-2
perl-XML-Grove-0.46alpha-21
perl-File-MMagic-1.15-2
perl-Digest-HMAC-1.01-8
perl-SGMLSpm-1.03ii-6
perl-DBD-MySQL-2.1017-3
perl-HTML-Tagset-3.03-25
perl-XML-Encoding-1.01-20
perl-CGI-2.81-55
perl-Inline-0.43-7
perl-TermReadKey-2.20-2
perl-Date-Calc-5.0-25
postgresql-perl-7.2.3-5.80
perl-CPAN-1.61-55
perl-URI-1.21-3
perl-XML-Twig-3.05-3
perl-NKF-1.71-7
perl-BSD-Resource-1.15-4
perl-Digest-SHA1-2.01-6
gimp-perl-1.2.3-9
perl-Filter-1.28-9
perl-libxml-perl-0.07-25
groff-perl-1.18-6
perl-Archive-Tar-0.22-26
perl-Parse-RecDescent-1.80-8
perl-TimeDate-1.1301-2
perl-Storable-1.0.14-15
perl-HTML-Parser-3.26-14
perl-libxml-enno-1.02-25
perl-Crypt-SSLeay-0.45-2
perl-Frontier-RPC-0.06-33
perl-suidperl-5.8.0-55
perl-Bit-Vector-6.1-28
perl-Text-Kakasi-1.05-2
mod_perl-1.99_05-3
ImageMagick-perl-5.4.7-5
perl-Devel-Symdump-2.03-9
tclperl-2.3-1
perl-DateManip-5.40-27
perl-Time-HiRes-1.20-23
perl-Parse-Yapp-1.05-26
perl-DBI-1.30-1
perl-RPM2-0.45-1
perl-5.8.0-55
openssl-perl-0.9.6b-29
perl-XML-Parser-2.31-12
perl-Filter-Simple-0.78-8
[root@lana ntop]# rpm -qa | grep net-snmp
net-snmp-5.0.6-8.80.2
net-snmp-utils-5.0.6-8.80.2
net-snmp-devel-5.0.6-8.80.2
[root@lana ntop]#

...and: 
[root@lana ntop]# ll *.pm
-rw-rw-r--    1 arnt     arnt         9867 Feb 10 02:50 Interfaces.pm
-rw-rw-r--    1 arnt     arnt        88023 Feb 10 02:49 SNMP.pm
[root@lana ntop]# head *.pm
==> Interfaces.pm <==
#**********************************************************************
#********                                                               
#           *
#*                          Gellyfish Software                          
#    *
#*                                                                      
#    *
#*                                                                      
#    *
#**********************************************************************
#********                                                               
#           *
#*      PROGRAM     :  Net::SNMP::Interfaces.                           
#    *
#*                                                                      
#    *
#*      AUTHOR      :  JNS                                              
#    *

==> SNMP.pm <==
# -*- mode: perl -*-
# =====================================================================
# =======

package Net::SNMP;

# $Id: SNMP.pm,v 4.5 2002/09/09 12:46:09 dtown Exp $

# Copyright (c) 1998-2002 David M. Town <[EMAIL PROTECTED]>
# All rights reserved.

[root@lana ntop]#
 

..furthermore, "Burton Strauss" <[EMAIL PROTECTED]> advices:
 
>  There's no conceivable reason why ntop needs the snmp enabled version
>  of rrdtool.
> 
>  Perhaps you should just use the source for rrdtool.  It should check
>  your system, decide it's not there and build without.

..ok.

"----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/rrdtool-1.0.40/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------"

...should move to the end of the 'make install' output?

..both for tarballs and rpms.  

..manuals, binaries etc can stay in /usr/local/rrdtools-$whatever/,
but symlinks to the correct places will be nice, and facilitates
both removal and upgrades.

-- 
..med vennlig hilsen = with Kind Regards from Arnt... ;-)
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to