salve a tutti

volevo proporvi il seguente problema


quando vado a configurare php 5.2.1 per poterlo compilare lancio


./configure --with-apxs2=/usr/sbin/apxs --with-mysql=/usr/local/mysql/var/ --enable-track-vars --enable-sockets --with-config-file-path=/etc --enable-ftp --with-zlib --enable-force-cgi-redirect --enable-exif --with-gd --enable-memory-limit --disable-debug --disable-rpath --disable-static --with-pic --with-layout=GNU --enable-calendar --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-trans-sid --enable-bcmath --with-bz2 --enable-ctype --with-iconv --enable-filepro --with-gettext --enable-mbstring --enable-shmop --enable-wddx --disable-xml --with-xmlrpc --enable-yp --with-zlib --without-pgsql --enable-dbx --enable-experimental-zts --without-mm --enable-gd-native-ttf --enable-soap --enable-dbase --enable-xml --enable-pdo=static --with-pdo-mysql --with-libdir=/usr/lib

(naturalmente sono tutte cose che mi servono)
rilevo il seguente errore


configure: error: libjpeg.(a|so) not found.


naturlmente ho provato a usare l'opzione --with-jpeg-dir=/dir_della_lib

e l'errore diventa

configure: error: libpng.(a|so) not found.

facendo lo stesso procedimento per le png

ho sempre lo stesso problema anche se le lib sono installate correttamente

potete aiutarmi ? vi prego è vitale

grazie a tutti

Giaste