适用于Macports PHP5的Pear安装 [英] Pear install for macports PHP5

查看:44
本文介绍了适用于Macports PHP5的Pear安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在/opt/local/..macports的默认位置中通过macports安装了PHP5.没有用于梨的端口文件.如果我从pear网站进行标准的pear安装,应该将梨放在哪个目录下才能使用PHP?

I have PHP5 installed via macports in /opt/local/..the default location for macports. There's no portfile for pear. If I do a standard pear install from the pear site what directory location should pear be placed in to work with PHP?

推荐答案

虽然curl选项有效,但在更新端口时不会更新.另一种选择:

While the curl option works, it won't update as you update your ports. An alternative:

sudo port install php5 +pear

这将在上面下载的相同位置安装带有pear的php5变体,并且将在更新macports时更新.

This will install the variant of php5 with pear, in the same location as downloading above, and it will update as you update macports.

这篇关于适用于Macports PHP5的Pear安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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