回應 AD

顯示具有 BlueHost 標籤的文章。 顯示所有文章
顯示具有 BlueHost 標籤的文章。 顯示所有文章

2014年3月7日 星期五

在 BlueHost 安裝 xcache 3.1 筆記

在 BlueHost 安裝 xcache 3.1 筆記

user home 用 ~ 表示


cd ~
mkdir modules xcache3
cd xcache3

# wget http://xcache.lighttpd.net/pub/Releases/3.1.0/xcache-3.1.0.tar.gz
--2014-02-28 13:53:16-- http://xcache.lighttpd.net/pub/Releases/3.1.0/xcache-3.1.0.tar.gz
Resolving xcache.lighttpd.net... 188.40.103.19, 2a01:4f8:100:8082::2
Connecting to xcache.lighttpd.net|188.40.103.19|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 171379 (167K) [application/octet-stream]
Saving to: `xcache-3.1.0.tar.gz'

100%[======================================>] 171,379 143K/s in 1.2s

2014-02-28 13:53:18 (143 KB/s) - `xcache-3.1.0.tar.gz' saved [171379/171379]

# tar -zxf xcache-3.1.0.tar.gz
# cd xcache-3.1.0

# phpize

Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519


./configure --enable-xcache


# ./configure --enable-xcache
checking for grep that handles long lines and -e... /ramdisk/bin/grep
checking for egrep... /ramdisk/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/i nclude/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/ph p/ext/date/lib
checking for PHP extension directory... /usr/lib64/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... invalid
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for XCache support... yes, shared
checking for XCache handle of compile time constant... yes
checking for XCache optimizer... no
checking for XCache coverager... no
checking for XCache assembler... no
checking for XCache disassembler... no
checking for XCache encoder... no
checking for XCache decoder... no
checking for XCache self test... no
checking for XCache self test... no
checking for gawk... /usr/bin/gawk
checking for m4... /usr/bin/m4
checking for grep... (cached) /ramdisk/bin/grep
checking for sed... (cached) /usr/bin/sed
checking for indent... /usr/bin/indent
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /ramdisk/bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
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 for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libra ries... 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
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands

