Despre mine
Sunt katmai, bine ati venit in lumea mea. Enjoy
Am pus pe foaie ...
When compiling php from source, some CentOS 64 bit users have reported getting an error like this:
/usr/bin/ld: cannot find -lltdl collect2: ld returned 1 exit status
Now, this error can be triggered in a couple different places and if you do a general Google search you’ll get all kinds of advice about installing this or that module. All great advice, but not your solution. Here’s what you need to do:
- Verify that the libtool and libtool-ltdl packages are installed.
- Symlink libltdl.so to libltdl.so.x.x.x
Step one is easy.
[root@fe01 ~]# yum install libtool-ltdl.x86_64 libtool.x86_64
yum list |grep libtool |grep installed
libtool-ltdl.x86_64 1.5.22-6.1 installed
libtool-ltdl-devel.x86_64 1.5.22-6.1 installed
However, note that if you have libtool already installed, if you ‘yum info libtool*,’ yum wont list any of the related packages. I don’t know why this is or how to fix it (or if you even want it fixed) — I simply didn’t investigate. Just know that you’ll have to manually execute the aforementioned statement. The ‘.x86_64′ might be redundant if libtool has already been installed. Make sure to install libtool-ltdl though!
Step two took me a while to figure out. Apparently PHP looks for the libltdl library only at (for x64 at least) /usr/lib64/libltdl.so. The symlink to this file is not included in the libtool packages (for what reason I don’t know — but apparently this has been true and been stumping people since early 2006[1]) so you’ll have to make it yourself. Execute:
[root@fe01 ~]# cd /usr/lib64 [root@fe01 lib64]# ln -s libltdl.so.3.1.4 libltdl.so
And that’s it. PHP should configure and compile without error. Well, without this particular error at least.
I hope the time you save reading this will make up for my wasted evening.
1 users resposed " Compiling PHP 5.2.6 / cannot find -lltdl "
Categorii
- Admin Side (157)
- Chestii care te scot din minti (37)
- From my heart (56)
- Fun Stuff (159)
- Funny videos (45)
- Games / Trailers / Reviews (33)
- Iran Crisis (73)
- Jurnal (4)
- Linux/Unix/BSD (7)
- Media / News (185)
- Microsoft windows training (1)
- Movie Trailers (21)
- Retardo World (1)
- Tech News (79)
- Tutorials - cPanel (26)
- Uncategorized (14)
A fost odata ...
- June 2008 (1)
- May 2008 (5)
- April 2008 (11)
- March 2008 (10)
- February 2008 (24)
- January 2008 (25)
- December 2007 (32)
- November 2007 (34)
- October 2007 (36)
- September 2007 (40)
- August 2007 (39)
- July 2007 (61)
- June 2007 (54)
- May 2007 (71)
- April 2007 (84)
- March 2007 (235)
- February 2007 (137)
Blogroll
- Adaam
- Ai Carte Ai Parte
- Andaa
- Ania
- ArhiBLOG
- Celebrity news
- Content mirroring
- Cultura - Boyarul
- Dmitry
- Educativ.RO
- FORUM 512KBPS
- Fulgerica
- Gogu Kaizer
- Groparu
- Hackers Blog
- Hypnotic Words
- IEBlog
- Jaxelos
- Lolisme
- Lywyu
- MarieJeanne
- Mile Carpenisan
- Mina
- Minte Creata
- Muzica
- N-are nume
- NGINXforums
- Papa Bun (yummy)
- Piticu` - cine altu` ?
- Programare Sociala
- psyBNC / IRC shells
- Scenarii
- Secure Mail
- SFRO
- Subiectiv
- Swamp
- Syncron
- Vis Urat
- waven
- WhiteWolf
- Xpertu
© 2008 by katmai - Unplugged, Unmatched, Unleashed | Hosted by Design-Services.Us









Au criticat ...