php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9918 cannot compile php4 with pdflib
Submitted: 2001-03-22 07:54 UTC Modified: 2001-03-26 04:31 UTC
From: jbalcomb at unalias dot org Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4pl1 OS: redhat linux 6.2
Private report: No CVE-ID: None
 [2001-03-22 07:54 UTC] jbalcomb at unalias dot org
i am trying to compile php4 with pdflib support and am recieving the error 'pdflib extension requires pdflib 3.'

i have installed pdflib 3.0.3 with:
--enable-shared-pdflib \
--with-perl=no \
--with-tcl=no \
--with-zlib \
--with-pnglib

i added /usr/local to my /etc/ld.so.conf and have rerun ldconfig.

i configure php with:
--with-apxs=/usr/local/apache/bin/apxs \
--with-calendar=shared \
--enable-ftp \
--with-gd \
--with-imap=../imap-2001.BETA.SNAP-0103201637 \
--with-ldap \
--with-mm=../mm-1.1.3 \
--with-mysql=/usr/local/mysql \
--with-openssl \
--with-pdflib=/usr/local \
--with-pgsql=/usr/local/pgsql \
--with-snmp \
--enable-ucd-snmp-hack \
--with-system-regex \
--enable-debug=yes \
--enable-memory-limit=yes \
--enable-track-vars \
--enable-versioning \
--enable-xml \
--with-zlib

i have seen many posting on this but they all seem to say the same thing, compile pdflib as shared, add /usr/local to ld.so.conf, specify --with-pdf=/usr/local for php (which seems sorta redundant).

thanks for any help you can give.

Jim Balcomb
jbalcomb@unalias.org

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-22 08:01 UTC] sniper@php.net
Could you please try with latest CVS snapshot from http://snaps.php.net/ ?

And also, check your config.log as this might not be
PDF extension that causes the configure to fail.

--Jani

 [2001-03-23 17:23 UTC] sniper@php.net
User feedback:
--------------
/usr/bin/ld: cannot find -ljpeg
collect2: ld returned 1 exit status
configure: failed program was:

now what i am supposed to do with that, i dont know.
i dont see an option for pdflib or php to specify no libjpeg.
------------------

It might still need the libjpeg. Try adding e.g. --with-jpeg-dir=/usr/local into your configure line.

1. delete config.cache
2. configure (with your options + the --with-jpeg-dir)
3. 'make clean ; make ; make install

--Jani
 
 [2001-03-26 04:31 UTC] sniper@php.net
User feedback:
--------------
ok, i uninstalled libjpeg, recompiled it with --enable-shared, rm config.cache, recompiled php
including the --with-jpeg-dir=/usr/local and it worked.  however, this brings up another question. 
how do i get php with pdflib without libjpeg? i do not intend to use libjpeg therefore i dont want
installed.  additionally if it must be there why isnt it listed as a dependancy of sorts?
-------------------

1. Did you notice that little text in the end of the email
sent to you by this bug system? (DO NOT REPLY by email!)

2. The libtiff needs libjpeg. Compile pdflib without tiff
support and you don't need libjpeg.

3. Ask more install related support questions on php-install@lists.php.net as this bug system is for reporting BUGS in PHP and NOT for asking support questions.

Thank you,

--Jani


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 01:01:31 2024 UTC