Re: [PHP] Problems installing php with pdflib
On 4/25/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, April 24, 2007 7:39 am, Tijnema ! wrote: > On 4/17/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> On Sat, April 14, 2007 3:55 am, Merlin wrote: >> > I am moving to a new box and want to install php with pdflib >> again. >> > After configure I get an error saying: >> > pdflib.h not found! Check the path passed to --with-pdflib >> > >> > The path is just fine: >> > '--with-pdflib=/usr/local/lib' >> >> configure needs to find TWO things: >> #1 the "lib" file which is libpdf.so in /usr/local/lib >> #2 the "header" file which is libpdf.h in /usr/local/include >> >> If you tell configure to look inside of /usr/local/lib, it can't >> *find* the libpdf.h file, because it's not inside that directory, >> it's >> inside a directory parallel to that. >> >> If you tell configure to look in /usr/local, it "knows" to check in >> /usr/local/lib for the .so file, and in /usr/local/include for the >> .h >> file, and it finds everything it needs. >> > It won't, because his headers are in /usr/local/lib, and not in > /usr/include/header If his headers are in /usr/local/lib, I'll be very very very surprised... They shouldn't be there. Move them. He hasn't replied yet, and i was also confused, but in his first post he said this: ls /usr/local/lib/pdflib.* /usr/local/lib/pdflib.h Of course, moving them is the best way, however, sometimes it gives problems with other things, so i guess creating a symlink here would be better Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems installing php with pdflib
On Tue, April 24, 2007 7:39 am, Tijnema ! wrote: > On 4/17/07, Richard Lynch <[EMAIL PROTECTED]> wrote: >> On Sat, April 14, 2007 3:55 am, Merlin wrote: >> > I am moving to a new box and want to install php with pdflib >> again. >> > After configure I get an error saying: >> > pdflib.h not found! Check the path passed to --with-pdflib >> > >> > The path is just fine: >> > '--with-pdflib=/usr/local/lib' >> >> configure needs to find TWO things: >> #1 the "lib" file which is libpdf.so in /usr/local/lib >> #2 the "header" file which is libpdf.h in /usr/local/include >> >> If you tell configure to look inside of /usr/local/lib, it can't >> *find* the libpdf.h file, because it's not inside that directory, >> it's >> inside a directory parallel to that. >> >> If you tell configure to look in /usr/local, it "knows" to check in >> /usr/local/lib for the .so file, and in /usr/local/include for the >> .h >> file, and it finds everything it needs. >> > It won't, because his headers are in /usr/local/lib, and not in > /usr/include/header If his headers are in /usr/local/lib, I'll be very very very surprised... They shouldn't be there. Move them. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems installing php with pdflib
On 4/17/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Sat, April 14, 2007 3:55 am, Merlin wrote: > I am moving to a new box and want to install php with pdflib again. > After configure I get an error saying: > pdflib.h not found! Check the path passed to --with-pdflib > > The path is just fine: > '--with-pdflib=/usr/local/lib' configure needs to find TWO things: #1 the "lib" file which is libpdf.so in /usr/local/lib #2 the "header" file which is libpdf.h in /usr/local/include If you tell configure to look inside of /usr/local/lib, it can't *find* the libpdf.h file, because it's not inside that directory, it's inside a directory parallel to that. If you tell configure to look in /usr/local, it "knows" to check in /usr/local/lib for the .so file, and in /usr/local/include for the .h file, and it finds everything it needs. It won't, because his headers are in /usr/local/lib, and not in /usr/include/header I don't know if the following will work, but you could try adding the an include dir to CFLAGS: export CFLAGS="-I /usr/local/lib" *note that this will destroy currently set CFLAGS. And then try configuring with --with-pdflib=/usr/local Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems installing php with pdflib
On Sat, April 14, 2007 3:55 am, Merlin wrote: > I am moving to a new box and want to install php with pdflib again. > After configure I get an error saying: > pdflib.h not found! Check the path passed to --with-pdflib > > The path is just fine: > '--with-pdflib=/usr/local/lib' configure needs to find TWO things: #1 the "lib" file which is libpdf.so in /usr/local/lib #2 the "header" file which is libpdf.h in /usr/local/include If you tell configure to look inside of /usr/local/lib, it can't *find* the libpdf.h file, because it's not inside that directory, it's inside a directory parallel to that. If you tell configure to look in /usr/local, it "knows" to check in /usr/local/lib for the .so file, and in /usr/local/include for the .h file, and it finds everything it needs. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems installing php with pdflib
On 4/14/07, Merlin <[EMAIL PROTECTED]> wrote: Hi there, I am moving to a new box and want to install php with pdflib again. After configure I get an error saying: pdflib.h not found! Check the path passed to --with-pdflib The path is just fine: '--with-pdflib=/usr/local/lib' ls /usr/local/lib/pdflib.* /usr/local/lib/pdflib.h How did you get header files in the lib dir? pdflib.h(and all other header files from pdflib) should be in /usr/local/include or /usr/include. then your command should be '--with-pdflib=/usr/local' or just remove it at all, as PHP will find it automatically (i think) ls /usr/local/lib/libpdf.* /usr/local/lib/libpdf.a /usr/local/lib/libpdf.la /usr/local/lib/libpdf.so /usr/local/lib/libpdf.so.1 /usr/local/lib/libpdf.so.1.1.3 That's fine. PHP will search for the headers in pdflibdir (--with-pdflib=...) /include, and for the libraries in pdflibdir/lib Tijnema I do run the same version on the old box which is php 4.4.6 and pdflib 4.03. I do not want to upgrade to a new pdflib since I was totaly satisfied with the installation which runs perfectly. The php version seems also not to be the problem since I tried to configure with 4.2.1 and it failed the same way. I did with pdflib: ./configure make make install Then configured php Has anybody an idea what is wrong? The only difference I do see, is that the other box runs suse 9.0 while this one runs suse 9.3 Thank you for any hint or help, Best regards, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problems installing php with pdflib
Hi there, I am moving to a new box and want to install php with pdflib again. After configure I get an error saying: pdflib.h not found! Check the path passed to --with-pdflib The path is just fine: '--with-pdflib=/usr/local/lib' ls /usr/local/lib/pdflib.* /usr/local/lib/pdflib.h ls /usr/local/lib/libpdf.* /usr/local/lib/libpdf.a /usr/local/lib/libpdf.la /usr/local/lib/libpdf.so /usr/local/lib/libpdf.so.1 /usr/local/lib/libpdf.so.1.1.3 I do run the same version on the old box which is php 4.4.6 and pdflib 4.03. I do not want to upgrade to a new pdflib since I was totaly satisfied with the installation which runs perfectly. The php version seems also not to be the problem since I tried to configure with 4.2.1 and it failed the same way. I did with pdflib: ./configure make make install Then configured php Has anybody an idea what is wrong? The only difference I do see, is that the other box runs suse 9.0 while this one runs suse 9.3 Thank you for any hint or help, Best regards, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems installing PHP
Hi again, and thanks. Well, I will try to explain...Im trying to run PHP as a module, but you helped me to use it as a CGI. I installed NTSP 6 on my computer, and reconfigure Apache for execute PHP as a CGI. Now Apache starts so well and i can execute de PHP info() function. Good. But when I tried to execute some old pages, that runs in a Linux platform and in a Win'98 platform, PHP crashes again. Appears again Dr Watson and it say that the PHP.EXE (access infraction) crashes and Apache shows an Internal Server Error. Any ideas? Advanced thanks again, Berli - Original Message - From: "DL Neil" <[EMAIL PROTECTED]> To: "Berlina" <[EMAIL PROTECTED]>; "php-general-list" <[EMAIL PROTECTED]> Sent: Monday, March 11, 2002 6:47 PM Subject: Re: [PHP] Problems installing PHP > Hi Berlina, > > > Im trying to install an Apache Web Server and PHP in a Windows NT . > > > > * Apache 1.2.23 > > * PHP 4.1.1 > > * Windows NT Server 4.0 with SP4 > > > > The installation of Apache Web Server and PHP was succesfully ok, but > when I > > configure the PHP and Apache, editing the PHP.ini and httpd.conf > files, as > > installation manual says, was not any problem neither. > > > > The problem appears when i try to load a php file with the web server, > then > > shows all the content of a file. The server reads and show the file > but not > > execute it. > > And, of course I added the lines: > > LoadModule php4_module PATH/php4apache.dll > > AddType application/x-httpd-php .php > > in my httpd.conf file. > > > My (NT) system is Apache 1.3.20, PHP 4.0.6, NTWS 4.0 SP6a > > Entries in httpd.conf that you didn't mention: > > ScriptInterpreterSource registry > and in: > > ScriptAlias /php/ "C:/Program Files/PHP/" > later (in addition to what you described) in: > > Action application/x-httpd-php "/php/php.exe" > AddType application/x-httpd-php .php .phtml .php3 .php4 > > - watch those PATHs!? > > I'm not sure if any/all of them might be useful to you - I'm no Apache > specialist, but I followed the instructions given and everything runs > really well. > > Regards, > =dn > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems installing PHP
Hi Berlina, > Im trying to install an Apache Web Server and PHP in a Windows NT . > > * Apache 1.2.23 > * PHP 4.1.1 > * Windows NT Server 4.0 with SP4 > > The installation of Apache Web Server and PHP was succesfully ok, but when I > configure the PHP and Apache, editing the PHP.ini and httpd.conf files, as > installation manual says, was not any problem neither. > > The problem appears when i try to load a php file with the web server, then > shows all the content of a file. The server reads and show the file but not > execute it. > And, of course I added the lines: > LoadModule php4_module PATH/php4apache.dll > AddType application/x-httpd-php .php > in my httpd.conf file. My (NT) system is Apache 1.3.20, PHP 4.0.6, NTWS 4.0 SP6a Entries in httpd.conf that you didn't mention: ScriptInterpreterSource registry and in: ScriptAlias /php/ "C:/Program Files/PHP/" later (in addition to what you described) in: Action application/x-httpd-php "/php/php.exe" AddType application/x-httpd-php .php .phtml .php3 .php4 - watch those PATHs!? I'm not sure if any/all of them might be useful to you - I'm no Apache specialist, but I followed the instructions given and everything runs really well. Regards, =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problems installing PHP
Hi again, Im trying to install an Apache Web Server and PHP in a Windows NT . * Apache 1.2.23 * PHP 4.1.1 * Windows NT Server 4.0 with SP4 The installation of Apache Web Server and PHP was succesfully ok, but when I configure the PHP and Apache, editing the PHP.ini and httpd.conf files, as installation manual says, was not any problem neither. The problem appears when i try to load a php file with the web server, then shows all the content of a file. The server reads and show the file but not execute it. And, of course I added the lines: LoadModule php4_module PATH/php4apache.dll AddType application/x-httpd-php .php in my httpd.conf file. Any ideas? Advanced thanks, Berli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems installing PHP 4.0.4pl1 on RedHat 6.2
> but when I run make... it says that there is nothing to do Do a make clean, and rm config.cache and try again. make clean tells it to start over, and recompile all that stuff it thinks it already compiled right the first time... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General 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] Problems installing PHP 4.0.4pl1 on RedHat 6.2
Hi... I am trying to install PHP 4.0.4pl1 on RedHat 6.2 with Apache 1.3.17 and MySQL 3.23.32 I already compiled MySQL and it works fine Now I am trying to compile PHP, but the problem is that when I run "make", nothing happends... First, I have runned ./configure on the Apache source dir... and then on the PHP source dir, I run ./configure --with-mysql=/usr/local/mysql --with-apache=/usr/local/src/apache-1.3.17 then everything seems fine... I didnt get any error... but when I run make... it says that there is nothing to do I think that the problem is that the ./configure isn't making the makefile Can anybody help? thanks!! Pablo Pasqualino Mar del Plata, Argentina http://www.marplatense.com -- PHP General 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]