[rrd-users] Re: RRD Module

Tom Jones Jr - RR tjonesjr at stny.rr.com
Mon Mar 3 22:30:36 MET 2003


Well after a week of hard googling I finally found a solution to my
php/rrdtool problem.  I am posting here not because anyone cares, but
for archiving sakes.  So when someone like me try's to find the answer
they can search the archives and find the answer.  
I was not able to get the php4 module to compile into php.  However I
was able to finally get it to load through the dl() function in php.
Here is the fix for it:

cd contrib/php4
vi php_rrdtool.h 
before the "#if COMPILE_DL" line add the following line.
#include "php_config.h"

then:
./configure --with-rrdtool=/your/path/to/rrdtool --enable-shared
make

In the contrib/php4/modules directory will reside the rrdtool.so
Now just load it via the dl() function. And you wont get that pesky:
PHP Warning: Invalid library (maybe not a PHP library) 'rrdtool.so'
error

Hope this helps someone else!



<^> -----Original Message-----
<^> From: rrd-users-bounce at list.ee.ethz.ch 
<^> [mailto:rrd-users-bounce at list.ee.ethz.ch] On Behalf Of Tom 
<^> Jones Jr - RR
<^> Sent: Monday, March 03, 2003 11:10 AM
<^> To: 'RRD List'
<^> Subject: [rrd-users] RRD Module
<^> 
<^> 
<^> Can anyone tell me who developed the PHP4 extension for 
<^> RRDTool? Multiple questions have been posted here regarding 
<^> this however no one ever responds to their questions, 
<^> including my own.  I would like to contact the person who 
<^> developed this to see if he/she can answer the questions 
<^> that a few of us are having problems with.
<^> 
<^> 
<^> 
<^> 
<^> 
<^> --
<^> Unsubscribe 
<^> mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe

Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list