Re: Fwd: Re: Error configuring 8.1.5 installation

From: Date: Thu, 21 Apr 2022 09:39:18 +0000
Subject: Re: Fwd: Re: Error configuring 8.1.5 installation
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-327964@lists.php.net to get a copy of this message
On 21.04.2022 at 03:20, John Iliffe wrote: > One thing that did occur to me was to grep "openssl" in the output stream from > ./configure and there is no reference until right at the end where it reports: > " > checking for openssl >= 1.0.2... no > configure: error: Package requirements (openssl >= 1.0.2) were not met: > > No package 'openssl' found > " You can check config.log for more details. > All of the other "checking for..." entries seem to be either yes or I would > expect the no answer that I get. The revised configuration file is: > > ./configure --prefix=/usr/php-8.1.5 --with-apxs2=/usr/apache-2.4.25/bin/apxs -- > enable-fpm --with-fpm-user=phpfpm --with-fpm-group=phpfpm --with-fpm-systemd -- > disable-short-tags --with-openssl=/usr/openssl-1.1.1n --with-openssl- > dir=/usr/openssl-1.1.1n --with-zlib --with-pgsql=/usr/postgres-9.6.2 --with-pear > --with-libxml=/usr/lib64 CFLAGS=" -I/usr/openssl-1.1.1n/include/openssl" > OPENSSL_LIBS="-ldl -L/usr/openssl-1.1.1n/lib -l:libssl.a -l:libcrypto.a" > > Is there any requirement for a specific order of parameters? Basically I used > the command from the previous successful install of php-7.2.9. I tried BOTH > include and include/openssl for the include path and it doesn't seem to make any > difference. The actual header files are on include/ssl. As of PHP 7.4.0, openssl relies on a properly configured pkg-config. As such, the path passed to --with-openssl is ignored; instead you need to set the environment variable PKG_CONFIG_PATH as needed for your system. If configure runs successfully, there should be no need to set CFLAGS and OPENSSL_LIBS. Also note that the PHP bugtracker is now at <https://github.com/php/php-src/issues> (<https://bugs.php.net/> has been mostly retired). -- Christoph M. Becker

« previous php.general (#327964) next »