[php-src] Issue #11923: RHEL8 - cannot compile local PHP opcache -

From: Date: Wed, 09 Aug 2023 13:57:56 +0000
Subject: [php-src] Issue #11923: RHEL8 - cannot compile local PHP opcache -
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245140@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11923
Author: Sukhster70

From manual page: https://php.net/opcache.installation

---

What do l need to configure/ install on RHEL8 which allows the opcache to be compiled and be
enabled?

php-8.2.6.tar.gz

$ lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: RedHatEnterprise
Description:    Red Hat Enterprise Linux release 8.7 (Ootpa)
Release:        8.7
Codename:       Ootpa

CC="gcc -m64 " ./configure \
--with-apxs2=$APP_HOME/apps/apache2/bin/apxs \
--prefix="$APP_HOME/apps/${PHP_HOME}" \
--with-config-file-path=$APP_HOME/apps/apache2/conf \
--with-oci8=$ORACLE_HOME \
--with-pear=$APP_HOME/apps/${PHP_HOME}/lib/php \
--with-openssl=$APP_HOME/local \
--with-openssl-dir=$APP_HOME/local \
--with-libdir=/usr/local/lib64 \
--disable-rpath \
--disable-debug \
--enable-ftp \
--enable-mbstring \
--with-gettext \
--enable-opcache \
--with-zlib-dir=$APP_HOME/local \
--with-zlib=$APP_HOME/local \
--enable-simplexml \
--enable-calendar \
--enable-sockets \
--disable-phar \
--enable-shmop \
--enable-sysvsem \
--enable-sysvshm \
--enable-sysvmsg \
--disable-zend-signals \
--with-curl=$APP_HOME/local

checking for capstone >= 3.0.0... no
checking for opagent in default path... not found
checking for mprotect... yes
checking for sysvipc shared memory support... no
checking for mmap() using MAP_ANON shared memory support... no
checking for shm_open in -lrt... yes
checking for shm_open in -lroot... no
checking for __shm_open in -lroot... no
checking for mmap() using shm_open() shared memory support... no
configure: error: No supported shared memory caching support was found when configuring opcache.
Check config.log for any errors or missing dependencies.


Thread (1 message)

  • Sukhster70
« previous php.bugs (#245140) next »