相关疑难解决方法(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万
查看次数

安装/激活运行MAMP的PHP"intl"扩展

好吧,我在我的MacBook Pro上运行MAMP 1.9.5,其中包括PHP 5.3.5.

"intl"扩展名未包含/激活,我尝试了很多不同的方法来安装它("./pecl install intl"似乎没有这样做),但无法使其工作.

我也"谷歌搜索我的屁股",但找不到任何提示.

谁知道怎么做?或者,或者,如何安装我自己的MySQL + Apache + PHP(并包括"intl")?

我正在尝试这样做才能运行Symfony2.所以如果您对如何在Mac上安装MySQL + Apache + PHP + Symfony2有任何建议,那也欢迎:)

php macos mamp php-extension symfony

13
推荐指数
2
解决办法
3万
查看次数

PHP配置错误:请使用--with-iconv = <DIR>指定iconv的安装前缀

我正在尝试在MAMP上配置PHP 5.5,这篇文章如下:

尝试在Mac OS上的MAMP中使用PECL安装OAUTH时遇到问题.

将我下载的PHP文件夹移入MAMP/bin/php(我也尝试创建/php5.5.14/include/php上面帖子中描述的目录)并运行之后./configure.

我收到一个错误:

checking for iconv support... yes
checking for iconv... no
checking for libiconv... no
configure: error: Please specify the install prefix of iconv with --with-iconv=< DIR >
Run Code Online (Sandbox Code Playgroud)

我在哪里可以"指定安装前缀"或如何解决此问题?

谢谢!!

php mamp osx-mavericks

8
推荐指数
3
解决办法
8046
查看次数

安装pecl - 致命错误:找不到'php.h'文件

我正在尝试安装PECL OAuth,但我收到一条错误消息(我使用macbook mountain lion).

 In file included from /private/tmp/pear/temp/oauth/oauth.c:14:
/private/tmp/pear/temp/oauth/php_oauth.h:20:10: fatal error: 'php.h' file not found
#include "php.h"
     ^
1 error generated.
make: *** [oauth.lo] Error 1
ERROR: `make' failed
Run Code Online (Sandbox Code Playgroud)

有人知道怎么解决吗?

谢谢,尼米

php macos oauth pecl

7
推荐指数
0
解决办法
7298
查看次数

在MAMP环境中安装PHP OAuth

我已经尝试了关于在MAMP环境下安装PHP OAuth扩展的所有教程,但由于某些原因无法加载它.

我正在使用MAMP 1.9和PHP 5.3.2

我关注的最新教程是:http://lifeofadev.com/2011/03/09/mac-os-x-installing-oauth-so-into-xampp-mamp/

有没有其他人有这方面的工作经验?

谢谢!丹尼斯

php mamp oauth

5
推荐指数
1
解决办法
7884
查看次数

如何在Mac OS X(10.9.4)中修复'PHP'?

我在OS X Mavericks上添加了对PHP的postgres支持(10.9.4).

以下步骤来自[博客](http://blog.rupey.org/post/63221360055/adding-postgres-support-to-php-on-os-x-mavericks)...修复了错误,并达到了直到'制造'.

在执行'make'时我得到以下错误. - - - 错误 - - -

users-mbp:pdo_pgsql RK$ pwd
/usr/include/php/ext/pdo_pgsql

users-mbp:pdo_pgsql RK$ make
/bin/sh /usr/include/php/ext/pdo_pgsql/libtool --mode=compile cc -I/usr/include/php/ext          -I. -I/usr/include/php/ext/pdo_pgsql -DPHP_ATOM_INC -I/usr/include/php/ext/pdo_pgsql/include -I/usr/include/php/ext/pdo_pgsql/main -I/usr/include/php/ext/pdo_pgsql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/Applications/Postgres.app/Contents/Versions/9.3/include  -DHAVE_CONFIG_H  -g -O2   -c /usr/include/php/ext/pdo_pgsql/pdo_pgsql.c -o pdo_pgsql.lo 
 cc -I/usr/include/php/ext -I. -I/usr/include/php/ext/pdo_pgsql -DPHP_ATOM_INC -I/usr/include/php/ext/pdo_pgsql/include -I/usr/include/php/ext/pdo_pgsql/main -I/usr/include/php/ext/pdo_pgsql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/Applications/Postgres.app/Contents/Versions/9.3/include -DHAVE_CONFIG_H -g -O2 -c /usr/include/php/ext/pdo_pgsql/pdo_pgsql.c  -fno-common -DPIC -o .libs/pdo_pgsql.o
In file included from /usr/include/php/ext/pdo_pgsql/pdo_pgsql.c:25:
In file included from /usr/include/php/main/php.h:34: …
Run Code Online (Sandbox Code Playgroud)

php postgresql macos makefile

4
推荐指数
1
解决办法
5646
查看次数

标签 统计

php ×6

macos ×4

mamp ×3

oauth ×2

osx-mavericks ×2

php-extension ×2

makefile ×1

pecl ×1

postgresql ×1

symfony ×1