在哪里可以找到MAMP服务器组件和库 [英] Where to find MAMP server components and Libraries

查看:59
本文介绍了在哪里可以找到MAMP服务器组件和库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在MAMP php中安装pecl_http. 我收到以下错误.

I am trying to install pecl_http in MAMP php. I am getting the following errors.

grep:/Applications/MAMP/bin/php/php5.5.10/include/php/main/php.h:没有这样的文件或目录
grep:/Applications/MAMP/bin/php/php5.5.10/include/php/Zend/zend_modules.h:没有这样的文件或目录
grep:/Applications/MAMP/bin/php/php5.5.10/include/php/Zend/zend_extensions.h:没有这样的文件或目录
配置:

grep: /Applications/MAMP/bin/php/php5.5.10/include/php/main/php.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.5.10/include/php/Zend/zend_modules.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.5.10/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:

对此进行了研究,发现我们需要MAMP服务器组件和库.

Did a research on that and found out we need MAMP server components and Libraries.

下载此组件后,找到与我的PHP版本相对应的zip文件,将其解压缩到PHP安装中的新目录中,然后运行configure脚本.

After downloading this component, find the zip file corresponding to my version of PHP, extract it into a new directory in your PHP installation and run the configure script.

我看到的所有帖子都指向此链接 http://www.mamp.info/zh/下载/.但是我在那里找不到任何东西.在其他几个链接中,我找到了旧版本php(直到5.3)的组件.

All the posts I saw points to this link http://www.mamp.info/en/downloads/ . But I cant find anything there. And in few other links I found the components for older versions php (till 5.3).

此安装取决于太多的事情,并且需要很多时间.请让我知道,如果有人知道在哪里可以找到PHP5.5.10

This installation depend on too many things and takes a lot of time. Please let me know, if any one know where can I find these MAMP SERVER components and Libraries for PHP5.5.10

附加在终端FYI中创建的大多数输出​​线.

Attaching most of the output lines created in my terminal FYI.

$ sudo pecl安装pecl_http
密码:
正在下载pecl_http-2.0.6.tgz ...
开始下载pecl_http-2.0.6.tgz(152,827字节)
......................完成:152,827字节
正在下载raphf-1.0.4.tgz ...
开始下载raphf-1.0.4.tgz(7,232字节)
...完成:7,232字节 正在下载propro-1.0.0.tgz ...
开始下载propro-1.0.0.tgz(6,217字节)
...完成:6,217字节 4个源文件,正在构建 警告:php_bin/Applications/MAMP/bin/php/php5.5.10/bin/php似乎具有后缀/php5.5.10/bin/php,但配置变量php_suffix不匹配
运行:phpize grep:/Applications/MAMP/bin/php/php5.5.10/include/php/main/php.h:无此类文件或目录
grep:/Applications/MAMP/bin/php/php5.5.10/include/php/Zend/zend_modules.h:没有这样的文件或目录
grep:/Applications/MAMP/bin/php/php5.5.10/include/php/Zend/zend_extensions.h:无此类文件或目录
配置为:
PHP Api版本: Zend Module Api编号: Zend Extension Api编号: 是否启用raphf支持[是]:是 在/usr/local/pear/pear-build-rootXNkOc5/raphf-1.0.4中构建 运行:/usr/local/pear/raphf/configure --enable-raphf = yes 检查处理长行的grep和-e .../usr/bin/grep 正在检查egrep .../usr/bin/grep -E 正在检查不会截断输出的sed .../usr/bin/sed 正在检查抄送...抄送 检查C编译器是否工作...是 检查C编译器的默认输出文件名... a.out 正在检查可执行文件的后缀... 检查我们是否交叉编译...否 检查目标文件的后缀... o 检查我们是否正在使用GNU C编译器...是 检查cc是否接受-g ...是 正在检查cc选项以接受ISO C89 ...不需要 检查如何运行C预处理程序... cc -E 正在检查icc ...否 正在检查是否有阳光...否 检查cc是否同时理解-c和-o ...是 正在检查系统库目录... lib 检查编译器是否支持-R ...否 检查编译器是否支持-Wl,-rpath,...是 正在检查构建系统类型... x86_64-apple-darwin12.5.0 检查主机系统类型... x86_64-apple-darwin12.5.0 检查目标系统类型... x86_64-apple-darwin12.5.0 正在检查PHP前缀.../Applications/MAMP/bin/php/php5.5.10 检查PHP包括... -I/Applications/MAMP/bin/php/php5.5.10/include/php -I/Applications/MAMP/bin/php/php5.5.10/include/php/main -I/Applications/MAMP/bin/php/php5.5.10/include/php/TSRM -I/Applications/MAMP/bin/php/php5.5.10/include/php/Zend -I/Applications/MAMP/bin/php/php5.5.10/include/php/ext -I/Applications/MAMP/bin/php/php5.5.10/include/php/ext/date/lib 正在检查PHP扩展目录.../Applications/MAMP/bin/php/php5.5.10/lib/php/extensions/no-debug-non-zts-20121212 正在检查PHP安装的标头前缀.../Applications/MAMP/bin/php/php5.5.10/include/php 检查是否启用了调试...否 检查是否启用了zts ...否 正在检查re2c ...否 配置:警告:如果要重新生成PHP解析器,则需要re2c 0.13.4或更高版本. 正在检查gawk ...否 正在检查nakk ...否 检查awk ... awk 检查awk是否损坏...否 检查是否启用raphf支持...是的,共享的 检查cc使用的ld .../usr/bin/ld 检查链接器(/usr/bin/ld)是否为GNU ld ...否
......
^
产生1个错误.
make:*** [php_propro.lo]错误1
错误:"make"失败
64个源文件,正在构建

