Thread: [LHA-misc] Compiling php with gd and static?
Status: Beta
Brought to you by:
ncherry
From: Neil C. <nc...@ho...> - 2001-06-18 18:34:50
|
Anyone know how to get 4.0.5 to compile as a command line program? Or how to get it to compile to accept ImagePNG or ImageJPG functions? This is driving me crazy! I've got MySQL working but I can't get the Imagexxx function calls to work (in either the CGI/CLI version or the dynamic loadable module). I just get a complaint that there is no such function (at least I got rid of the ImageCreate complaints). -- Linux Home Automation Neil Cherry nc...@ho... http://members.home.net/ncherry (Text only) http://meltingpot.fortunecity.com/lightsey/52 (Graphics) http://linuxha.sourceforge.net/ (SourceForge) |
From: Mike B. <mi...@ba...> - 2001-06-18 18:50:56
|
WHat build command did you use to build php? (You can see it in teh output frmo phpinfo(); What version of gd is installed on your system? Mike Neil Cherry wrote: > Anyone know how to get 4.0.5 to compile as a command line program? Or > how to get it to compile to accept ImagePNG or ImageJPG functions? This > is driving me crazy! I've got MySQL working but I can't get the Imagexxx > function calls to work (in either the CGI/CLI version or the dynamic > loadable module). I just get a complaint that there is no such function > (at least I got rid of the ImageCreate complaints). > > |
From: Neil C. <nc...@ho...> - 2001-06-18 19:15:19
|
Mike Baptiste wrote: > > WHat build command did you use to build php? (You can see it in teh > output frmo phpinfo(); What version of gd is installed on your system? > > Mike > > Neil Cherry wrote: > > > Anyone know how to get 4.0.5 to compile as a command line program? Or > > how to get it to compile to accept ImagePNG or ImageJPG functions? This > > is driving me crazy! I've got MySQL working but I can't get the Imagexxx > > function calls to work (in either the CGI/CLI version or the dynamic > > loadable module). I just get a complaint that there is no such function > > (at least I got rid of the ImageCreate complaints). It was php 4.0.2 (I save the static command) and I'm building 4.0.5. I just got the static version of php 4.0.5 to compile and install but it doesn't recognize the ImageXXX yet. One step closer. -- Linux Home Automation Neil Cherry nc...@ho... http://members.home.net/ncherry (Text only) http://meltingpot.fortunecity.com/lightsey/52 (Graphics) http://linuxha.sourceforge.net/ (SourceForge) |
From: Jay H. <jay...@2i...> - 2001-06-19 06:25:43
|
Neil, What Mike was looking for (I think) is the command line that lists all the --with --without, libs, directories, etc. Some other things to look at since it is giving you 'undefined function' problems: - phpinfo() will list what is/is not available. - php_functions.h (.c?) has the entry points for all the /ext/... php libraries. On some systems with a broken shell/sed there are problems in this file and not everything is handled correctly. - there are prerequisites for some modules and they won't work unless all parts are there. I believe 'gd' has a lot of them since I also pulled in pdflib and spent the next 8 hours tracking down all the other pieces. Glad to see your liking PHP as a language. Good luck, Jay At 04:25 PM 6/18/01 -0400, you wrote: >Mike Baptiste wrote: > > > > WHat build command did you use to build php? (You can see it in teh > > output frmo phpinfo(); What version of gd is installed on your system? > >Ooops, sorry forgot to add that it's gd-1.8.4 > >-- >Linux Home Automation Neil Cherry nc...@ho... >http://members.home.net/ncherry (Text only) >http://meltingpot.fortunecity.com/lightsey/52 (Graphics) >http://linuxha.sourceforge.net/ (SourceForge) > >_______________________________________________ >http://lists.sourceforge.net/lists/listinfo/linuxha-misc >To unsubscribe, send "unsubscribe Linuxha-misc" >in the body of a message to Lin...@li... |
From: Neil C. <nc...@ho...> - 2001-06-19 13:00:12
|
Jay Hogg wrote: > > Neil, > > What Mike was looking for (I think) is the command line that lists > all the --with --without, libs, directories, etc. > > Some other things to look at since it is giving you 'undefined > function' problems: > - phpinfo() will list what is/is not available. > - php_functions.h (.c?) has the entry points for all the /ext/... > php libraries. On some systems with a broken shell/sed there are > problems in this file and not everything is handled correctly. > - there are prerequisites for some modules and they won't work > unless all parts are there. I believe 'gd' has a lot of them > since I also pulled in pdflib and spent the next 8 hours tracking > down all the other pieces. ./configure \ --with-apxs=/usr/sbin/apxs \ --with-openssl=shared \ --enable-libgcc \ --enable-bcmath \ --enable-calendar \ --enable-ctype \ --enable-ftp \ --with-gd=/usr7/projects/php.tmp/gd-1.8.4 \ --with-jpeg \ --with-jpeg-dir=/usr7/projects/php.tmp/gd-1.8.4 \ --with-xpm-dir=/usr7/projects/php.tmp/gd-1.8.4 \ --with-png-dir=/usr7/projects/php.tmp/gd-1.8.4 \ --enable-gd-native-ttf \ --with-mysql \ --enable-sysvsem \ --enable-sysvshm \ --with-zlib=shared \ --enable-shared \ --enable-inline-optimization \ --with-gnu-ld I'll get phpinfo later, I need to clean it up so it doesn't come out a real mess. -- Linux Home Automation Neil Cherry nc...@ho... http://members.home.net/ncherry (Text only) http://meltingpot.fortunecity.com/lightsey/52 (Graphics) http://linuxha.sourceforge.net/ (SourceForge) |
From: Mike B. <mi...@ba...> - 2001-06-19 13:16:58
|
I can't imagine it matters, but I don't think the -with-jpeg is necessary if you have the -with-jpeg-dir. If possible, rerun the command and send the output from configure (its kinda big so postin git to the list may not be a good thing - you can send it to me I'd be happy to check it out) I've not messed with gd support in php specifically, but sometimes configure will tell you something is missing but go ahead and make the Make files anyway. Also, with 4.0.4 the TTF option is: --enable-gd-imgstrttf Enable TrueType string function in gd Did it change in 4.0.5? Mike Neil Cherry wrote: > Jay Hogg wrote: > >>Neil, >> >>What Mike was looking for (I think) is the command line that lists >>all the --with --without, libs, directories, etc. >> >>Some other things to look at since it is giving you 'undefined >>function' problems: >>- phpinfo() will list what is/is not available. >>- php_functions.h (.c?) has the entry points for all the /ext/... >>php libraries. On some systems with a broken shell/sed there are >>problems in this file and not everything is handled correctly. >>- there are prerequisites for some modules and they won't work >>unless all parts are there. I believe 'gd' has a lot of them >>since I also pulled in pdflib and spent the next 8 hours tracking >>down all the other pieces. >> > > ./configure \ > --with-apxs=/usr/sbin/apxs \ > --with-openssl=shared \ > --enable-libgcc \ > --enable-bcmath \ > --enable-calendar \ > --enable-ctype \ > --enable-ftp \ > --with-gd=/usr7/projects/php.tmp/gd-1.8.4 \ > --with-jpeg \ > --with-jpeg-dir=/usr7/projects/php.tmp/gd-1.8.4 \ > --with-xpm-dir=/usr7/projects/php.tmp/gd-1.8.4 \ > --with-png-dir=/usr7/projects/php.tmp/gd-1.8.4 \ > --enable-gd-native-ttf \ > --with-mysql \ > --enable-sysvsem \ > --enable-sysvshm \ > --with-zlib=shared \ > --enable-shared \ > --enable-inline-optimization \ > --with-gnu-ld > > I'll get phpinfo later, I need to clean it up so it doesn't come out a > real mess. > > |
From: Neil C. <nc...@ho...> - 2001-06-20 13:17:23
|
Ok, I feel pretty stupid right now, with all my testing of different config options I neglected to remove the cache file. So no matter what I did it would never change. I now get jpegs! Now I'm going to build the static version also. Thanks everyone. -- Linux Home Automation Neil Cherry nc...@ho... http://members.home.net/ncherry (Text only) http://meltingpot.fortunecity.com/lightsey/52 (Graphics) http://linuxha.sourceforge.net/ (SourceForge) |
From: Neil C. <nc...@ho...> - 2001-06-18 20:19:20
|
Mike Baptiste wrote: > > WHat build command did you use to build php? (You can see it in teh > output frmo phpinfo(); What version of gd is installed on your system? Ooops, sorry forgot to add that it's gd-1.8.4 -- Linux Home Automation Neil Cherry nc...@ho... http://members.home.net/ncherry (Text only) http://meltingpot.fortunecity.com/lightsey/52 (Graphics) http://linuxha.sourceforge.net/ (SourceForge) |