久久国产成人av_抖音国产毛片_a片网站免费观看_A片无码播放手机在线观看,色五月在线观看,亚洲精品m在线观看,女人自慰的免费网址,悠悠在线观看精品视频,一级日本片免费的,亚洲精品久,国产精品成人久久久久久久

分享

CentOS pear命令無法使用

 Dead n Gone 2011-02-16

若運行php go-pear.php時提示PHP版本過高,則運行
wget http://pear./go-pear.phar
按默認路徑安裝后,在php.ini里面添加include_path為
/usr/share/pear
 
 
CentOS下運行命令:
pear channel-update pear.

出現(xiàn)錯誤:

-bash: pear: command not found

說明你安裝php時沒有把pear編譯進去,,只好去官方網(wǎng)站http://pear.
官方提供了兩種方式安裝pear:
1. 編譯php的時候加入pear配置模塊,。
2. go-pear方式,。

我嘗試了go-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

    本站是提供個人知識管理的網(wǎng)絡存儲空間,所有內容均由用戶發(fā)布,,不代表本站觀點,。請注意甄別內容中的聯(lián)系方式、誘導購買等信息,,謹防詐騙,。如發(fā)現(xiàn)有害或侵權內容,請點擊一鍵舉報,。
    轉藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多