$ sudo pecl install pecl_http
Password:
downloading pecl_http-2.0.6.tgz ...
Starting to download pecl_http-2.0.6.tgz (152,827 bytes)
......................done: 152,827 bytes
downloading raphf-1.0.4.tgz ...
Starting to download raphf-1.0.4.tgz (7,232 bytes)
...done: 7,232 bytes downloading propro-1.0.0.tgz ...
Starting to download propro-1.0.0.tgz (6,217 bytes)
...done: 6,217 bytes 4 source files, building WARNING: php_bin /Applications/MAMP/bin/php/php5.5.10/bin/php appears to have a suffix /php5.5.10/bin/php, but config variable php_suffix does not match
running: phpize grep: /Applications/MAMP/bin/php/php5.5.10/include/php/main/php.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.5.10/include/php/Zend/zend_modules.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.5.10/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version: Zend Module Api No: Zend Extension Api No: whether to enable raphf support [yes] : yes building in /usr/local/pear/pear-build-rootXNkOc5/raphf-1.0.4 running: /usr/local/pear/raphf/configure --enable-raphf=yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-apple-darwin12.5.0 checking host system type... x86_64-apple-darwin12.5.0 checking target system type... x86_64-apple-darwin12.5.0 checking for PHP prefix... /Applications/MAMP/bin/php/php5.5.10 checking for PHP includes... -I/Applications/MAMP/bin/php/php5.5.10/include/php -I/Applications/MAMP/bin/php/php5.5.10/include/php/main -I/Applications/MAMP/bin/php/php5.5.10/include/php/TSRM -I/Applications/MAMP/bin/php/php5.5.10/include/php/Zend -I/Applications/MAMP/bin/php/php5.5.10/include/php/ext -I/Applications/MAMP/bin/php/php5.5.10/include/php/ext/date/lib checking for PHP extension directory... /Applications/MAMP/bin/php/php5.5.10/lib/php/extensions/no-debug-non-zts-20121212 checking for PHP installed headers prefix... /Applications/MAMP/bin/php/php5.5.10/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... no checking for nawk... no checking for awk... awk checking if awk is broken... no checking whether to enable raphf support... yes, shared checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no
...............
^
1 error generated.
make: *** [php_propro.lo] Error 1
ERROR: `make' failed
64 source files, building

产生了1个错误.
make:*** [php_http_buffer.lo]错误1
错误:"make"失败

1 error generated.
make: *** [php_http_buffer.lo] Error 1
ERROR: `make' failed

推荐答案

现有一些与此类问题相关的帖子中提供了一些技巧. 我在 http://us2.php中找到了php5.5.10的组件.net/get/php-5.5.10.tar.gz/from/a/mirror

Got few tips from some existing posts related to this kind of issues. I found the component for php5.5.10 in http://us2.php.net/get/php-5.5.10.tar.gz/from/a/mirror

按照以下步骤在Mac OS 10.8的MAMP上安装pecl_http:

Followed the steps below to install pecl_http on my MAMP on Mac OS 10.8:

Install brew
Install autoconf using brew brew install autoconf
Download the source code for PHP 5.5.10 (or whatever version you are using) from php.net
Extract the source code into /Applications/MAMP/bin/php/php5.5.10/include
Rename the extracted file from "php-5.5.10" to "php"
cd /Applications/MAMP/bin/php/php5.5.10/include/php
Run ./configure
Add extension=http.so to my php.ini file
Restart MAMP

我所有的扩展程序都已安装.

All my extensions are installed.

特别感谢joshua.paling和user387049提供了上述所有信息.

Special thanks to joshua.paling and user387049 for all the above information.

这篇关于在哪里可以找到MAMP服务器组件和库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