I am trying to compile PHP 5.2.5 (latest version up to now) on an Open SUSE 1.2 OS. The Processor is a 64 bit intel, so I've installed the 64 bit version of OS. in tghe Yast (control center), and in software manager window, I have installed libpng, libpng-32bit, and libpng-devel (but not libpng-devel-32bit).
When I try to compile PHP with th following command:
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql --with-mysqli=/usr/bin/mysql_config --with-openssl --enable-bcmath --enable-calendar --with-curl --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/lib64 --with-gettext --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --enable-mcrypt --enable-magic-quotes --enable-discard-path --enable-sockets --enable-track-vars --enable-gd-native-ttf --with-ttf --with-xmlrpc --with-zlib
PHP tells me
configure: error: libpng.(a|so) not found.
While in /usr/lib64 directory, I have the following files:
lrwxrwxrwx 1 root root 10 Nov 5 15:56 libpng.a -> libpng12.a
lrwxrwxrwx 1 root root 11 Nov 5 15:56 libpng.la -> libpng12.la
lrwxrwxrwx 1 root root 11 Nov 5 15:56 libpng.so -> libpng12.so
lrwxrwxrwx 1 root root 16 Nov 5 15:43 libpng.so.3 -> libpng.so.3.12.0
-rwxr-xr-x 1 root root 164656 Nov 25 2006 libpng.so.3.12.0
-rw-r--r-- 1 root root 249648 Nov 25 2006 libpng12.a
-rw-r--r-- 1 root root 806 Nov 25 2006 libpng12.la
lrwxrwxrwx 1 root root 18 Nov 5 15:56 libpng12.so -> libpng12.so.0.12.0
lrwxrwxrwx 1 root root 18 Nov 5 15:43 libpng12.so.0 -> libpng12.so.0.12.0
-rwxr-xr-x 1 root root 151464 Nov 25 2006 libpng12.so.0.12.0
So where is the problem? Do I have to install libpng-devel-32bit, too?