歡迎您光臨本站 註冊首頁

安裝PHP擴展memcached-1.4.5遇到的問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

安裝PHP擴展memcached-1.4.5遇到的問題

請問我在安裝PHP擴展memcached-1.4.5時,編譯的時候總提示如下,請問是什麼原因?謝謝。
# ./configure --with-php-config=/usr/local/php/bin/php-config --with-libevent=/usr/local/libevent/
configure: WARNING: unrecognized options: --with-php-config
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for icc in use... no
checking for Sun cc in use... no
checking for gcc option to accept ISO C99... -std=gnu99
checking whether gcc -std=gnu99 and cc understand -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
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 for gcov... /usr/bin/gcov
checking for main in -lgcov... yes
checking for libevent directory... /usr/local/libevent/
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for library containing umem_cache_create... no
checking for library containing gethugepagesizes... no
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inttypes.h... (cached) yes
checking for print macros for integers (C99 section 7.8.1)... yes
checking for an ANSI C-conforming const... yes
checking for socklen_t... yes
checking for endianness... little
checking for htonll... no
checking for library containing pthread_create... none required
checking for mlockall... yes
checking for getpagesizes... no
checking for memcntl... no
checking for sigignore... yes
checking for alignment... need
checking for setppriv... no
checking umem.h usability... no
checking umem.h presence... no
checking for umem.h... no
checking for xml2rfc... no
checking for xsltproc... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
configure: WARNING: unrecognized options: --with-php-config
《解決方案》

《解決方案》

很明顯是--with-php-config不對,而應該是--with-config-file-path
《解決方案》

《解決方案》

本帖最後由 xnlg 於 2010-08-17 21:38 編輯

PHP的擴展是http://pecl.php.net/package/memcache才對,樓主安裝的是memcached伺服器 http://memcached.org/ 兩個都需要安裝的
《解決方案》

xnlg 說的清楚,我明白了。謝謝。:)

[火星人 ] 安裝PHP擴展memcached-1.4.5遇到的問題已經有532次圍觀

http://coctec.com/docs/service/show-post-16776.html