php的编译问题之一_PHP教程

WBOY
发布: 2016-07-13 17:45:48
原创
998 人浏览过

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.bkjia.comtruehttp://www.bkjia.com/PHPjc/478647.htmlTechArticlecannot find -lltdl ,编译php又出错了 php在make过程中出现usr bin ld cannot find lltdl错误,详细错误如下: /usr/bin/ld: cannot find -lltdl collect2: ld returned...
相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!