ID: 43585 Updated by: [EMAIL PROTECTED] Reported By: michael_palmer at trend dot com dot tw -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: RHEL 4 (64-bit) PHP Version: 5.2.5 New Comment:
>--with-openssl=/usr/include/openssl /usr/include/openssl is not a prefix of OpenSSL installation. /usr is. Previous Comments: ------------------------------------------------------------------------ [2007-12-13 02:58:17] michael_palmer at trend dot com dot tw Description: ------------ When compiling PHP on RHEL4 (64-bit) with FreeTDS, SOAP, OpenSSL and cURL, originally this "configure" command worked: > ./configure --with-apxs2=/usr/sbin/apxs --with-mssql=/usr/local/freetds --enable-soap --with-openssl --with-curl However, this time, when trying to upgrade from 5.1.6 to 5.2.5, the command did not work and we got this error: configure: error: Cannot find OpenSSL's libraries We tried again by specifying OpenSSL's path: > ./configure --with-apxs2=/usr/sbin/apxs -with-mssql=/usr/local/freetds --enable-soap --with-openssl=/usr/include/openssl --with-curl This time a different error: configure: error: Cannot find OpenSSL's <evp.h> 3 Finally, the following solution worked: > up2date openssl > up2date openssl-devel > up2date curl-devel > cd /usr/local/src/php-5.2.5 > vi configure On line 21380, modified the string to: "OPENSSL_INCDIR=$i/include/openssl" > cd /usr/local/freetds > ln -s lib lib64 > ./configure --with-apxs2=/usr/sbin/apxs --with-mssql=/usr/local/freetds --enable-soap --with-openssl --with-curl --with-libdir=lib64 Reproduce code: --------------- ./configure --with-apxs2=/usr/sbin/apxs --with-mssql=/usr/local/freetds --enable-soap --with-openssl --with-curl ./configure --with-apxs2=/usr/sbin/apxs -with-mssql=/usr/local/freetds --enable-soap --with-openssl=/usr/include/openssl --with-curl Expected result: ---------------- Successful linking, "Thank you for using PHP" message Actual result: -------------- configure: error: Cannot find OpenSSL's libraries and then: configure: error: Cannot find OpenSSL's <evp.h> 3 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43585&edit=1