PHP头条
热点:

php的编译问题之一


cannot find -lltdl ,编译php又出错了
php在make过程中出现“usr bin ld cannot find lltdl”错误,详细错误如下:
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
在Google上搜了好久,终于找到答案,原来是在编辑php时添加的“–with-mcrypt”选项造成。所以“usr bin ld cannot find lltdl”错误解决办法如下:
1、如果不需要mcrypt,那么编辑php时去掉该选项,然后再make、make install。
2、如果需要mcrypt,那么需要安装libltdl
libltdl在libmcrypt软件包中就有,具体过程:
#cd /software/libmcrypt-2.5.8/libltdl
#./configure –enable-ltdl-install
#make
#make install
这个时候又出现了新的问题erroe:while loading shared libraries: libltdl.s,: cannot open shared object file: No such file or directory
然后我有
#ln -s /usr/lib/libltdl.so /usr/lib/libltdl.so.3
make install
出现了cp: cannot stat `ext/phar/phar.phar': No such file or directory
 
于是我又: cd  ext/phar/
ls -l
结果发现没有phar.phar 这个文件!!于是我怀疑是phar.php ,
cp ./phar.php  ./phar.phar
make install
没有问题了呀!!问题解决呀!!

作者“朴树”

www.phpzy.comtrue/phprm/21033.htmlTechArticlephp的编译问题之一 cannot find -lltdl ,编译php又出错了 php在make过程中出现usr bin ld cannot find lltdl错误,详细错误如下: /usr/bin/ld: cannot find -lltdl collect2: ld returned 1 exit status make: *** [libphp5.la...

相关文章

    暂无相关文章

PHP之友评论

今天推荐