note 87382 added to pdf.installation

From: Date: Tue, 02 Dec 2008 22:32:23 +0000
Subject: note 87382 added to pdf.installation
Groups: php.notes 
Request: Send a blank email to php-notes+get-147567@lists.php.net to get a copy of this message
Probably the worsts installation I have ever had to do. Mainly due to completely obscure (lack of) documentation. The first thing I had to do on debian was to download and compile the phplib-lite actual C library. Of course that was almost the last thing I did. If you haven't done that, the pecl installation will either fail, or wont run. You get that here http://www.pdflib.com/download/pdflib-family/pdflib-lite/ Now of course, after unzipping untarring, and running configure, 'make install' failed. luckily it was a makefile bug: I went into the libs directory and ran 'make all' and that made the offending objects that the root 'make install' was bitching about. Then 'make install' installed me a 'C' library libpdf.so.6 in /usr/local/lib. THEN 'pecl install pdflib' worked. Or at least after second guessing its idiotic installation script, it worked. When it asks you for where the library is, it doesn't REALLY mean that: First select ;'all' then type in '/usr/local/' and then type in a second return. NOW it knows where to find /usr/local/include/pdflib.h AND where to tell its final target, pdf.so - the php compatible shim - where to find the actual library. Now edit the php.ini, or on my case add a file to /etc/php5/conf.d to tell it to load php.so Restart yer apache, and try a phpinfo, and with an extreme amount of luck, it may just tell you it actually has pdf suppoert.. It ONLY took me 3 1/2 hours. That about par for a PECL package. So be warned. ---- Server IP: 92.48.74.199 Probable Submitter: 80.168.244.139 ---- Manual Page -- http://www.php.net/manual/en/pdf.installation.php Edit -- https://master.php.net/note/edit/87382 Del: integrated -- https://master.php.net/note/delete/87382/integrated Del: useless -- https://master.php.net/note/delete/87382/useless Del: bad code -- https://master.php.net/note/delete/87382/bad+code Del: spam -- https://master.php.net/note/delete/87382/spam Del: non-english -- https://master.php.net/note/delete/87382/non-english Del: in docs -- https://master.php.net/note/delete/87382/in+docs Del: other reasons-- https://master.php.net/note/delete/87382 Reject -- https://master.php.net/note/reject/87382 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#147567) next »