[~/xcache3/xcache-3.1.0]# make
cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -E ~/xcache3/xcache-3.1.0/includes.c -o ./includes.i
./structinfo.m4 is optional if XCache test is not enabled, feel free if it awk failed to produce it
LANG=C /usr/bin/gawk -f ~/xcache3/xcache-3.1.0/gen_structinfo.awk < ./includes.i > ./structinfo.m4.tmp && mv ./structinfo.m4.tmp ./structinfo.m4
/usr/bin/m4 -B 102400 -D srcdir='`'"~/xcache3/xcache-3.1.0'" -D builddir='`'".'" ~/xcache3/xcache-3.1.0/processor/main.m4 > ./processor.out.c.tmp
/usr/bin/m4: Warning: `m4 -B' may be removed in a future release
AUTOCHECK INFO: runtime autocheck Disabled (optimized build)
AUTOCHECK INFO: zend_compiled_variable: processor looks good
AUTOCHECK INFO: zend_try_catch_element: processor looks good
AUTOCHECK INFO: zend_brk_cont_element: processor looks good
AUTOCHECK INFO: HashTable: processor looks good
AUTOCHECK INFO: zval: processor looks good
AUTOCHECK INFO: zend_arg_info: processor looks good
AUTOCHECK INFO: zend_constant: processor looks good
AUTOCHECK INFO: zend_property_info: processor looks good
AUTOCHECK WARN: zend_trait_method_reference: missing structinfo, dont panic
AUTOCHECK WARN: zend_trait_alias: missing structinfo, dont panic
AUTOCHECK WARN: zend_trait_precedence: missing structinfo, dont panic
AUTOCHECK INFO: zend_class_entry: processor looks good
AUTOCHECK INFO: znode: processor looks good
AUTOCHECK INFO: zend_op: processor looks good
AUTOCHECK WARN: zend_literal: missing structinfo, dont panic
AUTOCHECK INFO: zend_op_array: processor looks good
AUTOCHECK INFO: xc_constinfo_t: processor looks good
AUTOCHECK INFO: xc_op_array_info_detail_t: processor looks good
AUTOCHECK INFO: xc_op_array_info_t: processor looks good
AUTOCHECK INFO: xc_funcinfo_t: processor looks good
AUTOCHECK INFO: xc_classinfo_t: processor looks good
AUTOCHECK INFO: xc_autoglobal_t: processor looks good
AUTOCHECK INFO: xc_compilererror_t: processor looks good
AUTOCHECK INFO: xc_entry_data_php_t: processor looks good
AUTOCHECK INFO: xc_entry_t: processor looks good
AUTOCHECK INFO: xc_entry_php_t: processor looks good
AUTOCHECK INFO: xc_entry_var_t: processor looks good
mv ./processor.out.c.tmp ./processor.out.c
/ramdisk/bin/grep "export: " ./processor.out.c | /usr/bin/sed "s/.*export:\(.*\):export.*/\1/g" > ./xc_processor.h
/usr/bin/indent -kr --use-tabs --tab-size 4 -sob -nce -l 160 < ./xc_processor.h > ./xc_processor.h.tmp && mv ./xc_processor.h.tmp ./xc_processor.h
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache.c -o xcache.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache.c -fPIC -DPIC -o .libs/xcache.o
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/util/xc_stack.c -o util/xc_stack.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/util/xc_stack.c -fPIC -DPIC -o util/.libs/xc_stack.o
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/util/xc_trace.c -o util/xc_trace.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/util/xc_trace.c -fPIC -DPIC -o util/.libs/xc_trace.o
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_allocator.c -o xcache/xc_allocator.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_allocator.c -fPIC -DPIC -o xcache/.libs/xc_allocator.o
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_allocator_bestfit.c -o xcache/xc_allocator_bestfit.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_allocator_bestfit.c -fPIC -DPIC -o xcache/.libs/xc_allocator_bestfit.o
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_compatibility.c -o xcache/xc_compatibility.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_compatibility.c -fPIC -DPIC -o xcache/.libs/xc_compatibility.o
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_const_string.c -o xcache/xc_const_string.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_const_string.c -fPIC -DPIC -o xcache/.libs/xc_const_string.o
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_extension.c -o xcache/xc_extension.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_extension.c -fPIC -DPIC -o xcache/.libs/xc_extension.o
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_ini.c -o xcache/xc_ini.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_ini.c -fPIC -DPIC -o xcache/.libs/xc_ini.o
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_mutex.c -o xcache/xc_mutex.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_mutex.c -fPIC -DPIC -o xcache/.libs/xc_mutex.o
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_opcode_spec.c -o xcache/xc_opcode_spec.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_opcode_spec.c -fPIC -DPIC -o xcache/.libs/xc_opcode_spec.o
cp ./processor.out.c ./xc_processor.c.h
/usr/bin/indent -kr --use-tabs --tab-size 4 -sob -nce -l 160 < ./processor.out.c > ./xc_processor.c.h.tmp && mv ./xc_processor.c.h.tmp ./xc_processor.c.h
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_processor.c -o xcache/xc_processor.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_processor.c -fPIC -DPIC -o xcache/.libs/xc_processor.o
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_sandbox.c -o xcache/xc_sandbox.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_sandbox.c -fPIC -DPIC -o xcache/.libs/xc_sandbox.o
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_shm.c -o xcache/xc_shm.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_shm.c -fPIC -DPIC -o xcache/.libs/xc_shm.o
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_shm_mmap.c -o xcache/xc_shm_mmap.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_shm_mmap.c -fPIC -DPIC -o xcache/.libs/xc_shm_mmap.o
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_utils.c -o xcache/xc_utils.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/xcache/xc_utils.c -fPIC -DPIC -o xcache/.libs/xc_utils.o
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=compile cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/mod_cacher/xc_cacher.c -o mod_cacher/xc_cacher.lo
libtool: compile: cc -I. -I~/xcache3/xcache-3.1.0 -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c ~/xcache3/xcache-3.1.0/mod_cacher/xc_cacher.c -fPIC -DPIC -o mod_cacher/.libs/xc_cacher.o
~/xcache3/xcache-3.1.0/mod_cacher/xc_cacher.c: In function 'xc_var_namespace_init_from_stringl':
~/xcache3/xcache-3.1.0/mod_cacher/xc_cacher.c:2322: warning: initialization discards qualifiers from pointer target type
~/xcache3/xcache-3.1.0/mod_cacher/xc_cacher.c: In function 'xc_var_namespace_set_stringl':
~/xcache3/xcache-3.1.0/mod_cacher/xc_cacher.c:2376: warning: initialization discards qualifiers from pointer target type
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=link cc -DPHP_ATOM_INC -I~/xcache3/xcache-3.1.0/include -I~/xcache3/xcache-3.1.0/main -I~/xcache3/xcache-3.1.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o xcache.la -export-dynamic -avoid-version -prefer-pic -module -rpath ~/xcache3/xcache-3.1.0/modules xcache.lo util/xc_stack.lo util/xc_trace.lo xcache/xc_allocator.lo xcache/xc_allocator_bestfit.lo xcache/xc_compatibility.lo xcache/xc_const_string.lo xcache/xc_extension.lo xcache/xc_ini.lo xcache/xc_mutex.lo xcache/xc_opcode_spec.lo xcache/xc_processor.lo xcache/xc_sandbox.lo xcache/xc_shm.lo xcache/xc_shm_mmap.lo xcache/xc_utils.lo mod_cacher/xc_cacher.lo
libtool: link: cc -shared .libs/xcache.o util/.libs/xc_stack.o util/.libs/xc_trace.o xcache/.libs/xc_allocator.o xcache/.libs/xc_allocator_bestfit.o xcache/.libs/xc_compatibility.o xcache/.libs/xc_const_string.o xcache/.libs/xc_extension.o xcache/.libs/xc_ini.o xcache/.libs/xc_mutex.o xcache/.libs/xc_opcode_spec.o xcache/.libs/xc_processor.o xcache/.libs/xc_sandbox.o xcache/.libs/xc_shm.o xcache/.libs/xc_shm_mmap.o xcache/.libs/xc_utils.o mod_cacher/.libs/xc_cacher.o -Wl,-soname -Wl,xcache.so -o .libs/xcache.so
libtool: link: ( cd ".libs" && rm -f "xcache.la" && ln -s "../xcache.la" "xcache.la" )
/bin/sh ~/xcache3/xcache-3.1.0/libtool --mode=install cp ./xcache.la ~/xcache3/xcache-3.1.0/modules
libtool: install: cp ./.libs/xcache.so ~/xcache3/xcache-3.1.0/modules/xcache.so
libtool: install: cp ./.libs/xcache.lai ~/xcache3/xcache-3.1.0/modules/xcache.la
libtool: finish: PATH="/usr/local/jdk/bin:/usr/lib64/qt-3.3/bin:~/perl5/bin:/ramdisk/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11R6/bin:~/bin:/sbin" ldconfig -n ~/xcache3/xcache-3.1.0/modules
----------------------------------------------------------------------
Libraries have been installed in:
~/xcache3/xcache-3.1.0/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'.


[~/xcache3/xcache-3.1.0/modules]# mv xcache.so ~/modules/

php.ini 加上

[xcache-common]
extension_dir = "~/modules/"
extension = xcache.so
[xcache.admin]
;xcache.admin.user = "admin"
;xcache.admin.pass = ""
;xcache.admin.pass = md5($your_password)
;xcache.admin.enable_auth = On
[xcache]
xcache.cacher = On
xcache.size = 128M
xcache.count = 8
xcache.slots = 8K
xcache.ttl = 3600
xcache.gc_interval = 300
xcache.var_size = 64M
xcache.var_count = 1
xcache.var_slots = 8K
xcache.var_ttl = 0
xcache.var_maxttl = 0
xcache.var_gc_interval = 300
xcache.readonly_protection = Off
xcache.mmap_path = "/dev/zero"

; xcache
zend_extension =~/modules/xcache.so
zend_extension_ts = ~/modules/xcache.so