编译PHP5时提示
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
安装
yum install libtool-ltdl
yum install libtool-ltdl-devel
就可以了.
[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.4 (Final)
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x8
6_64 x86_64 x86_64 GNU/Linux
php-5.2.12
在用yum安装libtool-ltdl-devel后编译php-5.2.12提示下如
/usr/lib/libltdl.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
安装php-5.2.13没问题
----------------------------------
yum install libpng
configure: error: libjpeg.(a|so) not found
ln -sf libjpeg.so.62.0.0 libjpeg.so
configure: error: libpng.(a|so) not found.
yum install libpng-devel