I'm trying to install PHP 5.2.6 on a CentOS 5 system.
Configure goes through fine, but make gives the following error:
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
The configure string itself:
./configure '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-calendar' '--enable-mbstring' '--disable-cgi' '--disable-magic-quotes' '--with-curl' '--with-curlwrappers' '--with-zlib' '--with-bz2' '--enable-ftp' '--with-gd' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr/lib/mysql' '--enable-soap' '--with-xmlrpc' '--enable-zip' '--with-pear'
None of the solutions I found through Google have helped. I removed mcrypt from the configure string and reran make without a problem. The problem is that I need mcrypt, so leaving it out is not an option.
Does anyone know why mcrypt is causing the aforementioned error?