简体   繁体   English

如何在Mac上安装PEAR

[英]How to install PEAR on Mac

I have Mac 10.5.8, trying to install PEAR. 我有Mac 10.5.8,试图安装PEAR。

I believe at pear.php.net any version of Mac > 10.4 does not include PEAR in it. 我相信在pear.php.net上,Mac> 10.4的任何版本都不包含PEAR。

Not sure if this is true or not, but when I go to the terminal and type in 不知道这是不是真的,但是当我去终端输入

pear -V or which pear or pear config-show

I get nothing- no error or messages. 我什么也没收到-没有错误或消息。 I guess I can assume I don't have pear install? 我想我可以假设我没有安装梨子吗?

So then I tried in the terminal app: 因此,我尝试在终端应用程序中:

$ curl http://pear.php.net/go-pear | php

I get the following error message: 我收到以下错误消息:

-bash: $: command not found

Can someone give me steps to installing PEAR. 谁能给我安装梨的步骤。

Thank you, 谢谢,

Ken

At the terminal, you just need to type: 在终端上,您只需要输入:

curl http://pear.php.net/go-pear > go-pear.php
sudo php -q go-pear.php

Then you'll have to edit your php.ini and change the value of include_path 然后,您必须编辑php.ini并更改include_path的值

I followed this page and it worked correctly. 我关注了此页面,它正常工作。

http://clickontyler.com/blog/2008/01/how-to-install-pear-in-mac-os-x-leopard/ http://clickontyler.com/blog/2008/01/how-to-install-pear-in-mac-os-x-leopard/

尝试使用MAMPZend Server CE ,它们都随附PEAR。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM