phpfarm Wiki
Brought to you by:
cweiske
We list common PHP compilation error messages and their solution here.
configure: error: Cannot find MySQL header files under yes.
Debian 7:
$ apt-get install libmysqlclient-dev
/usr/bin/ld: cannot find -lltdl collect2: error: ld returned 1 exit status make: *** [sapi/cgi/php-cgi] Error 1 make failed.
Debian 7:
$ apt-get install libltdl-dev
Happens with 5.2.17 on Debian 7:
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto': ext/openssl/xp_ssl.c:357: undefined reference to `SSLv2_server_method' ext/openssl/xp_ssl.c:337: undefined reference to `SSLv2_client_method'
You need the patch from PHP bug #54736 here.
For the Mysql error: The make clean line in compile.sh is commented out, so if you compiled before installing the headers, you may need to go into the php source folder and manually make clean. (stackoverflow thread)