One of PHP's compilation problems _php tutorial

Source: Internet
Author: User
Tags mcrypt
Cannot Find-lltdl, compile PHP and make a mistake.
php "usr bin ld cannot find Lltdl" error occurred during the make process, with detailed errors as follows:
/usr/bin/ld:cannot Find-lltdl
Collect2:ld returned 1 exit status
Make: * * * [libphp5.la] Error 1
Search on Google for a long time, finally found the answer, originally in the editing of PHP added "–with-mcrypt" option caused. So the "USR bin ld cannot find Lltdl" error is resolved as follows:
1, if you do not need mcrypt, then edit php to remove the option, and then make, do install.
2, if need mcrypt, then need to install Libltdl
Libltdl in the Libmcrypt software package, the specific process:
#cd/software/libmcrypt-2.5.8/libltdl
#./configure–enable-ltdl-install
#make
#make Install
This time there's a new problem. Erroe:while loading Shared LIBRARIES:LIBLTDL.S,: Cannot open shared object File:no such file or directory
Then I have
#ln-S/usr/lib/libltdl.so/usr/lib/libltdl.so.3
Make install
Appeared cp:cannot stat ' Ext/phar/phar.phar ': No such file or directory

So I also: CD ext/phar/
Ls-l
The results found no Phar.phar this file!! So I suspect it was phar.php,
CP./phar.php./phar.phar
Make install
No more questions!! Problem solved!!

Author "Park Tree"

http://www.bkjia.com/PHPjc/478647.html www.bkjia.com true http://www.bkjia.com/PHPjc/478647.html techarticle cannot Find-lltdl, compile PHP again error PHP in the make process appears usr bin ld cannot find Lltdl error, detailed error is as follows:/usr/bin/ld:cannot Find-lltdl Coll Ect2:ld returned ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.