ubuntu18.04安装memcache

[email protected]:~/Downloads$ tar -zxvf memcache
memcache-3.0.8.tgz memcached-3.1.3.tgz
[email protected]:~/Downloads$ tar -zxvf memcache-3.0.8.tgz
package.xml
memcache-3.0.8/config.m4
memcache-3.0.8/config9.m4
memcache-3.0.8/config.w32
memcache-3.0.8/CREDITS
memcache-3.0.8/LICENSE
memcache-3.0.8/example.php
memcache-3.0.8/memcache.c
memcache-3.0.8/memcache_pool.c
memcache-3.0.8/memcache_queue.c
memcache-3.0.8/memcache_session.c
memcache-3.0.8/memcache_ascii_protocol.c
memcache-3.0.8/memcache_binary_protocol.c
memcache-3.0.8/memcache_standard_hash.c
memcache-3.0.8/memcache_consistent_hash.c
memcache-3.0.8/memcache.dsp
memcache-3.0.8/php_memcache.h
memcache-3.0.8/memcache_pool.h
memcache-3.0.8/memcache_queue.h
memcache-3.0.8/README
memcache-3.0.8/memcache.php
memcache-3.0.8/tests/001.phpt
memcache-3.0.8/tests/002.phpt
memcache-3.0.8/tests/003.phpt
memcache-3.0.8/tests/004.phpt
memcache-3.0.8/tests/005.phpt
memcache-3.0.8/tests/006.phpt
memcache-3.0.8/tests/007.phpt
memcache-3.0.8/tests/008.phpt
memcache-3.0.8/tests/009.phpt
memcache-3.0.8/tests/010.phpt
memcache-3.0.8/tests/011.phpt
memcache-3.0.8/tests/012.phpt
memcache-3.0.8/tests/013.phpt
memcache-3.0.8/tests/014.phpt
memcache-3.0.8/tests/015.phpt
memcache-3.0.8/tests/016.phpt
memcache-3.0.8/tests/017.phpt
memcache-3.0.8/tests/018.phpt
memcache-3.0.8/tests/019a.phpt
memcache-3.0.8/tests/019.phpt
memcache-3.0.8/tests/020.phpt
memcache-3.0.8/tests/021.phpt
memcache-3.0.8/tests/022a.phpt
memcache-3.0.8/tests/022.phpt
memcache-3.0.8/tests/023.phpt
memcache-3.0.8/tests/024a.phpt
memcache-3.0.8/tests/024.phpt
memcache-3.0.8/tests/025.phpt
memcache-3.0.8/tests/026.phpt
memcache-3.0.8/tests/027a.phpt
memcache-3.0.8/tests/027.phpt
memcache-3.0.8/tests/028.phpt
memcache-3.0.8/tests/029.phpt
memcache-3.0.8/tests/030.phpt
memcache-3.0.8/tests/031.phpt
memcache-3.0.8/tests/032.phpt
memcache-3.0.8/tests/033.phpt
memcache-3.0.8/tests/034.phpt
memcache-3.0.8/tests/035.phpt
memcache-3.0.8/tests/036.phpt
memcache-3.0.8/tests/037.phpt
memcache-3.0.8/tests/038.phpt
memcache-3.0.8/tests/039.phpt
memcache-3.0.8/tests/040.phpt
memcache-3.0.8/tests/041.phpt
memcache-3.0.8/tests/042.phpt
memcache-3.0.8/tests/043.phpt
memcache-3.0.8/tests/044.phpt
memcache-3.0.8/tests/045.phpt
memcache-3.0.8/tests/046.phpt
memcache-3.0.8/tests/047.phpt
memcache-3.0.8/tests/048.phpt
memcache-3.0.8/tests/049.phpt
memcache-3.0.8/tests/050.phpt
memcache-3.0.8/tests/051.phpt
memcache-3.0.8/tests/052.phpt
memcache-3.0.8/tests/053.phpt
memcache-3.0.8/tests/054.phpt
memcache-3.0.8/tests/055.phpt
memcache-3.0.8/tests/056.phpt
memcache-3.0.8/tests/057.phpt
memcache-3.0.8/tests/058.phpt
memcache-3.0.8/tests/100a.phpt
memcache-3.0.8/tests/100b.phpt
memcache-3.0.8/tests/100.phpt
memcache-3.0.8/tests/pecl11221.phpt
memcache-3.0.8/tests/pecl16442.phpt
memcache-3.0.8/tests/pecl16536.phpt
memcache-3.0.8/tests/pecl17518.phpt
memcache-3.0.8/tests/pecl17566.phpt
memcache-3.0.8/tests/pecl63142.phpt
[email protected]:~/Downloads$ tar -zxvf memcached-3.1.3.tgz
package.xml
memcached-3.1.3/tests/skipif.inc
memcached-3.1.3/tests/001.phpt
memcached-3.1.3/tests/version.phpt
memcached-3.1.3/tests/bug_16084.phpt
memcached-3.1.3/tests/bug_16959.phpt
memcached-3.1.3/tests/bug_17137.phpt
memcached-3.1.3/tests/bug_18639.phpt
memcached-3.1.3/tests/callback_exception.phpt
memcached-3.1.3/tests/callback_exception_2.phpt
memcached-3.1.3/tests/cas.phpt
memcached-3.1.3/tests/cas_multi.phpt
memcached-3.1.3/tests/check_if_persistent.phpt
memcached-3.1.3/tests/check_if_pristine.phpt
memcached-3.1.3/tests/clone.phpt
memcached-3.1.3/tests/compression_conditions.phpt
memcached-3.1.3/tests/compression_types.phpt
memcached-3.1.3/tests/conf_persist.phpt
memcached-3.1.3/tests/construct.phpt
memcached-3.1.3/tests/construct_persistent.phpt
memcached-3.1.3/tests/deleted.phpt
memcached-3.1.3/tests/deletemulti.phpt
memcached-3.1.3/tests/deletemultitypes.phpt
memcached-3.1.3/tests/expire.phpt
memcached-3.1.3/tests/flush_buffers.phpt
memcached-3.1.3/tests/getdelayed.phpt
memcached-3.1.3/tests/getserverlist.phpt
memcached-3.1.3/tests/gh_21.phpt
memcached-3.1.3/tests/gh_77.phpt
memcached-3.1.3/tests/gh_90.phpt
memcached-3.1.3/tests/invoke_callback.phpt
memcached-3.1.3/tests/invoke_callback_2.phpt
memcached-3.1.3/tests/invoke_callback_twice.phpt
memcached-3.1.3/tests/localserver.phpt
memcached-3.1.3/tests/multi_order.phpt
memcached-3.1.3/tests/no-not-found.phpt
memcached-3.1.3/tests/options.phpt
memcached-3.1.3/tests/pr_75.phpt
memcached-3.1.3/tests/rescode.phpt
memcached-3.1.3/tests/session_badconf_emptyprefix.phpt
memcached-3.1.3/tests/session_badconf_locktime.phpt
memcached-3.1.3/tests/session_badconf_persistent.phpt
memcached-3.1.3/tests/session_badconf_prefix.phpt
memcached-3.1.3/tests/session_badconf_servers.phpt
memcached-3.1.3/tests/session_badconf_servers-php72.phpt
memcached-3.1.3/tests/session_basic.phpt
memcached-3.1.3/tests/session_basic2.phpt
memcached-3.1.3/tests/session_basic3.phpt
memcached-3.1.3/tests/session_persistent.phpt
memcached-3.1.3/tests/set_large.phpt
memcached-3.1.3/tests/setoptions.phpt
memcached-3.1.3/tests/touch_binary.phpt
memcached-3.1.3/tests/types.inc
memcached-3.1.3/tests/types_igbinary.phpt
memcached-3.1.3/tests/types_igbinary_multi.phpt
memcached-3.1.3/tests/types_json.phpt
memcached-3.1.3/tests/types_json_multi.phpt
memcached-3.1.3/tests/types_msgpack.phpt
memcached-3.1.3/tests/types_msgpack_multi.phpt
memcached-3.1.3/tests/types_php.phpt
memcached-3.1.3/tests/types_php_multi.phpt
memcached-3.1.3/tests/undefined_set.phpt
memcached-3.1.3/tests/vbucket.phpt
memcached-3.1.3/tests/user-flags.phpt
memcached-3.1.3/tests/gh_93.phpt
memcached-3.1.3/tests/add.phpt
memcached-3.1.3/tests/bad_construct.phpt
memcached-3.1.3/tests/append.phpt
memcached-3.1.3/tests/prepend.phpt
memcached-3.1.3/tests/replace.phpt
memcached-3.1.3/tests/getmulti.phpt
memcached-3.1.3/tests/setmulti.phpt
memcached-3.1.3/tests/cachecallback.phpt
memcached-3.1.3/tests/incrdecr.phpt
memcached-3.1.3/tests/incrdecr_64.phpt
memcached-3.1.3/tests/incrdecr_initial.phpt
memcached-3.1.3/tests/incrdecr_invalid_key.phpt
memcached-3.1.3/tests/incrdecr_bykey.phpt
memcached-3.1.3/tests/invalid_options.phpt
memcached-3.1.3/tests/keys_ascii.phpt
memcached-3.1.3/tests/keys_binary.phpt
memcached-3.1.3/tests/testdata.res
memcached-3.1.3/tests/config.inc
memcached-3.1.3/tests/sasl_basic.phpt
memcached-3.1.3/tests/set_encoding_key.phpt
memcached-3.1.3/tests/set_encoding_key2.phpt
memcached-3.1.3/tests/getserverbykey.phpt
memcached-3.1.3/tests/gh_155.phpt
memcached-3.1.3/tests/get_flags.phpt
memcached-3.1.3/tests/session_lock.phpt
memcached-3.1.3/tests/session_lazy_warning.phpt
memcached-3.1.3/tests/session_regenerate.phpt
memcached-3.1.3/tests/stats.phpt
memcached-3.1.3/tests/stats_hang.phpt
memcached-3.1.3/tests/default_behavior.phpt
memcached-3.1.3/tests/reset_keyprefix.phpt
memcached-3.1.3/tests/session_lock-php71.phpt
memcached-3.1.3/README.markdown
memcached-3.1.3/CREDITS
memcached-3.1.3/LICENSE
memcached-3.1.3/ChangeLog
memcached-3.1.3/memcached-api.php
memcached-3.1.3/memcached.ini
memcached-3.1.3/fastlz/LICENSE
memcached-3.1.3/config.m4
memcached-3.1.3/config.w32
memcached-3.1.3/php_memcached.c
memcached-3.1.3/php_memcached.h
memcached-3.1.3/php_memcached_private.h
memcached-3.1.3/php_memcached_session.c
memcached-3.1.3/php_memcached_session.h
memcached-3.1.3/php_libmemcached_compat.h
memcached-3.1.3/php_libmemcached_compat.c
memcached-3.1.3/php_memcached_server.h
memcached-3.1.3/php_memcached_server.c
memcached-3.1.3/g_fmt.c
memcached-3.1.3/g_fmt.h
memcached-3.1.3/fastlz/fastlz.c
memcached-3.1.3/fastlz/fastlz.h
[email protected]:~/Downloads$ cd memcache-3.0.8/
[email protected]:~/Downloads/memcache-3.0.8$ ls
config9.m4 memcache_binary_protocol.c memcache_queue.c
config.m4 memcache.c memcache_queue.h
config.w32 memcache_consistent_hash.c memcache_session.c
CREDITS memcache.dsp memcache_standard_hash.c
example.php memcache.php php_memcache.h
LICENSE memcache_pool.c README
memcache_ascii_protocol.c memcache_pool.h tests
[email protected]:~/Downloads/memcache-3.0.8$ /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20160303
Zend Module Api No: 20160303
Zend Extension Api No: 320160303
[email protected]:~/Downloads/memcache-3.0.8$ ./configure
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for a sed that does not truncate output… /bin/sed
checking for cc… cc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether cc accepts -g… yes
checking for cc option to accept ISO C89… none needed
checking how to run the C preprocessor… cc -E
checking for icc… no
checking for suncc… no
checking whether cc understands -c and -o together… yes
checking for system library directory… lib
checking if compiler supports -R… no
checking if compiler supports -Wl,-rpath,… yes
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking target system type… x86_64-unknown-linux-gnu
checking for PHP prefix… /usr/local/php
checking for PHP includes… -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory… /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303
checking for PHP installed headers prefix… /usr/local/php/include/php
checking if debug is enabled… no
checking if zts is enabled… no
checking for re2c… no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk… no
checking for nawk… nawk
checking if nawk is broken… no
checking whether to enable memcache support… yes, shared
checking whether to enable memcache session handler support… yes
checking for the location of ZLIB… no
checking for the location of zlib… /usr
checking for session includes… /usr/local/php/include/php
checking for memcache session support… enabled
checking for ld used by cc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for /usr/bin/ld option to reload object files… -r
checking for BSD-compatible nm… /usr/bin/nm -B
checking whether ln -s works… yes
checking how to recognize dependent libraries… pass_all
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking dlfcn.h usability… yes
checking dlfcn.h presence… yes
checking for dlfcn.h… yes
checking the maximum length of command line arguments… 1572864
checking command to parse /usr/bin/nm -B output from cc object… ok
checking for objdir… .libs
checking for ar… ar
checking for ranlib… ranlib
checking for strip… strip
checking if cc supports -fno-rtti -fno-exceptions… no
checking for cc option to produce PIC… -fPIC
checking if cc PIC flag -fPIC works… yes
checking if cc static flag -static works… yes
checking if cc supports -c -o file.o… yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… no

