LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-18-2008, 11:42 PM   #1
nyheat
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 75

Rep: Reputation: 15
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?
 
Old 07-19-2008, 01:20 AM   #2
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
Are the rpm packages libmcrypt and libmcrypt-devel installed?
 
Old 07-19-2008, 08:51 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,125

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

Regards
 
Old 07-19-2008, 11:17 AM   #4
nyheat
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 75

Original Poster
Rep: Reputation: 15
Thanks knudfl! That fixed it.
 
Old 09-16-2009, 03:40 PM   #5
perfectvista
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
You need to install the Tools needed for development using the GNU Libtool Dynamic Module Loader

yum install libtool-ltdl-devel
 
  


Reply

Tags
cannot, find


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
make gives me /usr/bin/ld: cannot find -lirc while making php procfs Linux - Newbie 4 07-04-2008 05:42 AM
Compiling error /usr/bin/ld: cannot find -ltclstub84 OlRoy *BSD 7 01-26-2007 05:24 PM
Compiling Evas (E17) - /usr/bin/ld: cannot find -lvga victorhooi Linux - Software 1 10-20-2005 05:33 PM
error compiling cdrtools on kernel 2.6.0: /usr/bin/ld: cannot find -lscg schatoor Linux - Software 1 12-21-2003 09:15 AM
/usr/bin/ld: cannot find -lusb error?? Hyperion007 Linux - Newbie 1 08-21-2003 05:16 AM


All times are GMT -5. The time now is 12:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration