php-install Digest 22 Oct 2001 20:42:42 -0000 Issue 517
Topics (messages 4688 through 4699): set/configure php4apache's php.ini location ? 4688 by: benjamin yates Re: pdflib 4689 by: Paul Gardiner Re: PHP/CGI problem: #!/path/php at top of CGI script appears in output 4690 by: Philippe 4691 by: Philippe 4694 by: Andrey Hristov 4699 by: Philippe Re: NES 3.5.1 PHP4 Solaris 2.6 4692 by: Aki Häkkilä Re: [PHP] Mysql export 4693 by: Andrey Hristov Re: PHP-4.0.6 compilation error 4695 by: Paul 4696 by: Stefan Siefert 4697 by: Paul 4698 by: Stefan Siefert Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
is there a way to set the location of the .ini to use as php.ini when the apache 1.3.x module loads? my system is working fine, but i also use php as a non-web scripting engine and i wanted to keep the .ini's separate - (yes i know i could leave the module using php.ini and force all of the non-web's to use something else with params to the php.exe, but it might be confusing to someone else that way for example...) -ben
Hi Brent, I'm afraid no idea's why you're having the problem but 4.0.6 & pdflib 4.0.1 do work. - Paul - ----- Original Message ----- From: "Mark Newnham" <[EMAIL PROTECTED]> To: "'Brent Meshier'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, October 19, 2001 9:03 PM Subject: RE: [PHP-INST] pdflib > it sounds like you need to upgrade pdflib > > > -----Original Message----- > > From: Brent Meshier [mailto:[EMAIL PROTECTED]] > > Sent: Friday, October 19, 2001 1:10 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP-INST] pdflib > > > > > > I recently upgraded to php 4.0.6 and can no longer get pdflib > > working. PHP > > compiled perfectly with pdflib 4.0.1, yet when I load apache > > it gives me the > > following error: > > > > PHP Warning: Invalid library (maybe not a PHP library) > > 'libpdf_php.so' in > > Unknown on line 0 > > > > Any ideas? Is pdflib broken with 4.0.6 ?? > > > > --Brent > > > > > > -- > > 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] >
Hi, Yes I have used --enable-discard-path, the script work with #!/usr/local/bin/php I'll give the full configuration later Philippe Stefan Siefert writes: > Hi, > > well I do understand your needing. > > First a question. What are your compile options, e.g. your configure call? > Do you use --enable-discard-path ? If not, try this. You need this option to > run Phpscripts from cgi-bin folders!!! > > Greetings, > > Stefan Siefert > > -----Ursprüngliche Nachricht----- > Von: Philippe [mailto:[EMAIL PROTECTED]] > Gesendet: Sonntag, 21. Oktober 2001 17:53 > An: Stefan Siefert; php-general; php-install > Betreff: Re: PHP/CGI problem: #!/path/php at top of CGI script appears > in output > > > Hi, > Thanks Stefan for your answer > > First, I'll explain why I want to use php in cgi > I'ts a simple reason, some users want to use php without safemode (which is > required with Apache due to safety problems). So I want to use php in cgi > mode with suexec. > > I've tryed your solution, it works in all non-cgi directory > But it doesn't work in cgi directory with suexec or not > > If I put #/usr/local/bin/php in the script, the script work but we can see > #/usr/local/bin/php at the top. > > If I don't put it, there is an 500 error (Internal Server Error) > In error_log, we can see these lines > > [Sun Oct 21 17:30:10 2001] [error] (8)Exec format error: exec of > /home/webbourse/cgi-bin/php.cphp failed > [Sun Oct 21 17:30:10 2001] [error] [client 212.103.7.98] Premature end of > script headers: /home/webbourse/cgi-bin/php.cphp > > Someone has an idea ???? > > Thanks > Philippe > > Stefan Siefert writes: > >> Hi @all.. >> >> I'm not sure if this can fix (or explain) your problem (cause I didn't > tried >> it in lack of time) but theoretical it could be :). >> >> I think you only need the #!/usr/local/bin/php if you would like to run >> scripts from the bash, or as a "real" cgi. But I think, there could be >> another solution .. compile your php as cgi like you did and add these > lines >> in your httpd.conf >> >> ScriptAlias /php/ "/usr/local/bin/" >> >> AddType application/x-httpd-php .php .phtml .cgi >> >> Action application/x-httpd-php "/php/php" >> >> This should also launch the cgi - version of php, but doesn't requires the >> #! line in the scripts. I'm not sure, but it should work. >> >> Hope this helps you, >> >> Stefan Siefert >> >> >> >> ----- Original Message ----- >> From: Dave Goodrich <[EMAIL PROTECTED]> >> To: Philippe <[EMAIL PROTECTED]> >> Cc: php-general <[EMAIL PROTECTED]>; php-install >> <[EMAIL PROTECTED]> >> Sent: Saturday, October 20, 2001 6:05 PM >> Subject: [PHP-INST] Re: [PHP] PHP/CGI problem: #!/path/php at top of CGI >> script appears in output >> >> >>> It's not you. I just built a bare cgi version of php, nothing but >>> './configure' and got the same result. >>> >>> I used this simple script to be sure I was in fact running the cgi binary >>> and it showed I was. >>> >>> info.cgi >>> #!/usr/local/bin/php >>> <?php >>> phpinfo(); >>> ?> >>> >>> I got the correct info page, but with the #!/usr/local/bin/php at the top >>> as you stated. Odd, but I've never used the cgi version so other than >>> confirming your problem I am afraid I'm no help. >>> >>> DAve >>> >>> On Sat, Oct 20, 2001 at 03:31:06PM +0000, Philippe wrote: >>> > Hi, >>> > I'll synthetize the problem with the response I have givven to Curt. >>> > >>> > I've FreeBSD 4.2/Apache 1.3.9/PHP 4.0.6 >>> > I've installed PHP in Apache, it works very well >>> > I need to have too PHP 4.0.6 in CGI mode (With Suexec but I don't think >> it's >>> > >>> > the problem) but I've a problem. >>> > >>> > In CGI mode, the path of PHP is always written at the top of the result >>> > >>> > I'll take for example this script which is in the cgi-bin with the >> execute >>> > mod (755), the extension is .cgi : >>> > >>> > ---- >>> > #!/usr/local/bin/php >>> > <? >>> > print "Hello World"; >>> > ?> >>> > ---- >>> > >>> > When the file is called by the browser, the result is : >>> > ---- >>> > #!/usr/local/bin/php >>> > Hello World >>> > ---- >>> > >>> > Does someone know the problem and the solution ? >>> > Have I forgotten something ? >>> > >>> > I think that's a misconfiguration in PHP >>> > >>> > Thanks for your help >>> > >>> > Philippe >>> > >>> > >>> > -- >>> > 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] >>> > >>> >>> -- >>> My other computer is your Windows machine... >>> >>> >>> >>> -- >>> 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] >>> >>> >> > >
Hi, You're right Dave But nobody had already used PHP with CGI and with Apache ??? I searched on the net, but I've found no documentation on this problem Bye Philippe Dave Goodrich writes: > Nope it fails when he removes the line. It fails on me as well, I tried > it. Also note I did say that the ouput of phpinfo() was correct. The > output showed the page had been handled by the php cgi binary, not the > module. > > The module has a large config line and several extensions > configured in, the cgi binary was compiled with nothing but "./configure" > and the info page confirms this. > > So it seems Apache is handling everything correct, the page gets passed to > the proper php binary, and the result is correctly served back to the > client. > > DAve > > > On Sun, Oct 21, 2001 at 12:18:07PM -0500, Brian Mauter wrote: >> Seems to me that the problems is that you have two instances of PHP going at >> the same time. The first is the one compiled into Apache and the second is >> the cgi module. My bet is that the PHP compiled into Apache is catching it >> first (maybe you told all .cgi files to be parsed by the PHP parser?). In >> that case, the first line would be treated as HTML output, not PHP. This >> would be the reason you get that line in all of your scripts. Here's a >> test: remove that line from your file and then try it. If it continues to >> work, I would seriously suspect that the built-in Apache-PHP parser is >> handling your .cgi files. >> >> -Brian >> >> -----Original Message----- >> From: Dave Goodrich [mailto:[EMAIL PROTECTED]] >> >> * snip >> info.cgi >> #!/usr/local/bin/php >> <?php >> phpinfo(); >> ?> >> > > -- > My other computer is your Windows machine... > > > > -- > 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] >
Try to change your script's extension to .cgi instead of .php . It _may_ help. -- Andrey Hristov Web Developer Icygen Corporation BUILDING SOLUTIONS http://www.icygen.com On Monday 22 October 2001 04:15 am, you wrote: > Hi, > You're right Dave > > But nobody had already used PHP with CGI and with Apache ??? > > I searched on the net, but I've found no documentation on this problem > > Bye > Philippe > > Dave Goodrich writes: > > Nope it fails when he removes the line. It fails on me as well, I tried > > it. Also note I did say that the ouput of phpinfo() was correct. The > > output showed the page had been handled by the php cgi binary, not the > > module. > > > > The module has a large config line and several extensions > > configured in, the cgi binary was compiled with nothing but "./configure" > > and the info page confirms this. > > > > So it seems Apache is handling everything correct, the page gets passed > > to the proper php binary, and the result is correctly served back to the > > client. > > > > DAve > > > > On Sun, Oct 21, 2001 at 12:18:07PM -0500, Brian Mauter wrote: > >> Seems to me that the problems is that you have two instances of PHP > >> going at the same time. The first is the one compiled into Apache and > >> the second is the cgi module. My bet is that the PHP compiled into > >> Apache is catching it first (maybe you told all .cgi files to be parsed > >> by the PHP parser?). In that case, the first line would be treated as > >> HTML output, not PHP. This would be the reason you get that line in all > >> of your scripts. Here's a test: remove that line from your file and > >> then try it. If it continues to work, I would seriously suspect that > >> the built-in Apache-PHP parser is handling your .cgi files. > >> > >> -Brian > >> > >> -----Original Message----- > >> From: Dave Goodrich [mailto:[EMAIL PROTECTED]] > >> > >> * snip > >> info.cgi > >> #!/usr/local/bin/php > >> <?php > >> phpinfo(); > >> ?> > > > > -- > > My other computer is your Windows machine... > > > > > > > > -- > > 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]
hi, I have tryed .cphp in that way there's no conflict I have searched on the net and I've found others persons that have that problem but I've found no answer :( Bye, Philippe Andrey Hristov writes: > Try to change your script's extension to .cgi instead of .php . It _may_ help. > > -- > Andrey Hristov > Web Developer > Icygen Corporation > BUILDING SOLUTIONS > http://www.icygen.com > > On Monday 22 October 2001 04:15 am, you wrote: >> Hi, >> You're right Dave >> >> But nobody had already used PHP with CGI and with Apache ??? >> >> I searched on the net, but I've found no documentation on this problem >> >> Bye >> Philippe >> >> Dave Goodrich writes: >> > Nope it fails when he removes the line. It fails on me as well, I tried >> > it. Also note I did say that the ouput of phpinfo() was correct. The >> > output showed the page had been handled by the php cgi binary, not the >> > module. >> > >> > The module has a large config line and several extensions >> > configured in, the cgi binary was compiled with nothing but "./configure" >> > and the info page confirms this. >> > >> > So it seems Apache is handling everything correct, the page gets passed >> > to the proper php binary, and the result is correctly served back to the >> > client. >> > >> > DAve >> > >> > On Sun, Oct 21, 2001 at 12:18:07PM -0500, Brian Mauter wrote: >> >> Seems to me that the problems is that you have two instances of PHP >> >> going at the same time. The first is the one compiled into Apache and >> >> the second is the cgi module. My bet is that the PHP compiled into >> >> Apache is catching it first (maybe you told all .cgi files to be parsed >> >> by the PHP parser?). In that case, the first line would be treated as >> >> HTML output, not PHP. This would be the reason you get that line in all >> >> of your scripts. Here's a test: remove that line from your file and >> >> then try it. If it continues to work, I would seriously suspect that >> >> the built-in Apache-PHP parser is handling your .cgi files. >> >> >> >> -Brian >> >> >> >> -----Original Message----- >> >> From: Dave Goodrich [mailto:[EMAIL PROTECTED]] >> >> >> >> * snip >> >> info.cgi >> >> #!/usr/local/bin/php >> >> <?php >> >> phpinfo(); >> >> ?> >> > >> > -- >> > My other computer is your Windows machine... >> > >> > >> > >> > -- >> > 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 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] >
There was a typo in his obj.conf ("php4_executes") and he needed latest snapshot because the TSRM was recently rewritten. If your NES/iPlanet crashes during init, you may have same problems. This is my original bug report: http://bugs.php.net/bug.php?id=13174 PHP uses pthreads now instead of the NSAPI thread functions. iPlanet claims that it will cause problems (server crash), but I haven't noticed anything yet. There used to be an attempt to use NSAPI thread functions (php-4.0.6), but it didn't work too well. When compiled --with-nsapi, it still used some pthread-functions etc. (see the bug report). If compiled --without-pthreads --with-nsapi, the compilation failed. I don't know why, perhaps the NSAPI header files weren't included yet at that stage (unknown symbols). Big G wrote: > > Any answer on this? > > [EMAIL PROTECTED] wrote: > > > > > > > Hi everyone! > > > > Is it possible to install PHP4 with NES 3.5.1? Everywhere I have looked I > > onley find instructions > > for installing on NES 3.6. > > > > I have followed those instructions but I can?t get it to work. > > > > When I start the Netscape server after modification i get the following > > error: > > > > [https-www.saabsupplier.com]: pclose() failed. (2: unknown early startup > > [error) https-www.saabsupplier.com]: conf_init: Error running init > > [function(late) > > load-modules: dlsym for php4_executes failed (ld.so.1: ns-httpd: fatal: > > php4_executes: can't find symbol) > > [https-www.saabsupplier.com]: server exit: status 1 > > > > Any help is apreciated! > > > > Regards > > Daniel > > --
PhpMyAdmin (on http://www.phpwizard.net") has the capability to export mysql table ot CSV, then import the CSV or maybe this will help you too(on small tables, otherwise the HTML code is big) $dump=''; $separator=','; $the_query="select * from $table;"; $res=mysql_query($the_query); if ($res){ $num_rows=mysql_num_rows($res); for (;$numrows>=0;$num_rows--){ $arr=mysq_fetch_assoc($res); $line=''; foreach ($arr as $k => $v){ $line.=($v.$separator); } $line=substr($line,0,-strlen($separator)); $dump.=$line."\n"; } } if ($dump){ $fd=fopen("{$table}_dump.csv","w+"); frwite($fd,$dump); fclose($fd); echo "<pre>\n".$dump."\n</pre>"; } Hope this helps. -- Andrey Hristov Web Developer Icygen Corporation BUILDING SOLUTIONS http://www.icygen.com On Friday 19 October 2001 06:33 am, you wrote: > Please help me, how to export mysql table to the xls table ? > Thanks for all > > Roman
somebody, anybody, please help :( "Paul" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I'm trying to build php.4.0.6 from source and the first I get an error while > using the --with-gd switch so I took that out and it stopped complaining > after I reconfigured. Then I did make and I get this error: > > /usr/bin/ld: cannot find -lgd > collect2: ld returned 1 exit status > make[1]: *** [libphp4.la] Error 1 > make[1]: Leaving directory `/home/tuxpow3r/php-4.0.6' > make: *** [all-recursive] Error 1 > > My debug.log file is pasted below, please anyone have a look and hopefully > you can help me. Thanks in advance. > > CONFIGURE: './configure' '--with-mysql' '--with-apxs=/usr/sbin/apxs' '--en > able-bcmath' '--enable-trans-sid' '--with-config-file-path=/etc' > '--enable-magic-quotes' > '--enable-track-vars' '--enable-ftp' '--enable-calendar' '--prefix=/usr' > '--with-exec-d > ir=/usr/bin' > CC: gcc > CFLAGS: -g -O2 > CPPFLAGS: -DLINUX=22 -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DSUPPORT_UTF8 > CXX: > CXXFLAGS: > INCLUDES: -I/var/www/include -I$(top_builddir)/Zend -I/home/tuxpow3r/php > -4.0.6/ext/m > ysql/libmysql > LDFLAGS: > LIBS: -lgd -lcrypt -lresolv -lm -ldl -lnsl -lresolv > DLIBS: > SAPI: apache > PHP_RPATHS: > uname -a: Linux thresholdev 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001 > i586 unknown > > gcc -o > conftest -g -O2 -DLINUX=22 -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DSUPPORT_UTF8 > con > ftest.c -lgd -lcrypt -lresolv -lm -ldl -lnsl -lresolv 1>&5 > /usr/bin/ld: cannot find -lgd > collect2: ld returned 1 exit status > > >
Hi, you could try the following things: make a configure with the --without-gd switch. Also make sure, that you deleted before the config.cache file (think there could be a bug with overwriting it). Hope this helps! Stefan Siefert -----Ursprüngliche Nachricht----- Von: Paul [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 22. Oktober 2001 15:56 An: [EMAIL PROTECTED] Betreff: [PHP-INST] Re: PHP-4.0.6 compilation error somebody, anybody, please help :( "Paul" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I'm trying to build php.4.0.6 from source and the first I get an error while > using the --with-gd switch so I took that out and it stopped complaining > after I reconfigured. Then I did make and I get this error: > > /usr/bin/ld: cannot find -lgd > collect2: ld returned 1 exit status > make[1]: *** [libphp4.la] Error 1 > make[1]: Leaving directory `/home/tuxpow3r/php-4.0.6' > make: *** [all-recursive] Error 1 > > My debug.log file is pasted below, please anyone have a look and hopefully > you can help me. Thanks in advance. > > CONFIGURE: './configure' '--with-mysql' '--with-apxs=/usr/sbin/apxs' '--en > able-bcmath' '--enable-trans-sid' '--with-config-file-path=/etc' > '--enable-magic-quotes' > '--enable-track-vars' '--enable-ftp' '--enable-calendar' '--prefix=/usr' > '--with-exec-d > ir=/usr/bin' > CC: gcc > CFLAGS: -g -O2 > CPPFLAGS: -DLINUX=22 -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DSUPPORT_UTF8 > CXX: > CXXFLAGS: > INCLUDES: -I/var/www/include -I$(top_builddir)/Zend -I/home/tuxpow3r/php > -4.0.6/ext/m > ysql/libmysql > LDFLAGS: > LIBS: -lgd -lcrypt -lresolv -lm -ldl -lnsl -lresolv > DLIBS: > SAPI: apache > PHP_RPATHS: > uname -a: Linux thresholdev 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001 > i586 unknown > > gcc -o > conftest -g -O2 -DLINUX=22 -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DSUPPORT_UTF8 > con > ftest.c -lgd -lcrypt -lresolv -lm -ldl -lnsl -lresolv 1>&5 > /usr/bin/ld: cannot find -lgd > collect2: ld returned 1 exit status > > > -- 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]
I did that, didn't make a difference. "Stefan Siefert" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > you could try the following things: make a configure with the --without-gd > switch. Also make sure, that you deleted before the config.cache file (think > there could be a bug with overwriting it). > > Hope this helps! > > Stefan Siefert > > -----Ursprüngliche Nachricht----- > Von: Paul [mailto:[EMAIL PROTECTED]] > Gesendet: Montag, 22. Oktober 2001 15:56 > An: [EMAIL PROTECTED] > Betreff: [PHP-INST] Re: PHP-4.0.6 compilation error > > > somebody, anybody, please help :( > > > "Paul" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi all, > > > > I'm trying to build php.4.0.6 from source and the first I get an error > while > > using the --with-gd switch so I took that out and it stopped complaining > > after I reconfigured. Then I did make and I get this error: > > > > /usr/bin/ld: cannot find -lgd > > collect2: ld returned 1 exit status > > make[1]: *** [libphp4.la] Error 1 > > make[1]: Leaving directory `/home/tuxpow3r/php-4.0.6' > > make: *** [all-recursive] Error 1 > > > > My debug.log file is pasted below, please anyone have a look and hopefully > > you can help me. Thanks in advance. > > > > CONFIGURE: './configure' '--with-mysql' '--with-apxs=/usr/sbin/apxs' > '--en > > able-bcmath' '--enable-trans-sid' '--with-config-file-path=/etc' > > '--enable-magic-quotes' > > '--enable-track-vars' '--enable-ftp' '--enable-calendar' '--prefix=/usr' > > '--with-exec-d > > ir=/usr/bin' > > CC: gcc > > CFLAGS: -g -O2 > > CPPFLAGS: -DLINUX=22 -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DSUPPORT_UTF8 > > CXX: > > CXXFLAGS: > > > INCLUDES: -I/var/www/include -I$(top_builddir)/Zend -I/home/tuxpow3r/php > > -4.0.6/ext/m > > ysql/libmysql > > LDFLAGS: > > LIBS: -lgd -lcrypt -lresolv -lm -ldl -lnsl -lresolv > > DLIBS: > > SAPI: apache > > PHP_RPATHS: > > uname -a: Linux thresholdev 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001 > > i586 unknown > > > > gcc -o > > > conftest -g -O2 -DLINUX=22 -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DSUPPORT_UTF8 > > con > > ftest.c -lgd -lcrypt -lresolv -lm -ldl -lnsl -lresolv 1>&5 > > /usr/bin/ld: cannot find -lgd > > collect2: ld returned 1 exit status > > > > > > > > > > -- > 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] > >
hm, k, sounds silly, but why don't you install the gd-libs? Think, you first tried to use them or? Might be the fast solution?! Also, you could try to patch the Makefile from hand. Open Makefile with your editor and search for -lgd. Try to remove it, and have a look if that works... Stefan Siefert -----Ursprüngliche Nachricht----- Von: Paul [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 22. Oktober 2001 17:27 An: [EMAIL PROTECTED] Betreff: Re: [PHP-INST] Re: PHP-4.0.6 compilation error I did that, didn't make a difference. "Stefan Siefert" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > you could try the following things: make a configure with the --without-gd > switch. Also make sure, that you deleted before the config.cache file (think > there could be a bug with overwriting it). > > Hope this helps! > > Stefan Siefert > > -----Ursprüngliche Nachricht----- > Von: Paul [mailto:[EMAIL PROTECTED]] > Gesendet: Montag, 22. Oktober 2001 15:56 > An: [EMAIL PROTECTED] > Betreff: [PHP-INST] Re: PHP-4.0.6 compilation error > > > somebody, anybody, please help :( > > > "Paul" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi all, > > > > I'm trying to build php.4.0.6 from source and the first I get an error > while > > using the --with-gd switch so I took that out and it stopped complaining > > after I reconfigured. Then I did make and I get this error: > > > > /usr/bin/ld: cannot find -lgd > > collect2: ld returned 1 exit status > > make[1]: *** [libphp4.la] Error 1 > > make[1]: Leaving directory `/home/tuxpow3r/php-4.0.6' > > make: *** [all-recursive] Error 1 > > > > My debug.log file is pasted below, please anyone have a look and hopefully > > you can help me. Thanks in advance. > > > > CONFIGURE: './configure' '--with-mysql' '--with-apxs=/usr/sbin/apxs' > '--en > > able-bcmath' '--enable-trans-sid' '--with-config-file-path=/etc' > > '--enable-magic-quotes' > > '--enable-track-vars' '--enable-ftp' '--enable-calendar' '--prefix=/usr' > > '--with-exec-d > > ir=/usr/bin' > > CC: gcc > > CFLAGS: -g -O2 > > CPPFLAGS: -DLINUX=22 -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DSUPPORT_UTF8 > > CXX: > > CXXFLAGS: > > > INCLUDES: -I/var/www/include -I$(top_builddir)/Zend -I/home/tuxpow3r/php > > -4.0.6/ext/m > > ysql/libmysql > > LDFLAGS: > > LIBS: -lgd -lcrypt -lresolv -lm -ldl -lnsl -lresolv > > DLIBS: > > SAPI: apache > > PHP_RPATHS: > > uname -a: Linux thresholdev 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001 > > i586 unknown > > > > gcc -o > > > conftest -g -O2 -DLINUX=22 -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DSUPPORT_UTF8 > > con > > ftest.c -lgd -lcrypt -lresolv -lm -ldl -lnsl -lresolv 1>&5 > > /usr/bin/ld: cannot find -lgd > > collect2: ld returned 1 exit status > > > > > > > > > > -- > 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]