Well, I had high hopes. PHP configured and built succesfully, I
installed it, restarted apache, but it still gives me an undefined
function error when it hits pdf_new() in the test script.
I'm assuming that I can just use make install and write over the
previous version.
Am I right in thinking that libpdf_php.so or libpdf_php.dylib is the
library I'm trying to get? If I search my build directory I find
libraries for perl (libpdflib_pl.dylib), and java (libpdf_java.jnilib
and libpdf_java.dylib), and of course libpdf.dylib, but no corresponding
php library.
Oh, yeah, here's the configure options I used:
./configure --with-xml --with-zlib --with-apxs=/usr/sbin/apxs
--with-openssl --enable-trans-sid --with-
pdflib=/Users/steve/build/pdflib/pdflib-4.0.1/bind/c --enable-
shared=pdflib --with-mysql=/usr/local
Thanks for your time.
-Steve
On Friday, August 31, 2001, at 02:02 PM, Jim Thome wrote:
> Steve-
>
> I got pdflib running on our system (HPUX), however it took nearly two
> weeks of trial and error. I have the whole thing documented so I'm
> sure I can help you get your system running. We had some OS specific
> problems that required us to purchase the library, but now that we have
> it up and running it was worth the effort.
>
> For now, take out the jpeg and tiff library options (they are not
> necessary for pdflib 4.0.1) and modify your configure line to be as
> follows:
>
> ./configure --with-xml --with-apxs=/usr/sbin/apxs --with-openssl
> --enable-trans-sid --with-mysql=/usr/local --with-zlib --with-zlib-
> dir=/path/to/zlibdir -enable-shared=pdflib --with-
> pdflib=/path/to/pdflib-4.0.1/bind/c
>
> Please note that you are pointing to the pdflib source AND NOT the
> installation directory like PHP install instructions say.
>
> Let me know how that goes if there is anything else you need to try.
>
> Regards,
>
>
> Jim Thome
> Web Technology Administrator
> City of Fort Collins
> 215 N. Mason
> Fort Collins, CO 80522
> email: [EMAIL PROTECTED]
> Phone: 970-416-2621
> Web: http://fcgov.com
>
>>>> Steve Cayford <[EMAIL PROTECTED]> 08/31 12:41 PM >>>
> Yup, tried it.
>
> ./configure --with-xml --with-zlib --with-apxs=/usr/sbin/apxs
> --with-openssl --enable-trans-sid --with-pdflib=/usr/local
> --enable-shared=pdflib --with-mysql=/usr/local --with-jpeg-
> dir=/usr/local --with-tiff-dir=/usr/local
>
> This gives me the error:
> configure: error: pdflib extension requires at least pdflib 3.x.
>
> and the config.log error says:
> /usr/bin/ld: /usr/local/lib/libpdf.dylib is input for the dynamic link
> editor, is not relocatable by the static link editor again
>
>
> On Friday, August 31, 2001, at 01:29 PM, Jani Taskinen wrote:
>
>>
>> By using the correct configure options you would succeed:
>>
>> --with-pdflib=/usr/local
>>
>> You might also need to use --with-jpeg-dir , --with-png-dir ,
>> --with-tiff-dir if these libraries are not in your libpath.
>>
>> --Jani
>>
>>
>> On Fri, 31 Aug 2001, Steve Cayford wrote:
>>
>>> From browsing the archives, it looks like getting pdflib into php
>>> takes
>>> luck and persistence to achieve the magical configure options, and I'm
>>> running low on both.
>>>
>>> I'm trying to get pdflib 4.0.1 to work with php 4.0.6 and apache
>>> 1.3.20
>>> on mac osx 10.0.3
>>>
>>> php and apache work great and I'm eager to get pdflib up and running.
>>>
>>> It seems that my attempts fail in one of two ways: if I don't set the
>>> php configure option --with-pdflib=/usr/local/lib (with the complete
>>> directory like that), then configure stops at pdf_show_boxed with the
>>> error: "pdflib extension requires at least pdflib 3.x. You may also
>>> need
>>> libtiff and libjpeg."
>>>
>>> The config.log shows this error: "/usr/bin/ld: /usr/lib/libpdf.dylib
>>> is
>>> input for the dynamic link editor, is not relocatable by the static
>>> link
>>> editor again" (/usr/lib/libpdf.dylib is a symbolic link I made to
>>> /usr/local/lib/libpdf.dylib), which is odd, since it would seem to be
>>> finding the right directory.
>>>
>>> If I do set the option --with-pdflib=/usr/local/lib, then everything
>>> builds just fine, but there doesn't seem to be any pdflib
>>> functionality
>>> in php.
>>>
>>> I saw a couple references to listing libpdf_php.so in the php.ini
>>> file.
>>> On mac osx I would assume this to be libpdf_php.dylib instead, but I
>>> don't find either of these anywhere. Another reference said to
>>> download
>>> this file as a binary and install it manually, but there is no binary
>>> pdflib with php support listed for mac osx.
>>>
>>> Hmm. There it is. Any ideas, suggestions?
>>>
>>> Here are my latest configure options for pdflib:
>>> ./configure --enable-php --enable-cxx --enable-shared-pdflib
>>> --enable-static --enable-shared
>>>
>>> and my latest attempt for php:
>>> ./configure --with-xml --with-zlib --with-apxs=/usr/sbin/apxs
>>> --with-openssl --enable-trans-sid --with-pdflib=/usr/local/lib
>>> --enable-shared=pdflib --with-mysql=/usr/local --with-jpeg-
>>> dir=/usr/local --with-tiff-dir=/usr/local
>>>
>>>
>>>
>>
>>
>> --
>> PHP Install Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: php-list-
>> [EMAIL PROTECTED]
>>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]