creating libtool
appending configuration tag “CXX” to libtool
configure: creating ./config.status
config.status: creating config.h
[email protected]:~/Downloads/memcache-3.0.8$ ./configure –enable-memcache –with-php-config=/usr/lo^C
[email protected]:~/Downloads/memcache-3.0.8$ /usr/local/php/bin/php-c
php-cgi php-config
[email protected]:~/Downloads/memcache-3.0.8$ /usr/local/php/bin/php-c
php-cgi php-config
[email protected]:~/Downloads/memcache-3.0.8$ /usr/local/php/bin/php-config^C
[email protected]:~/Downloads/memcache-3.0.8$ ./configure –enable-memcache –with-php-config=/usr/local/php/bin/php-config –with-zlib-dir
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for a sed that does not truncate output… /bin/sed
checking for cc… cc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether cc accepts -g… yes
checking for cc option to accept ISO C89… none needed
checking how to run the C preprocessor… cc -E
checking for icc… no
checking for suncc… no
checking whether cc understands -c and -o together… yes
checking for system library directory… lib
checking if compiler supports -R… no
checking if compiler supports -Wl,-rpath,… yes
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking target system type… x86_64-unknown-linux-gnu
checking for PHP prefix… /usr/local/php
checking for PHP includes… -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory… /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303
checking for PHP installed headers prefix… /usr/local/php/include/php
checking if debug is enabled… no
checking if zts is enabled… no
checking for re2c… no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk… no
checking for nawk… nawk
checking if nawk is broken… no
checking whether to enable memcache support… yes, shared
checking whether to enable memcache session handler support… yes
checking for the location of ZLIB… yes
checking for the location of zlib… /usr
checking for session includes… /usr/local/php/include/php
checking for memcache session support… enabled
checking for ld used by cc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for /usr/bin/ld option to reload object files… -r
checking for BSD-compatible nm… /usr/bin/nm -B
checking whether ln -s works… yes
checking how to recognize dependent libraries… pass_all
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking dlfcn.h usability… yes
checking dlfcn.h presence… yes
checking for dlfcn.h… yes
checking the maximum length of command line arguments… 1572864
checking command to parse /usr/bin/nm -B output from cc object… ok
checking for objdir… .libs
checking for ar… ar
checking for ranlib… ranlib
checking for strip… strip
checking if cc supports -fno-rtti -fno-exceptions… no
checking for cc option to produce PIC… -fPIC
checking if cc PIC flag -fPIC works… yes
checking if cc static flag -static works… yes
checking if cc supports -c -o file.o… yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… no

