【问题标题】:How to install php5 curl in mac osx snow leopard?如何在mac osx雪豹中安装php5 curl?
【发布时间】:2009-10-03 08:50:14
【问题描述】:

如何在 mac osx snow leopard 中安装 php5 curl 模块或任何其他 php5 模块?

在 Ubuntu 9.04 我正在使用:

sudo apt-get install php5-curl

我已经尝试过谷歌搜索,但找不到解决方案。

【问题讨论】:

    标签: php macos osx-snow-leopard


    【解决方案1】:

    我会通过macports 安装它。一旦你安装了 mac 端口,你可以使用它来构建然后使用命令安装 php5 curl

    sudo port install php5-curl
    

    通过使用端口搜索功能,我能够确定 mac 端口包名称是什么:

    port search curl
    

    编辑:您必须在您的机器上安装 Apple 开发人员工具(X 代码)才能使 mac 端口工作。 X Code 可以从 Apple 免费下载。它也应该在您的第二张 Snow Leopard 安装光盘上。

    作为一名在 Apple 机器上工作的开发人员,我发现端口必不可少。我很少在不依赖它的情况下完成整个项目,尤其是当我使用大量开源库时。值得花一些时间环顾四周,看看里面还有什么。

    【讨论】:

    • 剩余安装时间,不到一分钟。 - 已经 15 分钟了。嗯……
    • 安装php5-curl时出现错误aftermathew: $ sudo port install php5-curl ---> Computing dependencies for php5-curlError: Unable to execute port: can't read "build.cmd ": 未能在路径中找到 'make': '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' 或其 MacPorts 配置时间位置,你搬了吗?
    • 哦,我忘了说你必须有 Apple 开发者工具(在你可以使用 Mac 端口之前安装 X 代码。Mac 端口使用 Apple 开发者工具来构建你的包。看来你没有在你的机器上制作。安装 X Code 会给你制作。
    • 最新版本的 XCode for Mountain Lion 将工具与单个安装程序分开。您需要安装 XCode 命令行工具。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-05-09
    • 2010-12-25
    • 2011-05-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-03
    • 1970-01-01
    相关资源
    最近更新 更多