andy@AndyMacBookPro:/usr/local/webdata/andy/fanli/citic$ c
andy@AndyMacBookPro:/usr/local/webdata/andy/fanli/citic$ pear install PEAR_Exception
downloading PEAR_Exception-1.0.0.tgz ...
Starting to download PEAR_Exception-1.0.0.tgz (5,202 bytes)
.....done: 5,202 bytes
install ok: channel://pear.php.net/PEAR_Exception-1.0.0
安裝完之後我這裏的Exception.php目錄爲:
/usr/local/Cellar/php54/5.4.30/lib/php/PEAR/Exception.php
目錄跟brew安裝的php54是一樣的,原因是因爲我是通過pear安裝的PEAR_Exception,而我的pear也是通過brew安裝的,所以能自動匹配到相應目錄。