Can't phpize or configure an extension in OS X 10.9 Mavericks

前端 未结 4 608
不思量自难忘°
不思量自难忘° 2020-12-23 11:45

I am trying to build the memcached extension on OS X 10.9 Mavericks for use with the built in PHP 5.4, initially I tried pecl install memcached but that threw t

相关标签:
4条回答
  • 2020-12-23 12:06

    As said above but not using xcode install Try installing pecl manually:

      curl -O http://pear.php.net/go-pear.phar 
      sudo php -d detect_unicode=0 go-pear.phar 
    

    and then:

     sudo pecl install memcache
    

    See more at: http://jason.pureconcepts.net/2012/10/install-pear-pecl-mac-os-x/#sthash.x2LKdqj6.dpuf

    0 讨论(0)
  • 2020-12-23 12:18

    After install XCode5 Command Line Tools as afessler sugest (xcode-select --install) I couldn't do the "sudo pecl install memcache" because pecl was missing. I had to install PEAR and PECL following this guide: http://techtastico.com/post/como-instalar-pear-y-pecl-en-os-x-mavericks/. Then all worked good. Thanks!

    0 讨论(0)
  • 2020-12-23 12:19

    I had this problem and it was due to MAMP not having all the PHP sources.

    I found this really helpful solution that explains how to download and configure them: https://stackoverflow.com/a/11175197/369326

    Note that the MAMP components doesn't include the extras for any versions of PHP higher than php 5.4.10 but you can download the extras from http://php.net/releases.

    0 讨论(0)
  • 2020-12-23 12:31

    run xcode-select --install to install the XCode5 Command Line Tools, then sudo pecl install memcache. You should be good to go.

    0 讨论(0)
提交回复
热议问题