如何在Mac OS X中升级PHP? [英] How do I upgrade PHP in Mac OS X?

查看:124
本文介绍了如何在Mac OS X中升级PHP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得这是一个令人费解的问题,但是奇怪的是,这个问题的文献记载很少.

I feel this is an awfully obtuse question to ask, but strangely, this problem is poorly documented.

我想升级PHP,但是有几个问题:

I would like to upgrade PHP, but there are several problems:

  • 没有内置的软件包管理器. MacPorts无法将php识别为已安装的软件包,因为它本身并未安装PHP.
  • 正在运行locate php表示可能有很多依赖项.
  • 我不知道如何安装php,因为它已包含在操作系统中,所以我不知道应该从源代码安装还是下载二进制文件.我也不知道在不破坏依赖关系的情况下卸载先前版本的正确方法.
  • There is no built-in package manager. MacPorts doesn't recognize php as an installed package because it didn't install PHP itself.
  • Running locate php indicates there are probably many dependencies.
  • I don't know HOW php was installed, as it was included with the OS, so I don't know whether I should install from source or download binaries. I also don't know the proper way to uninstall the previous version without breaking dependencies.

我正在豹子上奔跑.我有一种感觉,苹果不希望您升级.购买雪豹并进行升级是否可以解决此问题(以及将来的类似问题)?

I am running on Leopard. I have a feeling Apple doesn't want you to upgrade. Would buying Snow Leopard and upgrade solve this problem (and future ones like it)?

推荐答案

您可能想查看Marc Liyanage的PHP软件包.它带有一个不错的Mac OS X安装程序包,您可以双击它.他使它保持最新状态.

You may want to check out Marc Liyanage's PHP package. It comes in a nice Mac OS X installer package that you can double-click. He keeps it pretty up to date.

http://php-osx.liip.ch/

此外,尽管升级到Snow Leopard将来不会帮助您进行PHP更新,但它可能会为您提供更新版本的PHP.我正在运行OS X 10.6.2,它具有PHP 5.3.0.

Also, although upgrading to Snow Leopard won't help you do PHP updates in the future, it will probably give you a newer version of PHP. I'm running OS X 10.6.2 and it has PHP 5.3.0.

这篇关于如何在Mac OS X中升级PHP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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