【问题标题】:Not able to install php memcache无法安装 php memcache
【发布时间】:2015-07-15 18:31:19
【问题描述】:

当我运行 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' 但它给出了同样的错误。

我尝试了手动的方式,./configuremakemake install,但结果是一样的。

如何安装内存缓存?

【问题讨论】:

    标签: memcached homebrew


    【解决方案1】:

    我运行以下命令并安装它。

    brew link --force zlib
    brew install php56-memcache
    

    【讨论】:

      【解决方案2】:

      这对我有用 [#1637],只需运行

      xcode-select --install
      brew install php{xx}-memcache
      

      【讨论】:

        猜你喜欢
        • 2010-12-18
        • 1970-01-01
        • 1970-01-01
        • 2016-09-29
        • 2012-08-13
        • 2013-01-03
        • 2022-12-23
        • 1970-01-01
        • 2014-03-25
        相关资源
        最近更新 更多