creating libtool
appending configuration tag “CXX” to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
[email protected]:~/Downloads/memcache-3.0.8$ make -j2
/bin/bash /home/naodai/Downloads/memcache-3.0.8/libtool –mode=compile cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/memcache-3.0.8 -DPHP_ATOM_INC -I/home/naodai/Downloads/memcache-3.0.8/include -I/home/naodai/Downloads/memcache-3.0.8/main -I/home/naodai/Downloads/memcache-3.0.8 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/memcache-3.0.8/memcache.c -o memcache.lo
/bin/bash /home/naodai/Downloads/memcache-3.0.8/libtool –mode=compile cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/memcache-3.0.8 -DPHP_ATOM_INC -I/home/naodai/Downloads/memcache-3.0.8/include -I/home/naodai/Downloads/memcache-3.0.8/main -I/home/naodai/Downloads/memcache-3.0.8 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/memcache-3.0.8/memcache_pool.c -o memcache_pool.lo
mkdir .libs
cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/memcache-3.0.8 -DPHP_ATOM_INC -I/home/naodai/Downloads/memcache-3.0.8/include -I/home/naodai/Downloads/memcache-3.0.8/main -I/home/naodai/Downloads/memcache-3.0.8 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/memcache-3.0.8/memcache.c -fPIC -DPIC -o .libs/memcache.o
cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/memcache-3.0.8 -DPHP_ATOM_INC -I/home/naodai/Downloads/memcache-3.0.8/include -I/home/naodai/Downloads/memcache-3.0.8/main -I/home/naodai/Downloads/memcache-3.0.8 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/memcache-3.0.8/memcache_pool.c -fPIC -DPIC -o .libs/memcache_pool.o
In file included from /home/naodai/Downloads/memcache-3.0.8/php_memcache.h:34:0,
from /home/naodai/Downloads/memcache-3.0.8/memcache.c:30:
/home/naodai/Downloads/memcache-3.0.8/memcache_pool.h:45:10: fatal error: ext/standard/php_smart_str_public.h: No such file or directory
#include “ext/standard/php_smart_str_public.h”
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:193: recipe for target ‘memcache.lo’ failed
make: *** [memcache.lo] Error 1
make: *** Waiting for unfinished jobs….
/home/naodai/Downloads/memcache-3.0.8/memcache_pool.c:38:10: fatal error: ext/standard/php_smart_str.h: No such file or directory
#include “ext/standard/php_smart_str.h”
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:195: recipe for target ‘memcache_pool.lo’ failed
make: *** [memcache_pool.lo] Error 1
[email protected]:~/Downloads/memcache-3.0.8$
[email protected]:~/Downloads/memcache-3.0.8$
[email protected]:~/Downloads/memcache-3.0.8$
[email protected]:~/Downloads/memcache-3.0.8$ /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20160303
Zend Module Api No: 20160303
Zend Extension Api No: 320160303
[email protected]:~/Downloads/memcache-3.0.8$ ./configure –enable-memcache –with-php-config=/usr/local/php/bin/php-config –with-zlib-dir
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for a sed that does not truncate output… /bin/sed
checking for cc… cc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether cc accepts -g… yes
checking for cc option to accept ISO C89… none needed
checking how to run the C preprocessor… cc -E
checking for icc… no
checking for suncc… no
checking whether cc understands -c and -o together… yes
checking for system library directory… lib
checking if compiler supports -R… no
checking if compiler supports -Wl,-rpath,… yes
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking target system type… x86_64-unknown-linux-gnu
checking for PHP prefix… /usr/local/php
checking for PHP includes… -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory… /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303
checking for PHP installed headers prefix… /usr/local/php/include/php
checking if debug is enabled… no
checking if zts is enabled… no
checking for re2c… no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk… no
checking for nawk… nawk
checking if nawk is broken… no
checking whether to enable memcache support… yes, shared
checking whether to enable memcache session handler support… yes
checking for the location of ZLIB… yes
checking for the location of zlib… /usr
checking for session includes… /usr/local/php/include/php
checking for memcache session support… enabled
checking for ld used by cc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for /usr/bin/ld option to reload object files… -r
checking for BSD-compatible nm… /usr/bin/nm -B
checking whether ln -s works… yes
checking how to recognize dependent libraries… pass_all
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking dlfcn.h usability… yes
checking dlfcn.h presence… yes
checking for dlfcn.h… yes
checking the maximum length of command line arguments… 1572864
checking command to parse /usr/bin/nm -B output from cc object… ok
checking for objdir… .libs
checking for ar… ar
checking for ranlib… ranlib
checking for strip… strip
checking if cc supports -fno-rtti -fno-exceptions… no
checking for cc option to produce PIC… -fPIC
checking if cc PIC flag -fPIC works… yes
checking if cc static flag -static works… yes
checking if cc supports -c -o file.o… yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… no

