下载安装前注意目录的权限,可以自己新建个目录给权限1、下载pear.phar,没有权限在前面加上sudo
curl -o http://pear.php.net/go-pear.phar
2、安装pear
sudo php -d detect_unicode=0 go-pear.phar
3、测试
pear version
安装成功!
安装完成后如果出现下面这个错误:
cannot install, php_dir for channel “pecl.php.net” is not writeable by the current user
就运行下面这个命令设置目录
pecl config-set php_dir /path/to/new/dir
').addclass('pre-numbering').hide(); $(this).addclass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadein(1700); }); }); 以上就介绍了mac 安装 pecl,包括了mac,ecl方面的内容,希望对php教程有兴趣的朋友有所帮助。