Skip to main content

Installing memcache and memcached EA4 instructions

Comments

13 comments

  • SB-Nick
    Hello, Run: yum install cyrus-sasl-devel before the ./configure command
    0
  • Mangoose
    Hello, Run: yum install cyrus-sasl-devel before the ./configure command

    Thanks for posting but that did not (re)solve my issue
    checking whether libmemcached supports sasl... no configure: error: no, libmemcached sasl support is not enabled. Run configure with --disable-memcached-sasl to disable this check
    0
  • SB-Nick
    Did the package installation went through fine? If you don't need SASL support for memcache then you may want to configure it without it by running, ./configure --with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config --disable-memcached-sasl
    0
  • Mangoose
    Did the package installation went through fine?
    Yes it did only the SASL notification that struck me. But I am guessing I will not be needing it. Let's go forward to the next step.
    0
  • Mangoose
    NOPE BUMMER I am getting a lots of errors with the command
    make && make install
    0
  • Mangoose

    root@slideend [~/memcached-3.0.3]# make && make install /bin/sh /root/memcached-3.0.3/libtool --mode=compile cc -I/opt/cpanel/ea-php56/root/usr/include/php -I. -I/root/memcached-3.0.3 -DPHP_ATOM_INC -I/root/memcached-3.0.3/include -I/root/memcached-3.0.3/main -I/root/memcached-3.0.3 -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/local/include -c /root/memcached-3.0.3/php_memcached.c -o php_memcached.lo libtool: compile: cc -I/opt/cpanel/ea-php56/root/usr/include/php -I. -I/root/memcached-3.0.3 -DPHP_ATOM_INC -I/root/memcached-3.0.3/include -I/root/memcached-3.0.3/main -I/root/memcached-3.0.3 -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -I/opt/cpanel/ea-php56/root/usr/include/php -I/opt/cpanel/ea-php56/root/usr/include/php/main -I/opt/cpanel/ea-php56/root/usr/include/php/TSRM -I/opt/cpanel/ea-php56/root/usr/include/php/Zend -I/opt/cpanel/ea-php56/root/usr/include/php/ext -I/opt/cpanel/ea-php56/root/usr/include/php/ext/date/lib -I/usr/local/include -c /root/memcached-3.0.3/php_memcached.c -fPIC -DPIC -o .libs/php_memcached.o In file included from /root/memcached-3.0.3/php_memcached.c:24: /root/memcached-3.0.3/php_memcached.h:23:33: error: Zend/zend_smart_str.h: No such file or directory In file included from /root/memcached-3.0.3/php_memcached_private.h:28, from /root/memcached-3.0.3/php_memcached.c:25: /root/memcached-3.0.3/php_libmemcached_compat.h:23: error: expected declaration specifiers or "..." before "zend_string" In file included from /root/memcached-3.0.3/php_memcached.c:25: /root/memcached-3.0.3/php_memcached_private.h:44:43: error: ext/standard/php_smart_string.h: No such file or directory In file included from /root/memcached-3.0.3/php_memcached.c:25: /root/memcached-3.0.3/php_memcached_private.h:145: error: expected specifier-qualifier-list before "zend_long" /root/memcached-3.0.3/php_memcached_private.h:171: error: expected specifier-qualifier-list before "zend_long" /root/memcached-3.0.3/php_memcached_private.h:193: error: expected specifier-qualifier-list before "zend_long" structure or union /root/memcached-3.0.3/php_memcached.c:4101: error: "struct " has no member named "default_behavior" /root/memcached-3.0.3/php_memcached.c:4101: error: request for member "connect_timeout" in something not a structure or union /root/memcached-3.0.3/php_memcached.c: In function "zm_startup_memcached": /root/memcached-3.0.3/php_memcached.c:4362: error: "zend_object_handlers" has no member named "offset" /root/memcached-3.0.3/php_memcached.c:4364: error: "zend_object_handlers" has no member named "free_obj" /root/memcached-3.0.3/php_memcached.c:4370: warning: assignment from incompatible pointer type /root/memcached-3.0.3/php_memcached.c:4384: error: too few arguments to function "zend_register_internal_class_ex" /root/memcached-3.0.3/php_memcached.c:4384: warning: assignment from incompatible pointer type make: *** [php_memcached.lo] Error 1
    That is the mess I am getting just right after this
    make && make install
    0
  • SB-Nick
    I believe mm 3.0 it's not compatible with PHP 5.6, try installing 2.2.
    0
  • Mangoose
    I believe mm 3.0 it's not compatible with PHP 5.6, try installing 2.2.

    Bummer. How do reverse or undo the steps I have taken ?
    0
  • Nirjonadda
    @Mangoose, Please can you do try this thread: New Thread - Installing memcached with CentOS 7 (EasyApache4)
    0
  • Mangoose
    @Mangoose, Please can you do try this thread: New Thread - Installing memcached with CentOS 7 (EasyApache4)

    Looks okay but I am still on CentOS 6.8 not 7. Are you sure this works ? I am also using MultiPHP Manager in order to have one account work with PHP 7.0 and another with PHP 5.6. PS what do I do with the install I have done sofar ? Don;t I need to do a "rollback" ?
    0
  • SB-Nick
    The source compilation didn't success so you haven't installed anything yet, just follow the steps again but download the 2.2 version instead.
    0
  • cPanelMichael
    Hello @Mangoose, Were you able to complete the installation with the updated instructions? Thank you.
    0
  • Jack Hayhurst
    Unless you actually need SASL, or multiple memcached daemons, it's probably easier to just enable the ea4-experimental repository and install ea-memcached, ea-php56-memcached, and ea-php56-memcache (or whatever PHP version you need). If you enable the ea4-experimental repository, you can even find the PHP extensions in the EA4 cPanel interface.
    0

Please sign in to leave a comment.