手动下载go-pear.php文件地址是 链接: go-pear.php.,把这个文件另存为go-pear.php,这个文件放在任意目录下都可以,它是执行文件,打开 terminal 输入命令
先输入
$ php
把go-pear.php文件拽到terminal 输入框
$ php /Users/test/go-pear.php
按回车,terminal显示下列信息
// An highlighted block
Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type 'all' to change all of them or simply press Enter to
accept these locations.
1. Installation base ($prefix) : /Users/dandang/pear
2. Temporary directory for processing : /tmp/pear/install
3. Temporary directory