Announcement

Collapse
No announcement yet.

Error Installing APCu module

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error Installing APCu module

    Hi,

    Installing on a cPanel APCu module to alt-php74 it shows this error:

    > In file included from /root/tmp/pear/apcu/apc_iterator.h:26:0,
    > from /root/tmp/pear/apcu/php_apc.c:34:
    > /opt/alt/php74/usr/include/php/ext/pcre/php_pcre.h:25:19: fatal error: pcre2.h: No such file or dire
    > ctory
    > #include "pcre2.h"
    > ^
    > compilation terminated.
    > make: *** [php_apc.lo] Error 1
    > ERROR: `make failed

    If i try alt-php73 it works.

    when searching for the files i see that this is missing:
    /opt/alt/php74/usr/include/php/ext/pcre/pcre2lib
    But it exists in alt-php73

    Is this a bug?

    Or, how can i activate APCu on alt-php74?

    Thanks

  • #2
    Howdy Nuno,

    This happens when you try and build from source on top of an RPM package. Youre going to need some of the "devel" named RPM packages that will let you compile on top of them. In your case, its likely ea-php74-php-devel.x86_64, and my guess is alt-pcre-devel.x86_64 too. You should be able to install both in yum. After that, make clean and try to make again.

    Thanks!

    Comment

    Working...
    X