configure的报错:
checking that Tokyo Tyrant is at least version 1.1.24... yes
checking for Tokyo Cabinet... not found
configure: error: Please reinstall the Tokyo Cabinet distribution
在config.m4里有写:
PHP_ARG_WITH(tokyo-tyrant, whether to enable tokyo tyrant support,
[ --with-tokyo-tyrant[=DIR] Enable tokyo tyrant support. DIR is the prefix to Tokyo Tyrant installation directory.], yes)
PHP_ARG_WITH(tokyo-cabinet-dir, directory of the Tokyo Cabinet installation,
[ --with-tokyo-cabinet-dir[=DIR] DIR is the prefix to Tokyo Cabinet installation directory.], yes)
PHP_ARG_ENABLE(tokyo-tyrant-session, whether to enable tokyo tyrant session handler support,
[ --disable-tokyo-tyrant-session Disables tokyo tyrant session handler support], yes, no)
指定TT和TC的路径就好了
./configure --with-tokyo-tyrant=/usr/local/tokyotyrant --with-tokyo-cabinet-dir=/usr/local/tokyocabinet