IMAGES and JPEG on SOLARIS10

Erin's picture
I use drupal for my blog/website the reason being is it has a unending selection of add ons and api's. Finally one day I decided to add some stuff on..... I wanted a easier way to add images. I went to add in the module and all was well. But things were not so well... as soon as I tried to add a imagine. The image was added but the thumbnail was not. Hmmm lets check and see whats going on. #ldd /usr/apache2/modules/libphp5.so libpng12.so.0 => /usr/local/lib/libpng12.so.0 libz.so => /usr/local/lib/libz.so libjpeg.so.62 => /usr/local/lib/libjpeg.so.62 libresolv.so.2 => /lib/libresolv.so.2 libm.so.2 => /lib/libm.so.2 libnsl.so.1 => /lib/libnsl.so.1 libsocket.so.1 => /lib/libsocket.so.1 libxml2.so.2 => /usr/local/lib/libxml2.so.2 libiconv.so.2 => /usr/local/lib/libiconv.so.2 libc.so.1 => /lib/libc.so.1 libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 libmp.so.2 => /lib/libmp.so.2 libmd.so.1 => /lib/libmd.so.1 libscf.so.1 => /lib/libscf.so.1 libpthread.so.1 => /usr/lib/libpthread.so.1 libuutil.so.1 => /lib/libuutil.so.1 Hmm that looks ok you see the libjpeg in there. Then I looked at my initial configuration of PHP. ./configure --prefix=/usr/php --with-apxs2=/usr/apache2/bin/apxs --with-openssl --with-mysql=/usr/bin/mysql --with-gettext --enable-mbstring --with-gd --with-zlib-dir=/usr/include/zlib.h --with-jpeg-dir=/usr/local/ Thats where everything should be I think.... I do a couple of recompiles with some other options when I checked my test php. Under GD NO JPG Support enabled HUH? I have all of the packages. I compiled with it GD and JPEG. WTF! #pkginfo | grep jpeg application SMCjpeg jpeg GNOME2 SUNWjpg jpeg - The Independent JPEG Groups JPEG software GNOME2 SUNWjpg-devel jpeg - The Independent JPEG Groups JPEG software - development files GNOME2 SUNWjpg-devel-share jpeg - The Independent JPEG Groups JPEG software - development files - /usr/share Hmm everything looks ok. I checked out sunfreeware.com and the GD package says it needs this stuff. GD Graphics Library - An ANSI C library for the dynamic creation of images. GD creates PNG and JPEG images, among other formats - installs in /usr/local. The gd package requires the following library files - libXpm.so.4.11 from xpm, libfreetype.so.6 from freetype, libfontconfig.so.1 from fonctconfig, libgcc_s.so.1 from libgcc-3.3 or from gcc-3.3.2, libiconv.so.2 from libiconv, libpng12.so.0 from libpng, libz.so from zlib, libexpat.so.0 from expat, and libjpeg.so.62 from the jpeg package. Well I got all that stuff its in there (I wont bore you with the details). But then I realize/am informed that PHP is compiled with its own GD.... So I started re-compiling finally after a couple of make and make distclean's and with a little help from a friend I got it right. How about this: './configure' '--with-apxs2=/usr/apache2/bin/apxs' '--with-config-file-path=/etc/apache2' '--enable-mbstring' '--with-mysql=/usr/local/mysql/' '--with-gd' '--with-jpeg-dir=/usr' '--with-zlib-dir=/usr' YEP that did But what I didn't see was '--with-jpeg-dir=/usr' '--with-zlib-dir=/usr' as apposed to --with-zlib-dir=/usr/include/zlib.h --with-jpeg-dir=/usr/local/ Which was apparently the key to my GD compilation... "