Linux安裝pecl和pear
首先下載安裝腳本, 使用curl下載, wget也可以, 如果沒有這兩個命令請自行安裝:
cd /usr/local/php/bin/ curl -o go-pear.php http://pear.php.net/go-pear curl -o go-pear.php http://pear.php.net/go-pear.phar # 如果你的php版本高于php5.3, 執行這條
安裝:
php go-pear.php # 回車, 會提示選擇安裝的東西, 直接回車, 安裝全部, 若后面有要選擇y/n的, 輸入y回車
如果看到下面的一段話就是安裝成功:
Run it without parameters to see the available actions, try 'pear list' to see what packages are installed, or 'pear help' for help. For more information about PEAR, see: http://pear.php.net/faq.php http://pear.php.net/manual/ Thanks for using go-pear!
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!