creating libtool
appending configuration tag “CXX” to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
[email protected]:~/Downloads/memcache-3.0.8$ cd ..
[email protected]:~/Downloads$ rm -rf memcache-3.0.8
[email protected]:~/Downloads$ tar -zxvf memcache-3.0.8.tgz
package.xml
memcache-3.0.8/config.m4
memcache-3.0.8/config9.m4
memcache-3.0.8/config.w32
memcache-3.0.8/CREDITS
memcache-3.0.8/LICENSE
memcache-3.0.8/example.php
memcache-3.0.8/memcache.c
memcache-3.0.8/memcache_pool.c
memcache-3.0.8/memcache_queue.c
memcache-3.0.8/memcache_session.c
memcache-3.0.8/memcache_ascii_protocol.c
memcache-3.0.8/memcache_binary_protocol.c
memcache-3.0.8/memcache_standard_hash.c
memcache-3.0.8/memcache_consistent_hash.c
memcache-3.0.8/memcache.dsp
memcache-3.0.8/php_memcache.h
memcache-3.0.8/memcache_pool.h
memcache-3.0.8/memcache_queue.h
memcache-3.0.8/README
memcache-3.0.8/memcache.php
memcache-3.0.8/tests/001.phpt
memcache-3.0.8/tests/002.phpt
memcache-3.0.8/tests/003.phpt
memcache-3.0.8/tests/004.phpt
memcache-3.0.8/tests/005.phpt
memcache-3.0.8/tests/006.phpt
memcache-3.0.8/tests/007.phpt
memcache-3.0.8/tests/008.phpt
memcache-3.0.8/tests/009.phpt
memcache-3.0.8/tests/010.phpt
memcache-3.0.8/tests/011.phpt
memcache-3.0.8/tests/012.phpt
memcache-3.0.8/tests/013.phpt
memcache-3.0.8/tests/014.phpt
memcache-3.0.8/tests/015.phpt
memcache-3.0.8/tests/016.phpt
memcache-3.0.8/tests/017.phpt
memcache-3.0.8/tests/018.phpt
memcache-3.0.8/tests/019a.phpt
memcache-3.0.8/tests/019.phpt
memcache-3.0.8/tests/020.phpt
memcache-3.0.8/tests/021.phpt
memcache-3.0.8/tests/022a.phpt
memcache-3.0.8/tests/022.phpt
memcache-3.0.8/tests/023.phpt
memcache-3.0.8/tests/024a.phpt
memcache-3.0.8/tests/024.phpt
memcache-3.0.8/tests/025.phpt
memcache-3.0.8/tests/026.phpt
memcache-3.0.8/tests/027a.phpt
memcache-3.0.8/tests/027.phpt
memcache-3.0.8/tests/028.phpt
memcache-3.0.8/tests/029.phpt
memcache-3.0.8/tests/030.phpt
memcache-3.0.8/tests/031.phpt
memcache-3.0.8/tests/032.phpt
memcache-3.0.8/tests/033.phpt
memcache-3.0.8/tests/034.phpt
memcache-3.0.8/tests/035.phpt
memcache-3.0.8/tests/036.phpt
memcache-3.0.8/tests/037.phpt
memcache-3.0.8/tests/038.phpt
memcache-3.0.8/tests/039.phpt
memcache-3.0.8/tests/040.phpt
memcache-3.0.8/tests/041.phpt
memcache-3.0.8/tests/042.phpt
memcache-3.0.8/tests/043.phpt
memcache-3.0.8/tests/044.phpt
memcache-3.0.8/tests/045.phpt
memcache-3.0.8/tests/046.phpt
memcache-3.0.8/tests/047.phpt
memcache-3.0.8/tests/048.phpt
memcache-3.0.8/tests/049.phpt
memcache-3.0.8/tests/050.phpt
memcache-3.0.8/tests/051.phpt
memcache-3.0.8/tests/052.phpt
memcache-3.0.8/tests/053.phpt
memcache-3.0.8/tests/054.phpt
memcache-3.0.8/tests/055.phpt
memcache-3.0.8/tests/056.phpt
memcache-3.0.8/tests/057.phpt
memcache-3.0.8/tests/058.phpt
memcache-3.0.8/tests/100a.phpt
memcache-3.0.8/tests/100b.phpt
memcache-3.0.8/tests/100.phpt
memcache-3.0.8/tests/pecl11221.phpt
memcache-3.0.8/tests/pecl16442.phpt
memcache-3.0.8/tests/pecl16536.phpt
memcache-3.0.8/tests/pecl17518.phpt
memcache-3.0.8/tests/pecl17566.phpt
memcache-3.0.8/tests/pecl63142.phpt
[email protected]:~/Downloads$ cd memcache-3.0.8/
[email protected]:~/Downloads/memcache-3.0.8$ /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20160303
Zend Module Api No: 20160303
Zend Extension Api No: 320160303
[email protected]:~/Downloads/memcache-3.0.8$ ./configure –enable-memcache –with-php-config=/usr/local/php/bin/php-config –with-zlib-dir
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for a sed that does not truncate output… /bin/sed
checking for cc… cc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether cc accepts -g… yes
checking for cc option to accept ISO C89… none needed
checking how to run the C preprocessor… cc -E
checking for icc… no
checking for suncc… no
checking whether cc understands -c and -o together… yes
checking for system library directory… lib
checking if compiler supports -R… no
checking if compiler supports -Wl,-rpath,… yes
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking target system type… x86_64-unknown-linux-gnu
checking for PHP prefix… /usr/local/php
checking for PHP includes… -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory… /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303
checking for PHP installed headers prefix… /usr/local/php/include/php
checking if debug is enabled… no
checking if zts is enabled… no
checking for re2c… no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk… no
checking for nawk… nawk
checking if nawk is broken… no
checking whether to enable memcache support… yes, shared
checking whether to enable memcache session handler support… yes
checking for the location of ZLIB… yes
checking for the location of zlib… /usr
checking for session includes… /usr/local/php/include/php
checking for memcache session support… enabled
checking for ld used by cc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for /usr/bin/ld option to reload object files… -r
checking for BSD-compatible nm… /usr/bin/nm -B
checking whether ln -s works… yes
checking how to recognize dependent libraries… pass_all
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking dlfcn.h usability… yes
checking dlfcn.h presence… yes
checking for dlfcn.h… yes
checking the maximum length of command line arguments… 1572864
checking command to parse /usr/bin/nm -B output from cc object… ok
checking for objdir… .libs
checking for ar… ar
checking for ranlib… ranlib
checking for strip… strip
checking if cc supports -fno-rtti -fno-exceptions… no
checking for cc option to produce PIC… -fPIC
checking if cc PIC flag -fPIC works… yes
checking if cc static flag -static works… yes
checking if cc supports -c -o file.o… yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… no

