New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Error building php-fpm73 with memcached

Started by lecter23, December 20, 2018, 12:32:50 PM

Previous topic - Next topic

lecter23

Hello.

FPM builds successfully and it's working with all options but memcached (not available). Reading the build log, I found this:

cc -I/opt/alt/php-fpm73/usr/include/php -I. -I/usr/local/src/php-memcached -DPHP_ATOM_INC -I/usr/local/src/php-memcached/include -I/usr/local/src/php-memcached/main -I/usr/local/src/php-memcached -I/opt/alt/php-fpm73/usr/include/php -I/opt/alt/php-fpm73/usr/include/php/main -I/opt/alt/php-fpm73/usr/include/php/TSRM -I/opt/alt/php-fpm73/usr/include/php/Zend -I/opt/alt/php-fpm73/usr/include/php/ext -I/opt/alt/php-fpm73/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -I/opt/alt/php-fpm73/usr/include/php -I/opt/alt/php-fpm73/usr/include/php/main -I/opt/alt/php-fpm73/usr/include/php/TSRM -I/opt/alt/php-fpm73/usr/include/php/Zend -I/opt/alt/php-fpm73/usr/include/php/ext -I/opt/alt/php-fpm73/usr/include/php/ext/date/lib -I/usr/local/include -c /usr/local/src/php-memcached/php_memcached.c  -fPIC -DPIC -o .libs/php_memcached.o
/usr/local/src/php-memcached/php_memcached.c: In function 'zim_Memcached___construct':
/usr/local/src/php-memcached/php_memcached.c:1282:20: error: lvalue required as left operand of assignment
   GC_REFCOUNT(&le) = 1;
                    ^
make: *** [php_memcached.lo] Error 1


And after that build continues without memcached module. Any clue?

Thanks in advance :)

lecter23

I reply to myself: libmemcached is still not available for php 7.3 :(

brenlow

I'm not sure if this is acceptable, but I manually compiled PHP 7.3.3. I forgot a few modules I needed, later installed them from remi and then copied to the appropriate path for my compiled version. I finally had to edit php.ini to enable the extensions.

I'd really like to hear how others are dealing with this. PHP 5.6 is not appropriate for me.

Thanks, Bren


Automata

PROBLEM SOLVED

Hi, i discovered a great website https://www.mysterydata.com/ with a great administrator where you can find many guides for CWP and more, also by registering for free on the forum i found the solution to this problem thanks to the courtesy and extreme availability of the administrator.

SOLUTION:

https://forum.mysterydata.com/topic/4/cwp-help-to-install-memcached

Good day and good work to all !


« Stay hungry, stay foolish. »