Where to find MAMP server components and Libraries

和自甴很熟 提交于 2019-11-30 19:44:52

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

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.

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

I struggled with the same as well. Installing was a pain because MAMP libraries are no longer publicly available. But once I got what the library components was expected to do as well, it was actually relatively simple.

You can simply download the latest php version here -: http://php.net/releases/index.php, extract it's content and insert it content below.

The path looks like this for me /Applications/MAMP/bin/php/php5.5.3/include/php . I manually create the folder include, and then the extracted download content here in the php folder.

After that ./configure worked, and then I just did pecl install uploadprogress. Add that extension to the relevant php.ini file (for the version) -: extensions=uploadprogress.so into your php.ini

Cheers Pratik

yeeking

I've got this running with MAMP 3.2.1 on OS X 10.10.5 Yosemite. Here's the commands I ran:

download the php source code: http://us2.php.net/get/php-5.6.7.tar.bz2/from/a/mirror

go to the downloads folder

cd ~/Downloads

extract the tarball

tar -xzvf ./php-5.6.7.tar.bz2

rename the resulting folder to php:

mv php-5.6.7 php

move it

mv php /Applications/MAMP/bin/php/php5.6.7/include/

install the Xcode command line tools:

xcode-select --install

run configure and build something!

cd /Applications/MAMP/bin/php/php5.6.7/include/php
./configure
pecl install uploadprogress

Thanks to:

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

and

How to fix, 'PHP' make, in Mac OS X (10.9.4)?

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!