I am trying to compile a php binary but am having problems.
Here are my configure arguments
--enable-force-cgi-redirect --with-mysql=/usr/local/mysql --with-sybase=/usr/local/freetds --with-mssql=/usr/local/freetd
s --enable-track-vars --with-gd=/usr/local/src/gd --with-jpeg-dir=/usr/local/src/jpeg-6b --with-xml --enable-wddx --with-png-dir=/usr
/lib --with-zlib-dir=/usr/local/src/zlib --with-curl=/usr/local
Everything compiles fine (no errors)
I have set-up my .htaccess file.
Action php4-script /cgi-bin/php-dev2.cgi
AddHandler php4-script .php
But when I try to call a page through binary, error 500.
Tailing the error log says
php-dev2.cgi: error in loading shared libraries: libpng.so.3: cannot open shared object file: No such file or directory
I am guessing that the libpng libraries are not being statically compiled into the binary. How do I statically compile the libraries into one binary. I want to be able to move the binary to a different linux machine, without installing all the libraries.