Re: PDF Functions

From: Date: Thu, 15 Feb 2001 16:47:19 +0000
Subject: Re: PDF Functions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39935@lists.php.net to get a copy of this message
I will as soon as the final release comes out. I don't want to rely on the beta now. Even though it is very stable. It will be nice to have standard hardware for a change. Mike > From: Michael Stearne <mstearne@entermix.com> > Date: Thu, 15 Feb 2001 00:53:22 -0500 > To: cjtech2000@yahoo.com > Cc: Mike Tuller <mitull01@willy.wsc.edu>, php mailing list > <php-general@lists.php.net> > Subject: Re: [PHP] PDF Functions > > I'm waiting on OS X also. (I'm running it now.) But I need to get a RH > setup working for a client. BTW PHP4, mySQL and Apache work fine of the > OS X PB so you might try installing PDF on that (I haven't yet though). > > Michael > > > Chris Carbaugh wrote: > >> OS X? What's that? :) Damn Mac.... PPC somethin or other.... I just >> don't get it.............. >> >> In the mean time, I'd say 6.2 is a good bet. >> >> Good Luck, >> >> Chris >> >> On Wed, 14 Feb 2001, Mike Tuller wrote: >>> Date: Wed, 14 Feb 2001 19:03:05 -0600 >>> To: <cjtech2000@yahoo.com>, Michael Stearne <mstearne@entermix.com> >>> From: Mike Tuller <mitull01@willy.wsc.edu> >>> Subject: Re: [PHP] PDF Functions >>> >>> I decided on my way home tonight to ditch 7.0 and go back to 6.2. I >>> think >>> that it is the only way to get anything done. When 7.1 or later comes >>> out >>> then I can go back. Thanks for your help. >>> >>> When OS X finally ships I will be happy. >>> >>> Mike >>> >>>> From: Chris Carbaugh <cjtech2000@yahoo.com> >>>> Reply-To: cjtech2000@yahoo.com >>>> Date: Wed, 14 Feb 2001 19:39:04 EST >>>> To: Mike Tuller <mitull01@willy.wsc.edu>, Michael Stearne >>>> <mstearne@entermix.com> >>>> Cc: php mailing list <php-general@lists.php.net> >>>> Subject: Re: Re: [PHP] PDF Functions >>>> >>>> >>>> Well, first let me say that I'm kind of surprised I'm the only one >>>> trying to help you guys out. It seems not many folk are into >>> PHP/PDF? >>>> >>>> Any how, >>>> >>>> Redhat's *.0 releases are known to be problematic. They are >>> usually >>>> pretty much bleading edge, meaning they're buggy. >>>> >>>> The last time I compiled PHP with PDF support, was a few weeks ago. >>> It >>>> was on RedHat 6.2, PHP 4.0.2, and PDFLIB, as a CGI or a stand alone >>>> executable. The config was pretty much ./configure >>>> --with-pgsql=/usr/local/pgsql --with-pdf=/usr/local/bin (I really >>>> think that was it, note I did NOT point right to the libpdf.so). I >>>> also added /usr/local/lib to /etc/ld.so.conf and did a ldconfig. >>>> >>>> That's really all I did. RH 6.2, source tarballs of Apache 1.3.12, >>> PHP >>>> 4.0.2, pdflib 3.03, postgresql 7.0.2. >>>> >>>> If everything configs/builds correctly, I would blame RH 7.0 >>>> >>>> While I would like to install RH 7.0 and figure out what's up, I >>> just >>>> don't have the time. I would suggest, A) you try to install >>> PHP/PDF as >>>> a CGI under your current install. This allows the simplest >>> install. >>>> If that doesn't work, try RH 6.2 or some other distro? >>>> >>>> Good Luck, >>>> >>>> Chris >>>> >>>> On Wed, 14 Feb 2001, Mike Tuller wrote: >>>>> Date: Wed, 14 Feb 2001 17:45:28 -0600 >>>>> To: Michael Stearne <mstearne@entermix.com> >>>>> From: Mike Tuller <mitull01@willy.wsc.edu> >>>>> Subject: Re: [PHP] PDF Functions >>>>> >>>>> Exactly!!! I have gone back and redone everything 3 or 4 times, >>> and >>>>> am on >>>>> day 3 of this. I watch while I configure, and it says that it is >>>>> working, >>>>> but when I go to check. I still get an error. >>>>> >>>>> >>>>>> From: Michael Stearne <mstearne@entermix.com> >>>>>> Date: Wed, 14 Feb 2001 18:01:20 -0500 >>>>>> To: cjtech2000@yahoo.com >>>>>> Cc: Mike Tuller <mitull01@willy.wsc.edu>, php mailing list >>>>>> <php-general@lists.php.net> >>>>>> Subject: Re: [PHP] PDF Functions >>>>>> >>>>>> >>>>>> >>>>>> Chris Carbaugh wrote: >>>>>> >>>>>>> >>>>>>> >>>>>>> I have had problems in the past with RedHat's RPMs. They seem >>> to >>>>> put >>>>>>> things in weird places. And just removing them and starting >>> fresh >>>>> with >>>>>>> source always seems to work. Besides, once you have built from >>>>> source >>>>>>> a few times, it's really a piece of cake, and much less >>>>> frustrating >>>>>>> than screwing with RPMs. >>>>>>> >>>>>> >>>>>> I am in the same situation except I have compiled from all the >>>>> sources (not >>>>>> RPMS) and I still get hung up when I try to include PDF. My >>> system >>>>> is a >>>>>> new install of RH 7 with the updates that up2date suggests (gcc, >>>>> etc.). I >>>>>> have compiled and installed PHP with PDF no problem on RH 6.2. I >>>>> think the >>>>>> issue is something specific to RH7. I hope RH 7.1 fixes it. I >>>>> think at >>>>>> this point I am going back to 6.2 >>>>>> >>>>>> Michael >>>>>> >>>>>> >>>>>> >>>>>>> >>>>>>> Chris >>>>>>> >>>>>>> On Wed, 14 Feb 2001, Mike Tuller wrote: >>>>>>>> Date: Wed, 14 Feb 2001 15:49:44 -0600 >>>>>>>> To: <cjtech2000@yahoo.com>, php mailing list >>>>>>>> <php-general@lists.php.net> >>>>>>>> From: Mike Tuller <mitull01@willy.wsc.edu> >>>>>>>> Subject: Re: [PHP] PDF Functions >>>>>>>> >>>>>>>> The reason why I needed the RPM is because no matter what I >>>>> tried, I >>>>>>>> couldn't get PHP to compile for the Apache rpm on Redhat 7. If >>> at >>>>> all >>>>>>>> possible, I like to use the rpms so that they can be easily >>>>> updated. >>>>>>>> >>>>>>>> I have done everything everyone has suggested, and I still get >>> an >>>>>>>> error. I >>>>>>>> have even compiled PHP and still I can't use PDFlib. What >>>>>>>> next? >>>>>>>> >>>>>>>> Here is the updated config script that I used. >>>>>>>> >>>>>>>> ./configure --prefix=/usr --with-config-file-path=/etc >>>>>>>> --disable-debug --enable-pic --enable-shared >>>>>>>> --enable-inline-optimization --with-apxs=/usr/sbin/apxs >>>>>>>> --with-exec-dir=/usr/bin --with-regex=system --with-gettext >>>>>>>> --with-gd >>>>>>>> --with-jpeg-dir=/usr --with-png --with-zlib --with-gdbm >>>>>>>> --enable-debugger --enable-magic-quotes --enable-safe-mode >>>>>>>> --enable-sockets --enable-sysvsem --enable-sysvshm >>>>>>>> --enable-track-vars >>>>>>>> --enable-yp --enable-ftp --enable-wddx --with-mysql >>>>>>>> --with-xml >>>>>>>> --with-pdflib=/usr/local/lib --with-tiff >>>>>>>> >>>>>>>> >>>>>>>>> From: Chris Carbaugh <cjtech2000@yahoo.com> >>>>>>>>> Reply-To: cjtech2000@yahoo.com >>>>>>>>> Date: Wed, 14 Feb 2001 15:08:02 EST >>>>>>>>> To: Mike Tuller <mitull01@willy.wsc.edu>, php mailing >>>>>>>>> list >>>>>>>>> <php-general@lists.php.net> >>>>>>>>> Subject: Re: [PHP] PDF Functions >>>>>>>>> >>>>>>>>> >>>>>>>>> How about in /etc/ld.so.conf you make sure /usr/lib is in >>> there. >>>>>>>>> >>>>>>>>> Then run /sbin/ldconfig. >>>>>>>>> >>>>>>>>> Also, why bother with the source RPM? I would rather just get >>>>> the >>>>>>>>> source tarball direct from PHP.net and run with it. >>>>>>>>> >>>>>>>>> Chris >>>>>>>>> >>>>>>>>> On Wed, 14 Feb 2001, Mike Tuller wrote: >>>>>>>>>> Date: Wed, 14 Feb 2001 12:07:50 -0600 >>>>>>>>>> To: php mailing list <php-general@lists.php.net> >>>>>>>>>> From: Mike Tuller <mitull01@willy.wsc.edu> >>>>>>>>>> Subject: [PHP] PDF Functions >>>>>>>>>> >>>>>>>>>> I finally got everything to install on RedHat 7, but I >>>>>>>>>> can't >>> do >>>>>>>>>> anything >>>>>>>>>> with pdflib like I had expected. >>>>>>>>>> >>>>>>>>>> I get back Fatal error: Call to undefined function: >>>>>>>>>> pdf_new() >>>>> in >>>>>>>>>> /var/www/html/pdfclock.php on line 7. Line 7 is $pdf = >>>>> PDF_new(); >>>>>>>>>> >>>>>>>>>> This is rather frustrating that every time I try to install >>> PHP >>>>> on >>>>>>>> a >>>>>>>>>> machine >>>>>>>>>> it takes me a week to get it going. >>>>>>>>>> >>>>>>>>>> Here is what I have for the config from the srpm after >>>>>>>> modification >>>>>>>>>> as >>>>>>>>>> instructed earlier. >>>>>>>>>> >>>>>>>>>> ../configure \ >>>>>>>>>> --prefix=%{_prefix} \ >>>>>>>>>> --with-config-file-path=%{_sysconfdir} \ >>>>>>>>>> --disable-debug \ >>>>>>>>>> --enable-pic \ >>>>>>>>>> --enable-shared \ >>>>>>>>>> --enable-inline-optimization \ >>>>>>>>>> $* \ >>>>>>>>>> --with-exec-dir=%{_bindir} \ >>>>>>>>>> --with-regex=system \ >>>>>>>>>> --with-gettext \ >>>>>>>>>> --with-gd \ >>>>>>>>>> --with-jpeg-dir=%{_prefix} \ >>>>>>>>>> --with-png \ >>>>>>>>>> --with-zlib \ >>>>>>>>>> --with-gdbm \ >>>>>>>>>> --enable-debugger \ >>>>>>>>>> --enable-magic-quotes \ >>>>>>>>>> --enable-safe-mode \ >>>>>>>>>> --enable-sockets \ >>>>>>>>>> --enable-sysvsem \ >>>>>>>>>> --enable-sysvshm \ >>>>>>>>>> --enable-track-vars \ >>>>>>>>>> --enable-yp \ >>>>>>>>>> --enable-ftp \ >>>>>>>>>> --enable-wddx \ >>>>>>>>>> --with-mysql \ >>>>>>>>>> --with-xml \ >>>>>>>>>> --with-pdflib=/usr/lib/lipdf.so.0 \ >>>>>>>>>> --with-tiff >>>>>>>>>> >>>>>>>>>> Can someone look at this and tell me what else I need to >>>>>>>>>> put >>> in >>>>> to >>>>>>>>>> get this >>>>>>>>>> to work? >>>>>>>>>> >>>>>>>>>> Mike >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> PHP General Mailing List (http://www.php.net/) >>>>>>>>>> To unsubscribe, e-mail: >>>>>>>>>> php-general-unsubscribe@lists.php.net >>>>>>>>>> For additional commands, e-mail: >>> php-general-help@lists.php.net >>>>>>>>>> To contact the list administrators, e-mail: >>>>>>>>>> php-list-admin@lists.php.net >>>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> PHP General Mailing List (http://www.php.net/) >>>>>>>>> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >>>>>>>>> For additional commands, e-mail: >>> php-general-help@lists.php.net >>>>>>>>> To contact the list administrators, e-mail: >>>>>>>> php-list-admin@lists.php.net >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> PHP General Mailing List (http://www.php.net/) >>>>>>>> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >>>>>>>> For additional commands, e-mail: php-general-help@lists.php.net >>>>>>>> To contact the list administrators, e-mail: >>>>>>>> php-list-admin@lists.php.net >>>>>>>> >>>>>>> >>>>>>> -- >>>>>>> PHP General Mailing List (http://www.php.net/) >>>>>>> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >>>>>>> For additional commands, e-mail: php-general-help@lists.php.net >>>>>>> To contact the list administrators, e-mail: >>>>> php-list-admin@lists.php.net >>>>>> >>>>>> >>>>>> -- >>>>>> PHP General Mailing List (http://www.php.net/) >>>>>> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >>>>>> For additional commands, e-mail: php-general-help@lists.php.net >>>>>> To contact the list administrators, e-mail: >>>>> php-list-admin@lists.php.net >>>>> >>>>> >>>>> -- >>>>> PHP General Mailing List (http://www.php.net/) >>>>> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >>>>> For additional commands, e-mail: php-general-help@lists.php.net >>>>> To contact the list administrators, e-mail: >>>>> php-list-admin@lists.php.net >>>>> >>>> -- >>>> "Without the threat of death, there's no reason to live at all" - >>>> Marilyn Manson >>> >>> >>> -- >>> PHP General Mailing List (http://www.php.net/) >>> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >>> For additional commands, e-mail: php-general-help@lists.php.net >>> To contact the list administrators, e-mail: >>> php-list-admin@lists.php.net >>> >> -- >> Earnest HemmingWay wrote: "The world is a fine place, and worth >> fighting for" I agree with the second part. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#39935) next »