2016-05-04 3 views
1

のUbuntu 14.04 LTS のDrupal 7.43 PHP 7.0memcacheのソースをコンパイルしてdrushを有効にするにはどうすればよいですか?

私は他の記事で読む:

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

は、どのように私は実際に構築するために他のgitリポジトリに切り替えるのですか?

php 7.0のため、私の現在のmemcacheはビルドできません。エラー以下:

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 

答えて

0

使用gitのクローン:

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

cd into folder

phpize

./configure

make

make install

関連する問題