相关疑难解决方法(0)

无法在OS X 10.9 Mavericks中phpize或配置扩展

我正在尝试在OS X 10.9 Mavericks上构建memcached扩展,以便与内置的PHP 5.4一起使用,最初我尝试pecl install memcached但是抛出了以下内容.

checking for zlib location... configure: error: memcached support requires ZLIB. Use --with-zlib-dir=<DIR> to specify the prefix where ZLIB headers and library are located
ERROR: `/private/tmp/pear/install/memcached/configure' failed
Run Code Online (Sandbox Code Playgroud)

所以我创建了一个tmp目录并执行pecl download memcached,解压缩代码并cd到相应的目录.

试图phpize它返回以下内容:

grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:        
Zend Module Api No:     
Zend Extension Api No:  
Run Code Online (Sandbox Code Playgroud)

我刚刚安装了zlib并在我的安装时指向./configure. ./configure --with-zlib-dir=/usr/local/Cellar/zlib/1.2.8我收到以下错误消息:

checking …
Run Code Online (Sandbox Code Playgroud)

php macos php-extension osx-mavericks

34
推荐指数
2
解决办法
5万
查看次数

标签 统计

macos ×1

osx-mavericks ×1

php ×1

php-extension ×1