RE: [PHP-INST] --with-pdflib... stops on show_boxed

From: Date: Tue, 24 Apr 2001 18:04:52 +0000
Subject: RE: [PHP-INST] --with-pdflib... stops on show_boxed
Groups: php.install 
Request: Send a blank email to php-install+get-2873@lists.php.net to get a copy of this message
I had the same trouble with building pdflib and it was because of static libraries in pdflib and the components when I built it some months ago. There wasn't any mention of building the components shared, and the only error messages I received were that you needed pdflib 3.x or higher. Somehow I realized I needed the shared libraries. I didn't take notes at the time, but below are my ./configure commands for everything except libpng (which I think builds a .so library). Hope this helps. Incidentally, once you get it working, you're in for a whole new challenge with IE and it's handling of .pdf files. It's pretty ugly, but as a tip you'll need: $length = filesize($tempFname); header("Content-Length: $length"); in addition to header("Content-type: application/pdf"); php ------- # # ./configure --with-mysql --with-apxs=/path/to/apache/apxs --with-gd=/usr/local/gd1.3 --with-pdflib=/usr/local --with-png-dir=/usr/local --with-jpeg-dir=/usr/local --with-tiff-dir=/usr/local jpeg-6b ------- # ./configure --enable-shared PDFlib V3.03 ------------ # ./configure --with-pnglib=/usr/local --with-tifflib=/usr/local --enable-shared-pdflib Apache ------- ./configure \ "--enable-shared=max" Hope this helps. > -----Original Message----- > From: Andrew Apold [mailto:mordru@adelphia.net] > Sent: Tuesday, April 24, 2001 9:56 AM > To: php-install@lists.php.net > Subject: [PHP-INST] --with-pdflib... stops on show_boxed > > > I've seen in the annotations and other places at least a dozen other > people have > this problem.... and about a dozen different solutions from > using links, > using > a new pdf.c, omitting png support, or even installing an > rpm... none of > them > seem to help my situation. > > > > I'm using php 4.04pl1., the 11 january (latest AFAIK). > > Suse linux distribution, 2.4 kernal > > pdflib 4.0.0. > > Someone suggested using the binary on pdflib's site, tried that, > also no go. Weird, though, the pdflib-4.0.0-Linux.tar.gz file > they have as a binary contains files who go to a pdflib-3.0.0 > directory. Either way, that didn't help. > > Every time configure pdflib with > > ./configure --enable-shared --enable-shared-pdflib --enable-php > > when I tried the binary, that version didn't seem to have an > --enable-php > configure option. Regardless, it is supposed to be enabled > by default. > > As far as I can tellthe shared stuff goes to /usr/local/lib, which is > where php looks for it by default. > > I configure, make, make test, as per instructions. Tried a > make install > too to ee fi that would help. > > Run ldconfig, as various accounts of this error claim this will solve > it. > > then in php directory, using the new pdf.c from cvs places in > .../ext/pdf, > do a ./configure --with-mysql --with-apxs --with-pdflib > > Samne response every time: > > checking whether to include Pdflib 3.x support... yes > checking for PDF_show_boxed in -lpdf... (cached) no > > earlier ones didn't have the cached I think. hmmm. maybe it isn't > rechecking with all my latest attempts? > > configure: error: pdflib extension requires at least pdflib 3.x. You > may also need libtiff and libjpeg. If so > > and it cuts off right there. > > I had this thing working under php3 and an older pdflib about > a month or > two ago (server rebuilt since then). > Back then I did it without jpeg or tiff libraries, too. The stuff I'm > doing doesn't require them. > > Regardless, I have both libtiff and libjpeg installed, following links > to them from pdflib.com's website. > Have zlib installed. > > I'm at wits end with this one, been over a week I've not been able to > get it working. Half a mind to > try clibpdf, though it would mean altering all my php files... > > > oh, if I try --with-pdflib=/usr/local/lib, it compiles > through without > error, but > looking back on the log it says: > > checking whether to include Pdflib 3.x support... no > > so it compiles, but is no use, no support. > > any help would be greatly appreciated. > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.install (#2873) next »