[Flow-tools] Newbie with Python issue

Andrew Fort afort at choqolat.org
Fri Apr 6 16:20:51 EDT 2007


On 4/6/07, Dwann Hall <dhall33 at kennesaw.edu> wrote:

You probably want to try adding /usr/local/rrdtool/lib to your
/etc/ld.so.conf and re-run 'ldconfig -v' (and check that the libraries
appear in that output).

-a

> I am new to flow tools and Linux for that matter. I was able to stumble
> through getting flow-tools configured. I am able to get flow-report to work
> as well. But when I try to run flow-rpt2rrd, I get an error when python
> tries to "import rrdtool". I thought is was a profile error, so inserted the
> path to librrd.so.2 into my path but to no avail. I am poised to blow away
> my CentOS box and start all over again but I would like to get over this
> last hurdle before resorting to rebuilding my box.
>
> [root at testbox ~]# flow-cat /var/netflow/ft/ft-v05.2007-04-03.164001-0400 |
> flow-report -s/usr/local/netflow/var/cfg/IP-Port.cfg -Stest
> | flow-rpt2rrd -kpercent -p rrds
> Traceback (most recent call last):
>   File "/usr/local/netflow/bin/flow-rpt2rrd", line 5, in ?
>     import rrdtool
> ImportError: librrd.so.2: cannot open shared object file: No such file or
> directory
>
> [root at testbox ~]# locate librrd.so.2
> /usr/local/rrdtool/lib/librrd.so.2
> /usr/local/rrdtool/lib/librrd.so.2.0.9
> /usr/local/rrdtool-1.2.19/lib/librrd.so.2
> /usr/local/rrdtool-1.2.19/lib/librrd.so.2.0.9
> /var/netflow/installs/rrdtool-1.2.19/src/.libs/librrd.so.2
> /var/netflow/installs/rrdtool-1.2.19/src/.libs/librrd.so.2.0.9
> [root at testbox ~]# echo $PATH
> /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/rrdtool/lib:/usr/local/rrdtool-1.2.19/lib:/usr/local/RRDTool/bin:/usr/local/flow-tools/bin:/usr/local/netflow/bin:/usr/local/rrdtool-1.2.19:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
>
> ~Dwann
>
>
>
> Dwann A. Hall
> Information Technology Services
> Kennesaw State University
> dhall33 at kennesaw.edu
> _______________________________________________
> Flow-tools mailing list
> flow-tools at splintered.net
> http://mailman.splintered.net/mailman/listinfo/flow-tools
>


More information about the Flow-tools mailing list