在 MAMP 环境中安装 PHP OAuth

编程入门 行业动态 更新时间:2024-10-26 16:22:24
本文介绍了在 MAMP 环境中安装 PHP OAuth的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试按照所有关于在 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/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

下载MAMP 服务器组件和库 特别是您需要 php-5.2.17.tar.gz将 php-5.2.17.tar.gz 解压到/Applications/MAMP/bin/php/php5.2.17/include/php

针对下载的 php 运行配置.不要构建它. Download MAMP Server components and libraries Specifically you want php-5.2.17.tar.gz Uncompress php-5.2.17.tar.gz to /Applications/MAMP/bin/php/php5.2.17/include/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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-03-28 23:44:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/744735.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:环境   MAMP   OAuth   PHP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!