<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Demon Clown Baby &#187; personal</title>
	<atom:link href="http://www.demonclownbaby.com/category/personal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.demonclownbaby.com</link>
	<description>There'll be good content here... someday</description>
	<lastBuildDate>Wed, 08 Apr 2020 01:45:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing PDFlib Lite on Linux</title>
		<link>http://www.demonclownbaby.com/2009/01/08/installing-pdflib-lite-on-linux/</link>
		<comments>http://www.demonclownbaby.com/2009/01/08/installing-pdflib-lite-on-linux/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 19:42:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://www.demonclownbaby.com/?p=124</guid>
		<description><![CDATA[I had some trouble, maybe if someone else has the same trouble I can help.
1.  I downloaded the source code at the pdflib site
2.  I unpacked it and ran the configure and make commands and such.  So far so good.
3.  I realized that unlike the full version, this doesn&#8217;t come with [...]]]></description>
			<content:encoded><![CDATA[<p>I had some trouble, maybe if someone else has the same trouble I can help.</p>
<p>1.  I downloaded the source code at <a href="http://www.pdflib.com/download/free-software/pdflib-lite/">the pdflib site</a></p>
<p>2.  I unpacked it and ran the configure and make commands and such.  So far so good.</p>
<p>3.  I realized that unlike the full version, this doesn&#8217;t come with the php extension bindings.</p>
<p>4.  Tried to use pear install pdflib like the instructions said, but that failed, so I tried pecl, but it claimed my gcc didn&#8217;t work:</p>
<p># pear install pdflib<br />
No releases available for package &#8220;pear.php.net/pdflib&#8221; &#8211; package pecl/pdflib can be installed with &#8220;pecl install pdflib&#8221;<br />
Cannot initialize &#8216;pdflib&#8217;, invalid or missing package file<br />
Package &#8220;pdflib&#8221; is not valid<br />
install failed<br />
# pecl install pdflib<br />
downloading pdflib-2.1.5.tgz &#8230;<br />
Starting to download pdflib-2.1.5.tgz (55,579 bytes)<br />
&#8230;&#8230;&#8230;&#8230;.done: 55,579 bytes<br />
10 source files, building<br />
running: phpize<br />
Configuring for:<br />
PHP Api Version:         20041225<br />
Zend Module Api No:      20060613<br />
Zend Extension Api No:   220060519<br />
 1. path to pdflib installation? : </p>
<p>1-1, &#8216;all&#8217;, &#8216;abort&#8217;, or Enter to continue: 1<br />
path to pdflib installation? [] : /usr/local<br />
 1. path to pdflib installation? : /usr/local</p>
<p>1-1, &#8216;all&#8217;, &#8216;abort&#8217;, or Enter to continue:<br />
building in /var/tmp/pear-build-root/pdflib-2.1.5<br />
running: /root/tmp/pear/pdflib/configure &#8211;with-pdflib=/usr/local<br />
checking for egrep&#8230; grep -E<br />
checking for a sed that does not truncate output&#8230; /bin/sed<br />
checking for gcc&#8230; gcc<br />
checking for C compiler default output file name&#8230; a.out<br />
checking whether the C compiler works&#8230; configure: error: cannot run C compiled programs.<br />
If you meant to cross compile, use `&#8211;host&#8217;.<br />
See `config.log&#8217; for more details.<br />
ERROR: `/root/tmp/pear/pdflib/configure &#8211;with-pdflib=/usr/local&#8217; failed<br />
# </p>
<p>So that failed.  I don&#8217;t know why, because my gcc does work.  Anyway, the solution was to start the pecl process, then open another terminal window and copy the /root/tmp/pear/pdflib/ files to another directory.</p>
<p>Then manually run configure &#8211;with-pdflib=/usr/local there.</p>
<p>(I also ran into trouble because I wasn&#8217;t giving /usr/local as the directory.  I was giving /usr/local/lib which was where libpdf.so was.  Trouble was, it needed pdflib.h which was in /usr/local/include.  So giving /usr/local it knows to look both places.  The error code I was getting was:  configure: error: pdflib.h not found! Check the path passed to &#8211;with-pdflib=<PATH>. PATH should be the install prefix directory.)</p>
<p>Then run make, then make test, then make install, and you&#8217;re done!  You should now have pdf.so in your php extension directory, which is extension_dir in your php.ini file.</p>
<p>Hope that helps anyone googling for a solution based on error codes they&#8217;ve gotten.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.demonclownbaby.com/2009/01/08/installing-pdflib-lite-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
