$ ./pear version PEAR Version: 1.9.4 PHP Version: 5.4.26 Zend Engine Version: 2.4.0驗證php的include path pear的擴展安裝在php的 include path下。
$ ./pear config-get php_dir /home/gang/php/lib/php
$ ./pear Commands: build Build an Extension From C Source bundle Unpacks a Pecl Package channel-add Add a Channel channel-alias Specify an alias to a channel name channel-delete Remove a Channel From the List ...
$ ./pear help install
$ ./pear install LOG運行成功後在 php/lib目錄下會生成Log.php和Log目錄,以及doc目錄 在doc/Log下面有使用例子和說明。
./pear upgrade LOG
log("Log entry $i"); }
$ ./pear remote-list