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"