2014-02-24 120 views
1

我想在solaris上用pear編譯memcache,但最終出現了以下錯誤。我是新來的solaris無法弄清楚這個問題。Solaris上的Memcache安裝

 
-bash-3.2$ sudo pecl install memcache 
Password: 
downloading memcache-2.2.7.tgz ... 
Starting to download memcache-2.2.7.tgz (36,459 bytes) 
..........done: 36,459 bytes 
11 source files, building 
WARNING: php_bin /opt/csw/php5/bin/php appears to have a suffix 5/bin/php, but config variable php_suffix does not match 
running: phpize 
Configuring for: 
PHP Api Version:   20090626 
Zend Module Api No:  20090626 
Zend Extension Api No: 220090626 
Enable memcache session handler support? [yes] : yes 
building in /tmp/pear/temp/pear-build-rootPIaWpJ/memcache-2.2.7 
running: /tmp/pear/temp/memcache/configure --enable-memcache-session=yes 
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep 
checking for egrep... /usr/xpg4/bin/grep -E 
checking for a sed that does not truncate output... /opt/csw/bin/gsed 
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... no 
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... yes 
checking whether cc understands -c and -o together... yes 
checking for system library directory... lib 
checking if compiler supports -R... yes 
checking build system type... i386-pc-solaris2.10 
checking host system type... i386-pc-solaris2.10 
checking target system type... i386-pc-solaris2.10 
checking for PHP prefix... /opt/csw/php5 
checking for PHP includes... -I/opt/csw/php5/include/php -I/opt/csw/php5/include/php/main -I/opt/csw/php5/include/php/TSRM -I/opt/csw/php5/include/php/Zend -I/opt/csw/php5/include/php/ext -I/opt/csw/php5/include/php/ext/date/lib 
checking for PHP extension directory... /opt/csw/php5/lib/php/extensions/no-debug-non-zts-20090626 
checking for PHP installed headers prefix... /opt/csw/php5/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... configure: error: Cannot find php_session.h 
ERROR: `/tmp/pear/temp/memcache/configure --enable-memcache-session=yes' failed 

如果有人能幫我解決問題,那會很棒。

謝謝, Swaroop。

+1

得到它解決,需要安裝php5_session –

回答

0

我們設法通過相同的命令安裝memcache,但是當它要求會話保留在memcache中時,您需要說'不'然後才能正確安裝。

檢查如果這能幫助你..

感謝, 維傑

+1

感謝維傑,其工作。但是如果我們想要在memcache中存儲會話,那麼我們需要通過安裝php5_session庫來修復它。 –