在Mac OS X 10.6上安装PECL [英] Install PECL on Mac OS X 10.6

查看:157
本文介绍了在Mac OS X 10.6上安装PECL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在捆绑的PHP上的Mac OS X 10.6上安装PHP:s PECL处理程序?

Is there any way to install PHP:s PECL handler on Mac OS X 10.6, to be used with the bundled PHP?

推荐答案

迟到总比没有好,但是如果您像我一样,并且直接从php.net安装了PHP(而不是使用Homebrew或Port之类的东西,那么您可以简单地请按照以下链接安装Pear和PECL:

Better late than never, but if you are like me and installed PHP directly from php.net (instead of using something like Homebrew or Port, then you can simply follow the following link to install Pear and PECL:

http://akrabat .com/php/setting-up-php-mysql-on-os-x-10-7-lion/

我们需要梨!由于某种原因,它还没有准备好在Lion上安装,但是 安装phar文件在这里,因此我们只需要运行它即可.

We need PEAR! For some reason, it's not set up ready to on Lion, but the install phar file is here, so we just need to run it.

cd /usr/lib/php
sudo php install-pear-nozlib.phar

Edit:
/etc/php.ini and find the line: ;
  include_path = ".:/php/includes" 
and change it to:
  include_path = ".:/usr/lib/php/pear"
sudo pear channel-update pear.php.net
sudo pecl channel-update pecl.php.net
sudo pear upgrade-all

对我来说很好.

这篇关于在Mac OS X 10.6上安装PECL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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