|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-07-19 03:39 UTC] 447405878 at qq dot com
[2017-06-16 07:28 UTC] nlencebo at gmail dot com
[2021-02-01 10:15 UTC] muhammadazishusein at gmail dot com
[2021-06-24 09:36 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2021-06-24 09:36 UTC] cmb@php.net
[2021-07-04 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 06:00:02 2025 UTC |
Description: ------------ When trying to build extension mysqlnd using 'phpize', the follow error keeps popping up: configure: error: Cannot find OpenSSL's <evp.h> The cause of this is because after running the command 'phpize' the configure script has a variable (PHP_OPENSSL_DIR) that is not set "yes" PHP_OPENSSL_DIR is never initialized. So, the following code found on line 4332 never gets executed if test "$PHP_OPENSSL" = "yes" && test -x "$PKG_CONFIG" && \ $PKG_CONFIG --exists openssl; then ... # checks openssl version, and other stuff Test script: --------------- # download and extract latest PHP 7 code compile PHP using the following ./configure --prefix=$HOME/php7 make make install cd $HOME/php7 ln -s bin/php-config php-config ln -s bin/php php ln -s bin/phpize phpize cd the directory where PHP source code is cd ext cd mysqlnd # rename the configXX.m4 file to config.m4 phpize ./configure --with-php-config=$HOME/php7/php-config make Expected result: ---------------- The extension should be compiled and a shared object should be built and moved to the extension directory Actual result: -------------- ./configure returns an error