One of the php compilation problems

Source: Internet
Author: User
Cannotfind-lltdl, php compilation errors occur again in php make process usrbinldcannotfindlltdl error, detailed error:/usr/bin/ld: cannotfind-lltdlcollect2: ldreturned1exitstatusmake :***...

Cannot find-lltdl. An error occurred while compiling php.
The "usr bin ld cannot find lltdl" error occurs in php make. the detailed error is as follows:
/Usr/bin/ld: cannot find-lltdl
Collect2: ld returned 1 exit status
Make: *** [libphp5.la] Error 1
After searching on Google for a long time, I finally found the answer, which was originally caused by the "-with-mcrypt" option added during php editing. Therefore, the "usr bin ld cannot find lltdl" error solution is as follows:
1. if mcrypt is not required, remove this option when editing php, and then make and make install.
2. if you need mcrypt, you need to install libltdl
Libltdl is included in the libmcrypt package. the specific process is as follows:
# Cd/software/libmcrypt-2.5.8/libltdl
#./Configure-enable-ltdl-install
# Make
# Make install
At this time, a new problem occurs: 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
Cp: cannot stat 'ext/phar. phar ': No such file or directory appears.
 
So I: cd ext/phar/
Ls-l
No phar. phar file is found !! So I suspect it's phar. php,
Cp./phar. php./phar. phar
Make install
No problem !! Solve the problem !!

Author "Park Tree"

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.