YUM已經有PEAR套件了
shell># yum install php-pear
下載完成後,更新channel資料
shell># pear channel-update pear.php.net
Retrieving channel.xml from remote server
Channel pear.php.net channel.xml is up to date
安裝pear套件
shell># pear install Net_Ping
downloading Net_Ping-2.4.5.tgz ...
Starting to download Net_Ping-2.4.5.tgz (9,600 bytes)
.....done: 9,600 bytes
install ok: channel://pear.php.net/Net_Ping-2.4.5
列出目前系統安裝的pear套件庫
shell># pear list
Installed packages, channel pear.php.net: ========================================= Package Version State Archive_Tar 1.3.1 stable Console_Getopt 1.2 stable Net_Ping 2.4.5 stable PEAR 1.4.9 stable XML_RPC 1.5.0 stable
若只想下載套件的話
shell># pear download Net_Ping
到PEAR PACKAGES尋找你要的套件
http://pear.php.net/manual/en/packages.php
參考文獻
http://pear.php.net
轉貼至http://beakdoosan.blogspot.tw/
沒有留言:
張貼留言