2016-05-04 10 views
1

Ubuntu 14.04 LTS Drupal 7.43 PHP 7.0Wie wechsele ich die Quelle von Memcache zu kompilieren und drush, um es zu aktivieren?

ich in anderen Beiträgen zu lesen:

I switched to the https://github.com/rlerdorf/php-memcached.git, then I can successfully build the extension. 

So wie auf den anderen git Repo schalte ich tatsächlich zu bauen?

Aufgrund von PHP 7.0 kann mein aktuelles Memcache nicht erstellt werden; Fehler unter:

sudo pecl install memcache 
... 
config.status: executing libtool commands 
running: make 
/bin/bash /tmp/pear/temp/pear-build-rootNtdeGS/memcache-2.2.7/libtool -- mode=compile cc -I/usr/include/php/20151012 -I. -I/tmp/pear/temp/memcache - DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootNtdeGS/memcache-2.2.7/include - I/tmp/pear/temp/pear-build-rootNtdeGS/memcache-2.2.7/main - I/tmp/pear/temp/memcache -I/usr/include/php/20151012 - I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM - I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext - I/usr/include/php/20151012/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c  /tmp/pear/temp/memcache/memcache.c -o memcache.lo 
libtool: compile: cc -I/usr/include/php/20151012 -I. - I/tmp/pear/temp/memcache -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootNtdeGS/memcache-2.2.7/include -I/tmp/pear/temp/pear-build-rootNtdeGS/memcache-2.2.7/main -I/tmp/pear/temp/memcache -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext - I/usr/include/php/20151012/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/memcache/memcache.c -fPIC -DPIC -o .libs/memcache.o 
/tmp/pear/temp/memcache/memcache.c:40:40: fatal error:  ext/standard/php_smart_str.h: No such file or directory 
#include "ext/standard/php_smart_str.h" 
            ^
compilation terminated. 
make: *** [memcache.lo] Error 1 
ERROR: `make' failed 

Antwort

0

Verwendung git clone: ​​

git clone https://github.com/rlerdorf/php-memcached.git

cd into folder

phpize

./configure

make

make install