creating libtool
appending configuration tag “CXX” to libtool
configure: creating ./config.status
config.status: creating config.h
[email protected]:~/Downloads/memcache-3.0.8$ make
/bin/bash /home/naodai/Downloads/memcache-3.0.8/libtool –mode=compile cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/memcache-3.0.8 -DPHP_ATOM_INC -I/home/naodai/Downloads/memcache-3.0.8/include -I/home/naodai/Downloads/memcache-3.0.8/main -I/home/naodai/Downloads/memcache-3.0.8 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/memcache-3.0.8/memcache.c -o memcache.lo
mkdir .libs
cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/memcache-3.0.8 -DPHP_ATOM_INC -I/home/naodai/Downloads/memcache-3.0.8/include -I/home/naodai/Downloads/memcache-3.0.8/main -I/home/naodai/Downloads/memcache-3.0.8 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/memcache-3.0.8/memcache.c -fPIC -DPIC -o .libs/memcache.o
In file included from /home/naodai/Downloads/memcache-3.0.8/php_memcache.h:34:0,
from /home/naodai/Downloads/memcache-3.0.8/memcache.c:30:
/home/naodai/Downloads/memcache-3.0.8/memcache_pool.h:45:10: fatal error: ext/standard/php_smart_str_public.h: No such file or directory
#include “ext/standard/php_smart_str_public.h”
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:193: recipe for target ‘memcache.lo’ failed
make: *** [memcache.lo] Error 1
[email protected]:~/Downloads/memcache-3.0.8$ cd ..
[email protected]:~/Downloads$ rm -rf memcache-3.0.8*
[email protected]:~/Downloads$ wget ^C
[email protected]:~/Downloads$ tar -zxvf pecl-memcache-4.0.3.tar.gz
pecl-memcache-4.0.3/
pecl-memcache-4.0.3/.gitignore
pecl-memcache-4.0.3/CREDITS
pecl-memcache-4.0.3/Dockerfile
pecl-memcache-4.0.3/LICENSE
pecl-memcache-4.0.3/README
pecl-memcache-4.0.3/cloudbuild.yaml
pecl-memcache-4.0.3/config.m4
pecl-memcache-4.0.3/config.w32
pecl-memcache-4.0.3/config9.m4
pecl-memcache-4.0.3/docker/
pecl-memcache-4.0.3/docker/host.conf
pecl-memcache-4.0.3/docker/start.sh
pecl-memcache-4.0.3/example.php
pecl-memcache-4.0.3/memcache.php
pecl-memcache-4.0.3/package.xml
pecl-memcache-4.0.3/php5/
pecl-memcache-4.0.3/php5/memcache.c
pecl-memcache-4.0.3/php5/memcache_ascii_protocol.c
pecl-memcache-4.0.3/php5/memcache_binary_protocol.c
pecl-memcache-4.0.3/php5/memcache_consistent_hash.c
pecl-memcache-4.0.3/php5/memcache_pool.c
pecl-memcache-4.0.3/php5/memcache_pool.h
pecl-memcache-4.0.3/php5/memcache_queue.c
pecl-memcache-4.0.3/php5/memcache_queue.h
pecl-memcache-4.0.3/php5/memcache_session.c
pecl-memcache-4.0.3/php5/memcache_standard_hash.c
pecl-memcache-4.0.3/php5/php_memcache.h
pecl-memcache-4.0.3/php7/
pecl-memcache-4.0.3/php7/memcache.c
pecl-memcache-4.0.3/php7/memcache_ascii_protocol.c
pecl-memcache-4.0.3/php7/memcache_binary_protocol.c
pecl-memcache-4.0.3/php7/memcache_consistent_hash.c
pecl-memcache-4.0.3/php7/memcache_pool.c
pecl-memcache-4.0.3/php7/memcache_pool.h
pecl-memcache-4.0.3/php7/memcache_queue.c
pecl-memcache-4.0.3/php7/memcache_queue.h
pecl-memcache-4.0.3/php7/memcache_session.c
pecl-memcache-4.0.3/php7/memcache_standard_hash.c
pecl-memcache-4.0.3/php7/php_memcache.h
pecl-memcache-4.0.3/profile.php
pecl-memcache-4.0.3/tests/
pecl-memcache-4.0.3/tests/001.phpt
pecl-memcache-4.0.3/tests/002.phpt
pecl-memcache-4.0.3/tests/003.phpt
pecl-memcache-4.0.3/tests/004.phpt
pecl-memcache-4.0.3/tests/005.phpt
pecl-memcache-4.0.3/tests/006.phpt
pecl-memcache-4.0.3/tests/007.phpt
pecl-memcache-4.0.3/tests/008.phpt
pecl-memcache-4.0.3/tests/009.phpt
pecl-memcache-4.0.3/tests/010.phpt
pecl-memcache-4.0.3/tests/011.phpt
pecl-memcache-4.0.3/tests/012.phpt
pecl-memcache-4.0.3/tests/013.phpt
pecl-memcache-4.0.3/tests/014.phpt
pecl-memcache-4.0.3/tests/015.phpt
pecl-memcache-4.0.3/tests/016.phpt
pecl-memcache-4.0.3/tests/017.phpt
pecl-memcache-4.0.3/tests/018.phpt
pecl-memcache-4.0.3/tests/019.phpt
pecl-memcache-4.0.3/tests/019a.phpt
pecl-memcache-4.0.3/tests/020.phpt
pecl-memcache-4.0.3/tests/021.phpt
pecl-memcache-4.0.3/tests/022.phpt
pecl-memcache-4.0.3/tests/022a.phpt
pecl-memcache-4.0.3/tests/023.phpt
pecl-memcache-4.0.3/tests/024.phpt
pecl-memcache-4.0.3/tests/024a.phpt
pecl-memcache-4.0.3/tests/025.phpt
pecl-memcache-4.0.3/tests/026.phpt
pecl-memcache-4.0.3/tests/027.phpt
pecl-memcache-4.0.3/tests/027a.phpt
pecl-memcache-4.0.3/tests/028.phpt
pecl-memcache-4.0.3/tests/029.phpt
pecl-memcache-4.0.3/tests/030.phpt
pecl-memcache-4.0.3/tests/031.phpt
pecl-memcache-4.0.3/tests/032.phpt
pecl-memcache-4.0.3/tests/033.phpt
pecl-memcache-4.0.3/tests/034.phpt
pecl-memcache-4.0.3/tests/035.phpt
pecl-memcache-4.0.3/tests/036.phpt
pecl-memcache-4.0.3/tests/036b.phpt
pecl-memcache-4.0.3/tests/037.phpt
pecl-memcache-4.0.3/tests/038.phpt
pecl-memcache-4.0.3/tests/039.phpt
pecl-memcache-4.0.3/tests/040.phpt
pecl-memcache-4.0.3/tests/041.phpt
pecl-memcache-4.0.3/tests/042.phpt
pecl-memcache-4.0.3/tests/043.phpt
pecl-memcache-4.0.3/tests/044.phpt
pecl-memcache-4.0.3/tests/044b.phpt
pecl-memcache-4.0.3/tests/045.phpt
pecl-memcache-4.0.3/tests/046.phpt
pecl-memcache-4.0.3/tests/047.phpt
pecl-memcache-4.0.3/tests/047a.phpt
pecl-memcache-4.0.3/tests/048.phpt
pecl-memcache-4.0.3/tests/049.phpt
pecl-memcache-4.0.3/tests/050.phpt
pecl-memcache-4.0.3/tests/051.phpt
pecl-memcache-4.0.3/tests/052.phpt
pecl-memcache-4.0.3/tests/053.phpt
pecl-memcache-4.0.3/tests/054.phpt
pecl-memcache-4.0.3/tests/055.phpt
pecl-memcache-4.0.3/tests/056.phpt
pecl-memcache-4.0.3/tests/057.phpt
pecl-memcache-4.0.3/tests/058.phpt
pecl-memcache-4.0.3/tests/100.phpt
pecl-memcache-4.0.3/tests/100a.phpt
pecl-memcache-4.0.3/tests/100b.phpt
pecl-memcache-4.0.3/tests/bug73539.phpt
pecl-memcache-4.0.3/tests/connect.inc
pecl-memcache-4.0.3/tests/githubbug13.phpt
pecl-memcache-4.0.3/tests/memcache.sh
pecl-memcache-4.0.3/tests/pecl11221.phpt
pecl-memcache-4.0.3/tests/pecl16442.phpt
pecl-memcache-4.0.3/tests/pecl16536.phpt
pecl-memcache-4.0.3/tests/pecl17518.phpt
pecl-memcache-4.0.3/tests/pecl17566.phpt
pecl-memcache-4.0.3/tests/pecl63142.phpt
pecl-memcache-4.0.3/tests/pecl63272.phpt
[email protected]:~/Downloads$ cd pecl-memcache-4.0.3/
[email protected]:~/Downloads/pecl-memcache-4.0.3$ /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20160303
Zend Module Api No: 20160303
Zend Extension Api No: 320160303
[email protected]:~/Downloads/pecl-memcache-4.0.3$ ./configure –enable-memcache –with-php-config=/usr/local/php/bin/php-config –with-zlib-dir
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for a sed that does not truncate output… /bin/sed
checking for cc… cc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether cc accepts -g… yes
checking for cc option to accept ISO C89… none needed
checking how to run the C preprocessor… cc -E
checking for icc… no
checking for suncc… no
checking whether cc understands -c and -o together… yes
checking for system library directory… lib
checking if compiler supports -R… no
checking if compiler supports -Wl,-rpath,… yes
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking target system type… x86_64-unknown-linux-gnu
checking for PHP prefix… /usr/local/php
checking for PHP includes… -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory… /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303
checking for PHP installed headers prefix… /usr/local/php/include/php
checking if debug is enabled… no
checking if zts is enabled… no
checking for re2c… no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk… no
checking for nawk… nawk
checking if nawk is broken… no
checking whether to enable memcache support… yes, shared
checking whether to enable memcache session handler support… yes
checking for the location of ZLIB… yes
checking for the location of zlib… /usr
checking PHP version… PHP 7.x
checking for session includes… /usr/local/php/include/php
checking for memcache session support… enabled
checking for ld used by cc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for /usr/bin/ld option to reload object files… -r
checking for BSD-compatible nm… /usr/bin/nm -B
checking whether ln -s works… yes
checking how to recognize dependent libraries… pass_all
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking dlfcn.h usability… yes
checking dlfcn.h presence… yes
checking for dlfcn.h… yes
checking the maximum length of command line arguments… 1572864
checking command to parse /usr/bin/nm -B output from cc object… ok
checking for objdir… .libs
checking for ar… ar
checking for ranlib… ranlib
checking for strip… strip
checking if cc supports -fno-rtti -fno-exceptions… no
checking for cc option to produce PIC… -fPIC
checking if cc PIC flag -fPIC works… yes
checking if cc static flag -static works… yes
checking if cc supports -c -o file.o… yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… no

