NYCPHP Meetup

NYPHP.org

[nycphp-talk] configuring image library for php 4.3.2/apache/linux

Tim Gales tgales at tgaconnect.com
Thu Dec 11 08:47:38 EST 2003


 Keith Richardson writes:
"I am coming up short on how to add the image library support"

also look at:
http://www.php.net/~rasmus/gd.html

you might want to change the above to
something like:

1) download GD 2.0.15 
2) untar it (tar zxvf gd-2.0.15.tar.gz)
3) cd to the gd directory (gd/gd-2.0.15)
4) Change the makefile libs to be 
     LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm
5) make libgd.a   
6) Build PHP using these flags:
   --with-gd=/home/gd/gd-2.0.15 
    (or wherrever you put the gd lib)
   --with-freetype-dir=/usr
   --enable-gd-native-ttf  
   --enable-gd-imgstrttf
   --with-jpeg-dir=/usr
   --with-png-dir=/usr
   --with-zlib

Warning: I never did this
but it might work...

Good luck.

T. Gales & Associates
'Helping People Connect with Technology'

http://www.tgaconnect.com




More information about the talk mailing list