LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Error compiling PHP: /usr/bin/ld: cannot find -lltdl (https://www.linuxquestions.org/questions/linux-server-73/error-compiling-php-usr-bin-ld-cannot-find-lltdl-656764/)

nyheat 07-18-2008 10:42 PM

Error compiling PHP: /usr/bin/ld: cannot find -lltdl
 
I'm trying to install PHP 5.2.6 on a CentOS 5 system.

Configure goes through fine, but make gives the following error:
Quote:

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

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

sleddog 07-19-2008 12:20 AM

Are the rpm packages libmcrypt and libmcrypt-devel installed?

knudfl 07-19-2008 07:51 AM

The required file is 'libltdl.so' I think, and may be
the header, to be found in package 'libtool-ltdl-devel'

Regards

nyheat 07-19-2008 10:17 AM

Thanks knudfl! That fixed it.

perfectvista 09-16-2009 02:40 PM

You need to install the Tools needed for development using the GNU Libtool Dynamic Module Loader

yum install libtool-ltdl-devel


All times are GMT -5. The time now is 01:21 PM.