creating libtool
appending configuration tag “CXX” to libtool
configure: creating ./config.status
config.status: creating config.h
[email protected]:~/Downloads/pecl-memcache-4.0.3$ make
/bin/bash /home/naodai/Downloads/pecl-memcache-4.0.3/libtool –mode=compile cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/pecl-memcache-4.0.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/pecl-memcache-4.0.3/php7/memcache.c -o php7/memcache.lo
mkdir php7/.libs
cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/pecl-memcache-4.0.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/pecl-memcache-4.0.3/php7/memcache.c -fPIC -DPIC -o php7/.libs/memcache.o
/bin/bash /home/naodai/Downloads/pecl-memcache-4.0.3/libtool –mode=compile cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/pecl-memcache-4.0.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/pecl-memcache-4.0.3/php7/memcache_pool.c -o php7/memcache_pool.lo
cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/pecl-memcache-4.0.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/pecl-memcache-4.0.3/php7/memcache_pool.c -fPIC -DPIC -o php7/.libs/memcache_pool.o
/bin/bash /home/naodai/Downloads/pecl-memcache-4.0.3/libtool –mode=compile cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/pecl-memcache-4.0.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/pecl-memcache-4.0.3/php7/memcache_queue.c -o php7/memcache_queue.lo
cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/pecl-memcache-4.0.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/pecl-memcache-4.0.3/php7/memcache_queue.c -fPIC -DPIC -o php7/.libs/memcache_queue.o
/bin/bash /home/naodai/Downloads/pecl-memcache-4.0.3/libtool –mode=compile cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/pecl-memcache-4.0.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/pecl-memcache-4.0.3/php7/memcache_ascii_protocol.c -o php7/memcache_ascii_protocol.lo
cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/pecl-memcache-4.0.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/pecl-memcache-4.0.3/php7/memcache_ascii_protocol.c -fPIC -DPIC -o php7/.libs/memcache_ascii_protocol.o
/bin/bash /home/naodai/Downloads/pecl-memcache-4.0.3/libtool –mode=compile cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/pecl-memcache-4.0.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/pecl-memcache-4.0.3/php7/memcache_binary_protocol.c -o php7/memcache_binary_protocol.lo
cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/pecl-memcache-4.0.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/pecl-memcache-4.0.3/php7/memcache_binary_protocol.c -fPIC -DPIC -o php7/.libs/memcache_binary_protocol.o
/bin/bash /home/naodai/Downloads/pecl-memcache-4.0.3/libtool –mode=compile cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/pecl-memcache-4.0.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/pecl-memcache-4.0.3/php7/memcache_standard_hash.c -o php7/memcache_standard_hash.lo
cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/pecl-memcache-4.0.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/pecl-memcache-4.0.3/php7/memcache_standard_hash.c -fPIC -DPIC -o php7/.libs/memcache_standard_hash.o
/bin/bash /home/naodai/Downloads/pecl-memcache-4.0.3/libtool –mode=compile cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/pecl-memcache-4.0.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/pecl-memcache-4.0.3/php7/memcache_consistent_hash.c -o php7/memcache_consistent_hash.lo
cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/pecl-memcache-4.0.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/pecl-memcache-4.0.3/php7/memcache_consistent_hash.c -fPIC -DPIC -o php7/.libs/memcache_consistent_hash.o
/bin/bash /home/naodai/Downloads/pecl-memcache-4.0.3/libtool –mode=compile cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/pecl-memcache-4.0.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/pecl-memcache-4.0.3/php7/memcache_session.c -o php7/memcache_session.lo
cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/pecl-memcache-4.0.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /home/naodai/Downloads/pecl-memcache-4.0.3/php7/memcache_session.c -fPIC -DPIC -o php7/.libs/memcache_session.o
/bin/bash /home/naodai/Downloads/pecl-memcache-4.0.3/libtool –mode=link cc -DPHP_ATOM_INC -I/home/naodai/Downloads/pecl-memcache-4.0.3/include -I/home/naodai/Downloads/pecl-memcache-4.0.3/main -I/home/naodai/Downloads/pecl-memcache-4.0.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o memcache.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/naodai/Downloads/pecl-memcache-4.0.3/modules php7/memcache.lo php7/memcache_pool.lo php7/memcache_queue.lo php7/memcache_ascii_protocol.lo php7/memcache_binary_protocol.lo php7/memcache_standard_hash.lo php7/memcache_consistent_hash.lo php7/memcache_session.lo -lz
mkdir .libs
cc -shared php7/.libs/memcache.o php7/.libs/memcache_pool.o php7/.libs/memcache_queue.o php7/.libs/memcache_ascii_protocol.o php7/.libs/memcache_binary_protocol.o php7/.libs/memcache_standard_hash.o php7/.libs/memcache_consistent_hash.o php7/.libs/memcache_session.o -lz -Wl,-soname -Wl,memcache.so -o .libs/memcache.so
creating memcache.la
(cd .libs && rm -f memcache.la && ln -s ../memcache.la memcache.la)
/bin/bash /home/naodai/Downloads/pecl-memcache-4.0.3/libtool –mode=install cp ./memcache.la /home/naodai/Downloads/pecl-memcache-4.0.3/modules
cp ./.libs/memcache.so /home/naodai/Downloads/pecl-memcache-4.0.3/modules/memcache.so
cp ./.libs/memcache.lai /home/naodai/Downloads/pecl-memcache-4.0.3/modules/memcache.la
PATH=”$PATH:/sbin” ldconfig -n /home/naodai/Downloads/pecl-memcache-4.0.3/modules
———————————————————————-
Libraries have been installed in:
/home/naodai/Downloads/pecl-memcache-4.0.3/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR’
flag during linking and do at least one of the following:
– add LIBDIR to the `LD_LIBRARY_PATH’ environment variable
during execution
– add LIBDIR to the `LD_RUN_PATH’ environment variable
during linking
– use the `-Wl,–rpath -Wl,LIBDIR’ linker flag
– have your system administrator add LIBDIR to `/etc/ld.so.conf’

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
———————————————————————-

Build complete.
Don’t forget to run ‘make test’.

