php的编译问题之一_PHP教程

WBOY
Libérer: 2016-07-13 17:45:48
original
998 Les gens l'ont consulté

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...
Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!