我已经尝试按照所有关于在 MAMP 环境下安装 PHP OAuth 扩展的教程进行操作,但由于某种原因无法加载它.
I have tried following ALL tutorials out there on getting PHP OAuth extension installed under the MAMP environment, but can't get it to load for some reason.
我使用 MAMP 1.9 和 PHP 5.3.2
I am using MAMP 1.9 with PHP 5.3.2
我最近的教程是:http://lifeofadev.com/2011/03/09/mac-os-x-installing-oauth-so-into-xampp-mamp/
有没有其他人有过让它发挥作用的经验?
Does anyone else have experience with getting this to work?
谢谢!丹尼斯
升级到 MAMP 2.0 for PHP 5.2.17 后,我按照以下步骤安装了 >oauth 模块通过 pecl
After upgrading to MAMP 2.0 for PHP 5.2.17 I followed these steps to install the oauth module through pecl
针对下载的 php 运行配置.不要构建它.
Run configure against the downloaded php. Do not build it.
cd/Applications/MAMP/bin/php/php5.2.17/include/php;./configure
cd /Applications/MAMP/bin/php/php5.2.17/include/php; ./configure
删除损坏的梨配置:
mv/Applications/MAMP/bin/php/php5.2.17/conf/pear.conf/Applications/MAMP/bin/php/php5.2.17/conf/pear.conf.bak
mv /Applications/MAMP/bin/php/php5.2.17/conf/pear.conf /Applications/MAMP/bin/php/php5.2.17/conf/pear.conf.bak
编译 oauth
cd/Applications/MAMP/bin/php/php5.2.17/bin;./pecl 安装 oauth
cd /Applications/MAMP/bin/php/php5.2.17/bin; ./pecl install oauth
更新 php.ini 并添加 extension=oauth.so 这可以在 MAMP 中的 File -> Edit Template -> PHP -> PHP 5.2.17 php.ini 下完成
Update php.ini and add extension=oauth.so This can be done in MAMP under File -> Edit Template -> PHP -> PHP 5.2.17 php.ini
这篇关于在 MAMP 环境中安装 PHP OAuth的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!