When compiling php from source, some CentOS 64 bit users have reported getting an error like this:
Code:
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
- Verify that the libtool and libtool-ltdl packages are installed.
- Symlink libltdl.so to libltdl.so.x.x.x
Step one is easy.
Code:
[root@panama ~]# yum install libtool-ltdl.x86_64 libtool.x86_64
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:
Code:
[root@panama ~]# cd /usr/lib64
[root@panama 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.
I hope the time you save reading this will make up for my wasted evening.
http://forums.deftechgroup.com/showthread.php?t=3264
No comments:
Post a Comment