PHP Configure on 64-bit Linux
I ran into several issues today with configuring PHP on a 64-bit virtual machine. I ended up compiling readline and aspell by hand because PHP was having some issues locating the libraries for those programs. However, PHP was complaining that it could not find “readline”. I looked in the config.log file and saw that it was searching for the lib64 directory for the custom builds I did for readline and aspell. So, I symlinked lib64 to lib inside of those directories and PHP is happy.
./configure --prefix=/usr/local/php --with-mysql --with-pdo-mysql --with-pgsql=/usr/local/postgres --with-pdo-pgsql=/usr/local/postgres --enable-sqlite-utf8 --with-apxs2=/usr/sbin/apxs --with-mcrypt --with-openssl --enable-force-cgi-redirect --enable-fastcgi --enable-bcmath --enable-inline-optimization --with-bz2 --with-curl --with-gettext --with-ncurses --with-iconv --with-pcre-regex --with-zlib --with-xsl --with-xmlrpc=shared --enable-magic-quotes --enable-sockets --with-pear --enable-calendar --enable-mbstring --enable-mbregex --with-mime-magic=/usr/share/file/magic.mime --enable-exif --with-snmp --with-pspell=/usr/local/aspell --with-ldap=/usr --with-libdir=lib64 --with-gd --enable-soap --with-readline=/usr/local/readline
Wednesday June 17, 2009 @ 8:10 AM EST

