/usr/bin/ld: cannot find -lltdl on PHP Make: How to Fix

You can meet this error while trying to make PHP on a fresh server. For example, you have this configure line:

./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'

and the error you receive is:

/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1

Most probably you don’t have libtool-ltdl-devel installed. All you need is to install it using yum (or any other applicable package manager). yum install libtool-ltdl-devel. Then run ./configure, make and make install. This should do the job.


Customers' Voice

“The team at Blisstering took personal pride in their development work, even to the point of augmenting the product with improvements and enhancements in order to deliver the best solution possible.”

 

Gale Wilson-Steele
Founder and CEO
CareSeek

 


 

“It was my first time using a website development company, and as much as I apprehended the whole process, it could not have been easier. At Blisstering, they made the whole process much less threatening than it seemed by being pleasant, cooperative, helpful, creative. They were quick to start work on our CRM solution, and to get it to completion -- on-time and on-budget. I love the final result! I strongly recommend Blisstering Solutions, and with pleasure.”

 

R. R. Shah
International Marketing Corporation