Installing memcache and memcached EA4 instructions

Mangoose

Active Member
Aug 5, 2014
32
0
6
cPanel Access Level
Root Administrator
I have been following the instructions as layout in this thread

Installing memcache and memcached with EasyApache4

However in the instructions given previously by cPGeoffs/Cpanel TA I am stuck in the first part of the process where he/she instructs to download the PECL Memcached extension:

Code:
./configure --with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config
I get the following response from the command line (logged in as root)

Code:
configure: error: no, sasl.h is not available. Run configure with --disable-memcached-sasl to disable this check
And I cannot or dare not to go ahead with the next instruction

Code:
make &&& make install
PS

there more questions that might come after this point but let's wait untill some of the specialists here can point me in right direction.
 

Mangoose

Active Member
Aug 5, 2014
32
0
6
cPanel Access Level
Root Administrator
Hello,

Run:
yum install cyrus-sasl-devel

before the ./configure command
Thanks for posting but that did not (re)solve my issue

Code:
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
 

SB-Nick

Well-Known Member
Aug 26, 2008
175
9
68
cPanel Access Level
Root Administrator
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
 

Mangoose

Active Member
Aug 5, 2014
32
0
6
cPanel Access Level
Root Administrator
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.
 

Mangoose

Active Member
Aug 5, 2014
32
0
6
cPanel Access Level
Root Administrator
NOPE BUMMER

I am getting a lots of errors with the command

Code:
make && make install
 

Mangoose

Active Member
Aug 5, 2014
32
0
6
cPanel Access Level
Root Administrator
Code:
[email protected] [~/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 <anonymous>’ 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

Code:
make && make install
 

Mangoose

Active Member
Aug 5, 2014
32
0
6
cPanel Access Level
Root Administrator

SB-Nick

Well-Known Member
Aug 26, 2008
175
9
68
cPanel Access Level
Root Administrator
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello @Mangoose,

Were you able to complete the installation with the updated instructions?

Thank you.
 

Jack Hayhurst

Member
PartnerNOC
Aug 18, 2011
7
4
53
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.
 
  • Like
Reactions: cPanelMichael