[email protected]:~/Downloads/pecl-memcache-4.0.3$ sudo make install
[sudo] password for naodai:
Sorry, try again.
[sudo] password for naodai:
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/
[email protected]:~/Downloads/pecl-memcache-4.0.3$ cd /usr/local/php/etc/
[email protected]:/usr/local/php/etc$ sudo vim php.ini
[email protected]:/usr/local/php/etc$ sudo systemctl reload php-fpm
[email protected]:/usr/local/php/etc$ cd –
/home/naodai/Downloads/pecl-memcache-4.0.3
[email protected]:~/Downloads/pecl-memcache-4.0.3$ cd ..
[email protected]:~/Downloads$ cd memcached-3.1.3/
[email protected]:~/Downloads/memcached-3.1.3$ /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20160303
Zend Module Api No: 20160303
Zend Extension Api No: 320160303
[email protected]:~/Downloads/memcached-3.1.3$ ./configure –enable-memcache –with-php-config=/usr/local/php/bin/php-config
configure: WARNING: unrecognized options: –enable-memcache
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for a sed that does not truncate output… /bin/sed
checking for cc… cc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether cc accepts -g… yes
checking for cc option to accept ISO C89… none needed
checking how to run the C preprocessor… cc -E
checking for icc… no
checking for suncc… no
checking whether cc understands -c and -o together… yes
checking for system library directory… lib
checking if compiler supports -R… no
checking if compiler supports -Wl,-rpath,… yes
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking target system type… x86_64-unknown-linux-gnu
checking for PHP prefix… /usr/local/php
checking for PHP includes… -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory… /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303
checking for PHP installed headers prefix… /usr/local/php/include/php
checking if debug is enabled… no
checking if zts is enabled… no
checking for re2c… no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk… no
checking for nawk… nawk
checking if nawk is broken… no
checking whether to enable memcached support… yes, shared
checking for libmemcached… yes, shared
checking whether to enable memcached session handler support… yes
checking whether to enable memcached igbinary serializer support… no
checking whether to enable memcached json serializer support… no
checking whether to enable memcached msgpack serializer support… no
checking whether to enable memcached sasl support… yes
checking whether to enable memcached protocol support… no
checking whether to use system FastLZ library… no
checking for ZLIB… yes, shared
checking for pkg-config… /usr/bin/pkg-config
checking for zlib location… /usr
checking for session includes… /usr/local/php/include/php
checking for memcached session support… enabled
checking for memcached igbinary support… disabled
checking for memcached msgpack support… disabled
checking for libmemcached location… configure: error: memcached support requires libmemcached. Use –with-libmemcached-dir=<DIR> to specify the prefix where libmemcached headers and library are located
[email protected]:~/Downloads/memcached-3.1.3$ sudo apt-get install libmemcached libmemcached-devel
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package libmemcached is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘libmemcached’ has no installation candidate
E: Unable to locate package libmemcached-devel
[email protected]:~/Downloads/memcached-3.1.3$ sudo apt-get install libmemcached libmemcached-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package libmemcached is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘libmemcached’ has no installation candidate
[email protected]:~/Downloads/memcached-3.1.3$ sudo apt-get install libmemcached
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package libmemcached is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘libmemcached’ has no installation candidate
[email protected]:~/Downloads/memcached-3.1.3$ sudo apt-get install libmemcached-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
libc-ares2 libhttp-parser2.7.1 libqt5qevercloud3 libtidy5 libuv1 nodejs-doc
tidy
Use ‘sudo apt autoremove’ to remove them.
The following additional packages will be installed:
libhashkit-dev libhashkit2 libmemcached11 libmemcachedutil2 libsasl2-dev
The following NEW packages will be installed:
libhashkit-dev libhashkit2 libmemcached-dev libmemcached11 libmemcachedutil2
libsasl2-dev
0 upgraded, 6 newly installed, 0 to remove and 5 not upgraded.
Need to get 646 kB of archives.
After this operation, 2,312 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libhashkit2 amd64 1.0.18-4.2ubuntu0.18.04.1 [35.4 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libhashkit-dev amd64 1.0.18-4.2ubuntu0.18.04.1 [23.9 kB]
Get:3 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libmemcached11 amd64 1.0.18-4.2ubuntu0.18.04.1 [83.2 kB]
Get:4 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libmemcachedutil2 amd64 1.0.18-4.2ubuntu0.18.04.1 [9,532 B]
Get:5 http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 libsasl2-dev amd64 2.1.27~101-g0780600+dfsg-3ubuntu2 [256 kB]
Get:6 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libmemcached-dev amd64 1.0.18-4.2ubuntu0.18.04.1 [238 kB]
Fetched 646 kB in 3s (220 kB/s)
Selecting previously unselected package libhashkit2:amd64.
(Reading database … 222695 files and directories currently installed.)
Preparing to unpack …/0-libhashkit2_1.0.18-4.2ubuntu0.18.04.1_amd64.deb …
Unpacking libhashkit2:amd64 (1.0.18-4.2ubuntu0.18.04.1) …
Selecting previously unselected package libhashkit-dev:amd64.
Preparing to unpack …/1-libhashkit-dev_1.0.18-4.2ubuntu0.18.04.1_amd64.deb …
Unpacking libhashkit-dev:amd64 (1.0.18-4.2ubuntu0.18.04.1) …
Selecting previously unselected package libmemcached11:amd64.
Preparing to unpack …/2-libmemcached11_1.0.18-4.2ubuntu0.18.04.1_amd64.deb …
Unpacking libmemcached11:amd64 (1.0.18-4.2ubuntu0.18.04.1) …
Selecting previously unselected package libmemcachedutil2:amd64.
Preparing to unpack …/3-libmemcachedutil2_1.0.18-4.2ubuntu0.18.04.1_amd64.deb …
Unpacking libmemcachedutil2:amd64 (1.0.18-4.2ubuntu0.18.04.1) …
Selecting previously unselected package libsasl2-dev.
Preparing to unpack …/4-libsasl2-dev_2.1.27~101-g0780600+dfsg-3ubuntu2_amd64.deb …
Unpacking libsasl2-dev (2.1.27~101-g0780600+dfsg-3ubuntu2) …
Selecting previously unselected package libmemcached-dev:amd64.
Preparing to unpack …/5-libmemcached-dev_1.0.18-4.2ubuntu0.18.04.1_amd64.deb …
Unpacking libmemcached-dev:amd64 (1.0.18-4.2ubuntu0.18.04.1) …
Setting up libmemcached11:amd64 (1.0.18-4.2ubuntu0.18.04.1) …
Setting up libsasl2-dev (2.1.27~101-g0780600+dfsg-3ubuntu2) …
Setting up libhashkit2:amd64 (1.0.18-4.2ubuntu0.18.04.1) …
Processing triggers for libc-bin (2.27-3ubuntu1) …
Processing triggers for man-db (2.8.3-2ubuntu0.1) …
Setting up libmemcachedutil2:amd64 (1.0.18-4.2ubuntu0.18.04.1) …
Setting up libhashkit-dev:amd64 (1.0.18-4.2ubuntu0.18.04.1) …
Setting up libmemcached-dev:amd64 (1.0.18-4.2ubuntu0.18.04.1) …
Processing triggers for libc-bin (2.27-3ubuntu1) …
[email protected]:~/Downloads/memcached-3.1.3$ /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20160303
Zend Module Api No: 20160303
Zend Extension Api No: 320160303
[email protected]:~/Downloads/memcached-3.1.3$ ./configure –enable-memcache –with-php-config=/usr/local/php/bin/php-config –with-zlib-dir
configure: WARNING: unrecognized options: –enable-memcache
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for a sed that does not truncate output… /bin/sed
checking for cc… cc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether cc accepts -g… yes
checking for cc option to accept ISO C89… none needed
checking how to run the C preprocessor… cc -E
checking for icc… no
checking for suncc… no
checking whether cc understands -c and -o together… yes
checking for system library directory… lib
checking if compiler supports -R… no
checking if compiler supports -Wl,-rpath,… yes
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking target system type… x86_64-unknown-linux-gnu
checking for PHP prefix… /usr/local/php
checking for PHP includes… -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory… /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303
checking for PHP installed headers prefix… /usr/local/php/include/php
checking if debug is enabled… no
checking if zts is enabled… no
checking for re2c… no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk… no
checking for nawk… nawk
checking if nawk is broken… no
checking whether to enable memcached support… yes, shared
checking for libmemcached… yes, shared
checking whether to enable memcached session handler support… yes
checking whether to enable memcached igbinary serializer support… no
checking whether to enable memcached json serializer support… no
checking whether to enable memcached msgpack serializer support… no
checking whether to enable memcached sasl support… yes
checking whether to enable memcached protocol support… no
checking whether to use system FastLZ library… no
checking for ZLIB… yes, shared
checking for pkg-config… /usr/bin/pkg-config
checking for zlib location… /usr
checking for session includes… /usr/local/php/include/php
checking for memcached session support… enabled
checking for memcached igbinary support… disabled
checking for memcached msgpack support… disabled
checking for libmemcached location… found version 1.0.18, under /usr
checking for libmemcached sasl.h requirement… yes
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking sasl/sasl.h usability… yes
checking sasl/sasl.h presence… yes
checking for sasl/sasl.h… yes
checking whether to enable sasl support… yes
checking for sasl_client_init in -lsasl2… yes
checking whether memcached_exist is defined… yes
checking whether memcached_set_encoding_key is defined… yes
checking for memcached protocol support… disabled
checking for ld used by cc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for /usr/bin/ld option to reload object files… -r
checking for BSD-compatible nm… /usr/bin/nm -B
checking whether ln -s works… yes
checking how to recognize dependent libraries… pass_all
checking dlfcn.h usability… yes
checking dlfcn.h presence… yes
checking for dlfcn.h… yes
checking the maximum length of command line arguments… 1572864
checking command to parse /usr/bin/nm -B output from cc object… ok
checking for objdir… .libs
checking for ar… ar
checking for ranlib… ranlib
checking for strip… strip
checking if cc supports -fno-rtti -fno-exceptions… no
checking for cc option to produce PIC… -fPIC
checking if cc PIC flag -fPIC works… yes
checking if cc static flag -static works… yes
checking if cc supports -c -o file.o… yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… no

creating libtool
appending configuration tag “CXX” to libtool
configure: creating ./config.status
config.status: creating config.h
configure: WARNING: unrecognized options: –enable-memcache
[email protected]:~/Downloads/memcached-3.1.3$ ./configure –with-php-config=/usr/local/php/bin/php-config –with-zlib-dir
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for a sed that does not truncate output… /bin/sed
checking for cc… cc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether cc accepts -g… yes
checking for cc option to accept ISO C89… none needed
checking how to run the C preprocessor… cc -E
checking for icc… no
checking for suncc… no
checking whether cc understands -c and -o together… yes
checking for system library directory… lib
checking if compiler supports -R… no
checking if compiler supports -Wl,-rpath,… yes
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking target system type… x86_64-unknown-linux-gnu
checking for PHP prefix… /usr/local/php
checking for PHP includes… -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory… /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303
checking for PHP installed headers prefix… /usr/local/php/include/php
checking if debug is enabled… no
checking if zts is enabled… no
checking for re2c… no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk… no
checking for nawk… nawk
checking if nawk is broken… no
checking whether to enable memcached support… yes, shared
checking for libmemcached… yes, shared
checking whether to enable memcached session handler support… yes
checking whether to enable memcached igbinary serializer support… no
checking whether to enable memcached json serializer support… no
checking whether to enable memcached msgpack serializer support… no
checking whether to enable memcached sasl support… yes
checking whether to enable memcached protocol support… no
checking whether to use system FastLZ library… no
checking for ZLIB… yes, shared
checking for pkg-config… /usr/bin/pkg-config
checking for zlib location… /usr
checking for session includes… /usr/local/php/include/php
checking for memcached session support… enabled
checking for memcached igbinary support… disabled
checking for memcached msgpack support… disabled
checking for libmemcached location… found version 1.0.18, under /usr
checking for libmemcached sasl.h requirement… yes
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking sasl/sasl.h usability… yes
checking sasl/sasl.h presence… yes
checking for sasl/sasl.h… yes
checking whether to enable sasl support… yes
checking for sasl_client_init in -lsasl2… yes
checking whether memcached_exist is defined… yes
checking whether memcached_set_encoding_key is defined… yes
checking for memcached protocol support… disabled
checking for ld used by cc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for /usr/bin/ld option to reload object files… -r
checking for BSD-compatible nm… /usr/bin/nm -B
checking whether ln -s works… yes
checking how to recognize dependent libraries… pass_all
checking dlfcn.h usability… yes
checking dlfcn.h presence… yes
checking for dlfcn.h… yes
checking the maximum length of command line arguments… 1572864
checking command to parse /usr/bin/nm -B output from cc object… ok
checking for objdir… .libs
checking for ar… ar
checking for ranlib… ranlib
checking for strip… strip
checking if cc supports -fno-rtti -fno-exceptions… no
checking for cc option to produce PIC… -fPIC
checking if cc PIC flag -fPIC works… yes
checking if cc static flag -static works… yes
checking if cc supports -c -o file.o… yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… no

creating libtool
appending configuration tag “CXX” to libtool
configure: creating ./config.status
config.status: creating config.h
config.status: config.h is unchanged
[email protected]:~/Downloads/memcached-3.1.3$ make -j2
/bin/bash /home/naodai/Downloads/memcached-3.1.3/libtool –mode=compile cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/memcached-3.1.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/memcached-3.1.3/include -I/home/naodai/Downloads/memcached-3.1.3/main -I/home/naodai/Downloads/memcached-3.1.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -c /home/naodai/Downloads/memcached-3.1.3/php_memcached.c -o php_memcached.lo
/bin/bash /home/naodai/Downloads/memcached-3.1.3/libtool –mode=compile cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/memcached-3.1.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/memcached-3.1.3/include -I/home/naodai/Downloads/memcached-3.1.3/main -I/home/naodai/Downloads/memcached-3.1.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -c /home/naodai/Downloads/memcached-3.1.3/php_libmemcached_compat.c -o php_libmemcached_compat.lo
mkdir .libs
cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/memcached-3.1.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/memcached-3.1.3/include -I/home/naodai/Downloads/memcached-3.1.3/main -I/home/naodai/Downloads/memcached-3.1.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -c /home/naodai/Downloads/memcached-3.1.3/php_libmemcached_compat.c -fPIC -DPIC -o .libs/php_libmemcached_compat.o
cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/memcached-3.1.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/memcached-3.1.3/include -I/home/naodai/Downloads/memcached-3.1.3/main -I/home/naodai/Downloads/memcached-3.1.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -c /home/naodai/Downloads/memcached-3.1.3/php_memcached.c -fPIC -DPIC -o .libs/php_memcached.o
/bin/bash /home/naodai/Downloads/memcached-3.1.3/libtool –mode=compile cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/memcached-3.1.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/memcached-3.1.3/include -I/home/naodai/Downloads/memcached-3.1.3/main -I/home/naodai/Downloads/memcached-3.1.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -c /home/naodai/Downloads/memcached-3.1.3/g_fmt.c -o g_fmt.lo
cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/memcached-3.1.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/memcached-3.1.3/include -I/home/naodai/Downloads/memcached-3.1.3/main -I/home/naodai/Downloads/memcached-3.1.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -c /home/naodai/Downloads/memcached-3.1.3/g_fmt.c -fPIC -DPIC -o .libs/g_fmt.o
/bin/bash /home/naodai/Downloads/memcached-3.1.3/libtool –mode=compile cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/memcached-3.1.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/memcached-3.1.3/include -I/home/naodai/Downloads/memcached-3.1.3/main -I/home/naodai/Downloads/memcached-3.1.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -c /home/naodai/Downloads/memcached-3.1.3/fastlz/fastlz.c -o fastlz/fastlz.lo
mkdir fastlz/.libs
cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/memcached-3.1.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/memcached-3.1.3/include -I/home/naodai/Downloads/memcached-3.1.3/main -I/home/naodai/Downloads/memcached-3.1.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -c /home/naodai/Downloads/memcached-3.1.3/fastlz/fastlz.c -fPIC -DPIC -o fastlz/.libs/fastlz.o
/bin/bash /home/naodai/Downloads/memcached-3.1.3/libtool –mode=compile cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/memcached-3.1.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/memcached-3.1.3/include -I/home/naodai/Downloads/memcached-3.1.3/main -I/home/naodai/Downloads/memcached-3.1.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -c /home/naodai/Downloads/memcached-3.1.3/php_memcached_session.c -o php_memcached_session.lo
cc -I/usr/local/php/include/php -I. -I/home/naodai/Downloads/memcached-3.1.3 -DPHP_ATOM_INC -I/home/naodai/Downloads/memcached-3.1.3/include -I/home/naodai/Downloads/memcached-3.1.3/main -I/home/naodai/Downloads/memcached-3.1.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -c /home/naodai/Downloads/memcached-3.1.3/php_memcached_session.c -fPIC -DPIC -o .libs/php_memcached_session.o
/bin/bash /home/naodai/Downloads/memcached-3.1.3/libtool –mode=link cc -DPHP_ATOM_INC -I/home/naodai/Downloads/memcached-3.1.3/include -I/home/naodai/Downloads/memcached-3.1.3/main -I/home/naodai/Downloads/memcached-3.1.3 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -o memcached.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/naodai/Downloads/memcached-3.1.3/modules php_memcached.lo php_libmemcached_compat.lo g_fmt.lo fastlz/fastlz.lo php_memcached_session.lo -lz -lmemcached -lmemcachedutil -lsasl2
cc -shared .libs/php_memcached.o .libs/php_libmemcached_compat.o .libs/g_fmt.o fastlz/.libs/fastlz.o .libs/php_memcached_session.o -lz -lmemcached -lmemcachedutil -lsasl2 -Wl,-soname -Wl,memcached.so -o .libs/memcached.so
creating memcached.la
(cd .libs && rm -f memcached.la && ln -s ../memcached.la memcached.la)
/bin/bash /home/naodai/Downloads/memcached-3.1.3/libtool –mode=install cp ./memcached.la /home/naodai/Downloads/memcached-3.1.3/modules
cp ./.libs/memcached.so /home/naodai/Downloads/memcached-3.1.3/modules/memcached.so
cp ./.libs/memcached.lai /home/naodai/Downloads/memcached-3.1.3/modules/memcached.la
PATH=”$PATH:/sbin” ldconfig -n /home/naodai/Downloads/memcached-3.1.3/modules
———————————————————————-
Libraries have been installed in:
/home/naodai/Downloads/memcached-3.1.3/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR’
flag during linking and do at least one of the following:
– add LIBDIR to the `LD_LIBRARY_PATH’ environment variable
during execution
– add LIBDIR to the `LD_RUN_PATH’ environment variable
during linking
– use the `-Wl,–rpath -Wl,LIBDIR’ linker flag
– have your system administrator add LIBDIR to `/etc/ld.so.conf’

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
———————————————————————-

Build complete.
Don’t forget to run ‘make test’.

[email protected]:~/Downloads/memcached-3.1.3$ sudo make install
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/
[email protected]:~/Downloads/memcached-3.1.3$ cd /usr/local/php/etc/
[email protected]:/usr/local/php/etc$ sudo vim php.ini
[email protected]:/usr/local/php/etc$ tar -zxvf memcache-3.0.8.tgz ^C
[email protected]:/usr/local/php/etc$ sudo systemctl reload php-fpm
[email protected]:/usr/local/php/etc$

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据