/usr/share/pear CentOS下運行命令:
pear channel-update pear. 出現(xiàn)錯誤: -bash: pear: command not found 說明你安裝php時沒有把pear編譯進去,,只好去官方網(wǎng)站http://pear.。 我嘗試了go-pear方式。 wget http://pear./go-pear 重命名: mv go-pear go-pear.php 執(zhí)行腳本: php go-pear.php Welcome to go-pear! Go-pear will install the 'pear' command and all the files needed by it. This command is your tool for PEAR installation and maintenance. Go-pear also lets you download and install the following optional PEAR packages: PEAR_Frontend_Web-beta, PEAR_Frontend_Gtk2, MDB2. If you wish to abort, press Control-C now, or press Enter to continue: 回車確認,。 HTTP proxy (http://user:[email protected]:port), or Enter for none:: 回車不需要代理,。 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 prefix ($prefix) : /usr/local/ara 2. Temporary files directory : $prefix/temp 3. Binaries directory : $prefix/bin 4. PHP code directory ($php_dir) : $prefix/PEAR 5. Documentation base directory : $php_dir/docs 6. Data base directory : $php_dir/data 7. Tests base directory : $php_dir/tests 1-7, 'all' or Enter to continue: 安裝配置,選擇一項修改默認值,,直接回車不修改,。我要改安裝目錄,選了1,,回車,。 Installation prefix ($prefix) [/usr/local/ara] : 輸入目錄: /usr/loacl/pear 然后開始安裝了,最后會讓提示你需要修改php.ini文件,,確認即可,。 The 'pear' command is now at your service at /usr/local/pear/bin/pear ** The 'pear' command is not currently in your PATH, so you need to ** use '/usr/local/pear/bin/pear' until you have added ** '/usr/local/pear/bin' to your PATH environment variable. 你可以把/usr/local/pear/bin/pear加入PATH環(huán)境變量,,或者直接使用/usr/local/pear/bin/pear運行pear命令,。 /usr/local/pear/bin/pear channel-update pear. /usr/local/pear/bin/pear install HTML_Template_Sigma |
|
來自: Dead n Gone > 《CentOS》