当我运行brew install php56-memcache
时,我收到以下错误。
checking whether to enable memcache session handler support... yes
checking for the location of ZLIB... no
checking for the location of zlib... configure: error: memcache support
requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB
include and library are located
我在brew list
中有zlib。
autoconf jpeg memcached php56 ruby-build
freetype libevent mhash php56-igbinary unixodbc
gettext libmemcached mysql php56-memcached vim
git libpng node pkg-config zlib
icu4c mcrypt openssl rbenv
我试过`bbrew install php56-memcache --with-zlib-dir = / usr / local / Cellar / zlib / 1.2.8'但是它给出了同样的错误。
我尝试了一种手动方式./configure
,make
,make install
,但效果相同。
如何安装memcache?
答案 0 :(得分:0)
我运行以下内容并安装。
$number = 1;
while ($number <= 10) {
echo str_pad ($number, 7, '0', STR_PAD_LEFT), '<br>';
$number++; // or any rule you want.
}
答案 1 :(得分:0)
这为我做了 [#1637],只需运行
xcode-select --install
brew install php{xx}-memcache