That's the standard error message and text from a failed dlopen() in
plugin.c:

  pluginPtr = dlopen(pluginPath, RTLD_NOW); /* Load the library */
  if(pluginPtr == NULL) {
     traceEvent(CONST_TRACE_WARNING,
               "WARNING: unable to load plugin '%s'\n[%s]\n",
               pluginPath, dlerror());

>From man dlopen:

       If  dlopen  fails  for  any  reason, it returns NULL.  A human
readable
       string describing the most recent error that occurred from any  of
the
       dl routines (dlopen, dlsym or dlclose) can be extracted with
dlerror().
       dlerror returns NULL if no errors have occurred since initialization
or
       since it was last called.  (Calling dlerror() twice consecutively,
will
       always result in the second call returning NULL.)

So the message text, 'librrd.so.0: cannot open shared object file: No such
file or directory', is from dlopen() itself, not ntop.

Is /usr/local/lib in the ld.so.conf file??  See man ldconfig...

Just because you can find it with locate or find, doesn't mean that it's
going to be found by ld.so...

-----Burton



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Eric
Greenwood
Sent: Tuesday, February 25, 2003 4:00 PM
To: [EMAIL PROTECTED]
Subject: [Ntop] RRD library not loading.


Any pointers please as to how to fix this ?? Host is vanilla RH8.0 Error
occurs at run time, and no rrd directory created in database folder.

ntop[27196]: WARNING: unable to load plugin
'/usr/local/lib/ntop/plugins/rrdPlugin.so' [librrd.so.0: cannot open
shared object file: No such file or directory]

Yet I have this file...

ll /usr/local/lib/ntop/plugins/rrdPlugin.so
-rwxr-xr-x    1 root     root       166001 Feb 20 20:08
/usr/local/lib/ntop/plugins/rrdPlugin.so

I installed ntop with this option..

./configure with-rrd-root=/usr/local/rrdtool

And I installed rrd like this...

$ gzip -dc rrdtool-1.0.39 | tar -xof -
$ cd rrdtool-1.0.39
$ ./configure --enable-shared --prefix=/usr/local/rrdtool
$ make install site-perl-install

Any advice gratefully received.

Eric.


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

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

Reply via email to