Page 1 of 1

GD enable problem

Posted: Wed Nov 22, 2006 10:05 am
by onegative
Hey everyone,

I have attempted to enable GD support within my php 5.1.2 deployment on Solaris for two days now to no avail...when I configure I have attempt to use the built gd libraries and my own compiled installed gd libraries which appears to configure, make and make install correctly but it never gets activated within php. I have attempted to get a gd.so compiled but it will only create a gd.a file which won't work for Solaris. Here is my configure at present:

./configure --with-apxs2=/opt/app/p1momw1/apache2.2.0/bin/apxs \
--with-mysql=/opt/app/p1momd1/mysql_4.1.16 \
--with-mysql-sock=/opt/app/p1momd1/mysql_4.1.16/tmp/mysql4.sock \
--prefix=/opt/app/p1momw1/apache2.2.0/php-5.1.2 \
--with-config-file-path=/opt/app/p1momw1/apache2.2.0/php-5.1.2 \
--enable-force-cgi-redirect \
--disable-cgi \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-png-dir=/usr/local/lib \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-gd=/usr/local \
--enable-bcmath \
--enable-mbregex

Here is the Extensions section as configure runs which appears to acknowledge the existence of the GD binaries:

checking for GD support... yes
checking for the location of libjpeg... /usr/local/lib
checking for the location of libpng... /usr/local/lib
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... /usr/local/lib
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for png_write_image in -lpng... (cached) yes
If configure fails try --with-xpm-dir=<DIR>
checking for gdImageString16 in -lgd... yes
checking for gdImagePaletteCopy in -lgd... yes
checking for gdImageCreateFromPng in -lgd... yes
checking for gdImageCreateFromGif in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageCreateFromJpeg in -lgd... yes
checking for gdImageCreateFromXpm in -lgd... yes
checking for gdImageCreateFromGd2 in -lgd... yes
checking for gdImageCreateTrueColor in -lgd... yes
checking for gdImageSetTile in -lgd... yes
checking for gdImageEllipse in -lgd... no
checking for gdImageSetBrush in -lgd... yes
checking for gdImageStringTTF in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageStringFTEx in -lgd... yes
checking for gdImageColorClosestHWB in -lgd... yes
checking for gdImageColorResolve in -lgd... yes
checking for gdImageGifCtx in -lgd... yes
checking for gdCacheCreate in -lgd... no
checking for gdFontCacheShutdown in -lgd... no
checking for gdFreeFontCache in -lgd... no
checking for gdNewDynamicCtxEx in -lgd... yes
checking for gdImageCreate in -lgd... yes

But I can not get it activated and since I am not getting a gd.so the extensions directive in my php.ini is useless.

Any ideas/suggestions/directions would be greatly appreciated..

Thanks in advance,
Danny