<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to build the PHP rrdtool extension by hand</title>
	<atom:link href="http://www.ioncannon.net/system-administration/25/how-to-build-the-php-rrdtool-extension-by-hand/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ioncannon.net/system-administration/25/how-to-build-the-php-rrdtool-extension-by-hand/</link>
	<description>Thoughts on Software Development and Engineering</description>
	<lastBuildDate>Tue, 07 Sep 2010 07:38:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: patrick oleary</title>
		<link>http://www.ioncannon.net/system-administration/25/how-to-build-the-php-rrdtool-extension-by-hand/comment-page-1/#comment-154912</link>
		<dc:creator>patrick oleary</dc:creator>
		<pubDate>Sun, 18 Oct 2009 19:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ioncannon.net/uncategorized/25/how-to-build-the-php-rrdtool-extension-by-hand/#comment-154912</guid>
		<description>Much easier to compile if you use phpize

cd rrdtool-php/
phpize
./configure --enable-rrdtool
make
make install

echo &quot;extension=rrdtool.so&quot; &gt;&gt; /etc/php.ini 

restart your web server or continue with command line.</description>
		<content:encoded><![CDATA[<p>Much easier to compile if you use phpize</p>
<p>cd rrdtool-php/<br />
phpize<br />
./configure &#8211;enable-rrdtool<br />
make<br />
make install</p>
<p>echo &#034;extension=rrdtool.so&#034; &gt;&gt; /etc/php.ini </p>
<p>restart your web server or continue with command line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RRDTool bindings for php5 in Ubuntu</title>
		<link>http://www.ioncannon.net/system-administration/25/how-to-build-the-php-rrdtool-extension-by-hand/comment-page-1/#comment-146239</link>
		<dc:creator>RRDTool bindings for php5 in Ubuntu</dc:creator>
		<pubDate>Wed, 12 Aug 2009 05:38:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.ioncannon.net/uncategorized/25/how-to-build-the-php-rrdtool-extension-by-hand/#comment-146239</guid>
		<description>[...] others are talking about compiling it from source, but this seems very wrong and unnecessary to [...]</description>
		<content:encoded><![CDATA[<p>[...] others are talking about compiling it from source, but this seems very wrong and unnecessary to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: setiawan</title>
		<link>http://www.ioncannon.net/system-administration/25/how-to-build-the-php-rrdtool-extension-by-hand/comment-page-1/#comment-142660</link>
		<dc:creator>setiawan</dc:creator>
		<pubDate>Sun, 28 Jun 2009 05:25:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.ioncannon.net/uncategorized/25/how-to-build-the-php-rrdtool-extension-by-hand/#comment-142660</guid>
		<description>@Sébastien Cramatte

The correct package name of deb-helper it should be written as debhelper (i have tried by using Debian Etch), and also i have been followed your post and it works properly..thanks..</description>
		<content:encoded><![CDATA[<p>@Sébastien Cramatte</p>
<p>The correct package name of deb-helper it should be written as debhelper (i have tried by using Debian Etch), and also i have been followed your post and it works properly..thanks..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sébastien Cramatte</title>
		<link>http://www.ioncannon.net/system-administration/25/how-to-build-the-php-rrdtool-extension-by-hand/comment-page-1/#comment-23240</link>
		<dc:creator>Sébastien Cramatte</dc:creator>
		<pubDate>Tue, 03 Jul 2007 22:59:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.ioncannon.net/uncategorized/25/how-to-build-the-php-rrdtool-extension-by-hand/#comment-23240</guid>
		<description>For impatient and perfectionist It possible to build a clean php rrdtool debian package in 5mn ...

First you should use www.dotdeb.org php5 packages that are always up to date ...

With the help of this little magic script  
http://svn.dotdeb.org/debianize/

You can build your extension ...
This script requires php5-dev, deb-helper, build-essential package and of course the 
php-rrdtool source (http://ftp.idilis.ro/mirrors/rrdtool/contrib/php_rrdtool.tgz
)

/usr/src#apt-get install php5-dev deb-helper build-essential librrd2-dev 
/usr/src#wget http://ftp.idilis.ro/mirrors/rrdtool/contrib/php_rrdtool.tgz
/usr/src#tar-xvzf php_rrdtool.tgz
/usr/src#./debianize5 rrdtool 
...

Creating php5-rrdtool...
   PHP version : 5.2.3-0.dotdeb.1
   PHP Api : 20041225

Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
dh_testdir
...
dpkg-deb: building package `php5-rrdtool&#039; in `../php5-rrdtool_5.2.3-0.dotdeb.1_amd64.deb&#039;.


Nice ;)
Hope that will be useful ...</description>
		<content:encoded><![CDATA[<p>For impatient and perfectionist It possible to build a clean php rrdtool debian package in 5mn &#8230;</p>
<p>First you should use <a href="http://www.dotdeb.org" rel="nofollow">http://www.dotdeb.org</a> php5 packages that are always up to date &#8230;</p>
<p>With the help of this little magic script<br />
<a href="http://svn.dotdeb.org/debianize/" rel="nofollow">http://svn.dotdeb.org/debianize/</a></p>
<p>You can build your extension &#8230;<br />
This script requires php5-dev, deb-helper, build-essential package and of course the<br />
php-rrdtool source (<a href="http://ftp.idilis.ro/mirrors/rrdtool/contrib/php_rrdtool.tgz" rel="nofollow">http://ftp.idilis.ro/mirrors/rrdtool/contrib/php_rrdtool.tgz</a><br />
)</p>
<p>/usr/src#apt-get install php5-dev deb-helper build-essential librrd2-dev<br />
/usr/src#wget <a href="http://ftp.idilis.ro/mirrors/rrdtool/contrib/php_rrdtool.tgz" rel="nofollow">http://ftp.idilis.ro/mirrors/rrdtool/contrib/php_rrdtool.tgz</a><br />
/usr/src#tar-xvzf php_rrdtool.tgz<br />
/usr/src#./debianize5 rrdtool<br />
&#8230;</p>
<p>Creating php5-rrdtool&#8230;<br />
   PHP version : 5.2.3-0.dotdeb.1<br />
   PHP Api : 20041225</p>
<p>Configuring for:<br />
PHP Api Version:         20041225<br />
Zend Module Api No:      20060613<br />
Zend Extension Api No:   220060519<br />
dh_testdir<br />
&#8230;<br />
dpkg-deb: building package `php5-rrdtool&#039; in `../php5-rrdtool_5.2.3-0.dotdeb.1_amd64.deb&#039;.</p>
<p>Nice ;)<br />
Hope that will be useful &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DaiBach</title>
		<link>http://www.ioncannon.net/system-administration/25/how-to-build-the-php-rrdtool-extension-by-hand/comment-page-1/#comment-21709</link>
		<dc:creator>DaiBach</dc:creator>
		<pubDate>Wed, 20 Jun 2007 10:34:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.ioncannon.net/uncategorized/25/how-to-build-the-php-rrdtool-extension-by-hand/#comment-21709</guid>
		<description>Hey Bitto, I&#039;m after a Windows version of the extension too.  Chris of SiteBuddy.com has tried to give it a go

http://www.sitebuddy.com/php/rrdtool_extension_windows_binaries</description>
		<content:encoded><![CDATA[<p>Hey Bitto, I&#039;m after a Windows version of the extension too.  Chris of SiteBuddy.com has tried to give it a go</p>
<p><a href="http://www.sitebuddy.com/php/rrdtool_extension_windows_binaries" rel="nofollow">http://www.sitebuddy.com/php/rrdtool_extension_windows_binaries</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bitto</title>
		<link>http://www.ioncannon.net/system-administration/25/how-to-build-the-php-rrdtool-extension-by-hand/comment-page-1/#comment-20707</link>
		<dc:creator>bitto</dc:creator>
		<pubDate>Tue, 12 Jun 2007 09:16:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ioncannon.net/uncategorized/25/how-to-build-the-php-rrdtool-extension-by-hand/#comment-20707</guid>
		<description>I am running PHP server in windows environment.
Maybe this is a stupid question: &#039;is there any bin source of PHP RRDtool for Windows platform?&#039;</description>
		<content:encoded><![CDATA[<p>I am running PHP server in windows environment.<br />
Maybe this is a stupid question: &#039;is there any bin source of PHP RRDtool for Windows platform?&#039;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kotto bass</title>
		<link>http://www.ioncannon.net/system-administration/25/how-to-build-the-php-rrdtool-extension-by-hand/comment-page-1/#comment-4961</link>
		<dc:creator>kotto bass</dc:creator>
		<pubDate>Thu, 08 Mar 2007 18:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.ioncannon.net/uncategorized/25/how-to-build-the-php-rrdtool-extension-by-hand/#comment-4961</guid>
		<description>System: Red Hat Enterprise Linux ES release 4
Apache: 2.2.3
PHP: 5.2.1 from source
ImageMagick: 6.3.3

Since I didn&#039;t want to recompile PHP, and also didn&#039;t want to downgrade autoconf to 2.13, here&#039;s my route:

- Download and untar MagicWand
- In MagicWand directory, run phpize
Note: Mine is located at /usr/local/apache/php/bin/phpize
- Type autoconf
- Type ./configure with options. 
Note: I had to specify location of PHP config file, and directory of ImageMagick install, so I entered: ./configure --with-php-config=/usr/local/apache/php/bin/php-config --with-magickwand=/usr 
- Type make
Note: Make creates magickwand.so in the modules subfolder. 
- Copy magickwand.so to your php modules directory from the MagickWand modules subdirectory.
Note: My PHP modules directory is located at /usr/lib/php/modules/
- Add &#039;extension=magickwand.so&#039; to your php.ini file if it&#039;s not there already.
- Restart Apache</description>
		<content:encoded><![CDATA[<p>System: Red Hat Enterprise Linux ES release 4<br />
Apache: 2.2.3<br />
PHP: 5.2.1 from source<br />
ImageMagick: 6.3.3</p>
<p>Since I didn&#039;t want to recompile PHP, and also didn&#039;t want to downgrade autoconf to 2.13, here&#039;s my route:</p>
<p>- Download and untar MagicWand<br />
- In MagicWand directory, run phpize<br />
Note: Mine is located at /usr/local/apache/php/bin/phpize<br />
- Type autoconf<br />
- Type ./configure with options.<br />
Note: I had to specify location of PHP config file, and directory of ImageMagick install, so I entered: ./configure &#8211;with-php-config=/usr/local/apache/php/bin/php-config &#8211;with-magickwand=/usr<br />
- Type make<br />
Note: Make creates magickwand.so in the modules subfolder.<br />
- Copy magickwand.so to your php modules directory from the MagickWand modules subdirectory.<br />
Note: My PHP modules directory is located at /usr/lib/php/modules/<br />
- Add &#039;extension=magickwand.so&#039; to your php.ini file if it&#039;s not there already.<br />
- Restart Apache</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.ioncannon.net/system-administration/25/how-to-build-the-php-rrdtool-extension-by-hand/comment-page-1/#comment-812</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sat, 09 Dec 2006 11:02:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.ioncannon.net/uncategorized/25/how-to-build-the-php-rrdtool-extension-by-hand/#comment-812</guid>
		<description>For rrdtool versions 1.2.x, use the CFLAG:

CFLAGS=-DHAVE_RRD_12X

It worked for my using rrdtool 1.2.15 and php 5.2.0.</description>
		<content:encoded><![CDATA[<p>For rrdtool versions 1.2.x, use the CFLAG:</p>
<p>CFLAGS=-DHAVE_RRD_12X</p>
<p>It worked for my using rrdtool 1.2.15 and php 5.2.0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.ioncannon.net/system-administration/25/how-to-build-the-php-rrdtool-extension-by-hand/comment-page-1/#comment-766</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 05 Dec 2006 02:34:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.ioncannon.net/uncategorized/25/how-to-build-the-php-rrdtool-extension-by-hand/#comment-766</guid>
		<description>Well I got it working... For some reason with any other version of AUTOCONF (even newer versions) it will not configure correctly.  I had to uninstall the autoconf rpm and compile 2.13 from source to get it to work.  Once I did that your instructions were perfect!  Thanks for these tips.</description>
		<content:encoded><![CDATA[<p>Well I got it working&#8230; For some reason with any other version of AUTOCONF (even newer versions) it will not configure correctly.  I had to uninstall the autoconf rpm and compile 2.13 from source to get it to work.  Once I did that your instructions were perfect!  Thanks for these tips.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vern Dias</title>
		<link>http://www.ioncannon.net/system-administration/25/how-to-build-the-php-rrdtool-extension-by-hand/comment-page-1/#comment-713</link>
		<dc:creator>Vern Dias</dc:creator>
		<pubDate>Thu, 30 Nov 2006 01:14:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.ioncannon.net/uncategorized/25/how-to-build-the-php-rrdtool-extension-by-hand/#comment-713</guid>
		<description>OK, ignore the previous post.  After installing autoconf 2.13, I got past this issue .....

Right into another issue.  Apparently this code is not compatible with the newer versions of RRDTOOL.

/usr/local/nms/Source/php-5.2.0/ext/rrdtool/rrdtool.c:347: error: too few arguments to function `rrd_graph&#039;
make: *** [ext/rrdtool/rrdtool.lo] Error 1

The statement in question is passing 5 arguments:

if ( rrd_graph(argc-1, &amp;argv[1], &amp;calcpr, &amp;xsize, &amp;ysize) != -1 )

rrd:graph is now looking for 8 arguments.

int    rrd_graph(int, char **, char ***, int *, int *, FILE *, double *, double *);

Not really being a coder, I am at a loss as to how to fix this.

Vern</description>
		<content:encoded><![CDATA[<p>OK, ignore the previous post.  After installing autoconf 2.13, I got past this issue &#8230;..</p>
<p>Right into another issue.  Apparently this code is not compatible with the newer versions of RRDTOOL.</p>
<p>/usr/local/nms/Source/php-5.2.0/ext/rrdtool/rrdtool.c:347: error: too few arguments to function `rrd_graph&#039;<br />
make: *** [ext/rrdtool/rrdtool.lo] Error 1</p>
<p>The statement in question is passing 5 arguments:</p>
<p>if ( rrd_graph(argc-1, &amp;argv[1], &amp;calcpr, &amp;xsize, &amp;ysize) != -1 )</p>
<p>rrd:graph is now looking for 8 arguments.</p>
<p>int    rrd_graph(int, char **, char ***, int *, int *, FILE *, double *, double *);</p>
<p>Not really being a coder, I am at a loss as to how to fix this.</p>
<p>Vern</p>
]]></content:encoded>
	</item>
</channel>
</rss>
