Hi,
I'm trying to get GD working with PHP 4.3.7 on Solaris 8 but keep getting the invalid library message. I find no answers with Google. Anyone who can help me?
I added the following packages before building GD:
-freetype-2.1.7-sol8-sparc-local (SMCftype)
-jpeg-6b-sol8-sparc-local (SMCjpeg)
-libpng-1.2.5-sol8-sparc-local (SMClibpng)
Build gd-2.0.26 as follows:
./configure --with-png=/usr/local --with-libiconv-prefix=/usr/local --with-freetype=/usr/local --with-jpeg=/usr/local --prefix=/usr/local
** Configuration summary for gd 2.0.26:
Support for PNG library: yes
Support for JPEG library: yes
Support for Freetype 2.x library: yes
Support for Xpm library: no
Support for pthreads: yes
ls /usr/local/lib/gd
/usr/local/lib/libgd.a
/usr/local/lib/libgd.so
/usr/local/lib/libgd.so.2.0.0
/usr/local/lib/libgd.la
/usr/local/lib/libgd.so.2
Built PHP as follows:
./configure \
--with-mysql=/u2/mysql-standard-4.0.20-sun-solaris2.8-sparc \
--with-nsapi=/opt/SUNWwbsvr/61SP1 \
--with-gd=/usr/local \
--with-freetype-dir=/usr/local \
--enable-gd-native-ttf \
--with-iconv=/usr/local \
--with-iconv-dir=/usr/local \
--with-png-dir=/usr/local \
--with-jpeg-dir=/usr/local \
--with-zlib-dir=/usr/local \
--enable-gd
The php.ini file has the following:
extension_dir = "/usr/local/lib/"
extension=libgd.so
But I still keep getting this error when I call any of the GD functions:
PHP Warning: Unknown(): Invalid library (maybe not a PHP library) 'libgd.so'
Thanks
Chr-