linux下pear安裝和配置 ubuntu

2022-04-01 22:20:50 字數 874 閱讀 9738

1. 安裝 $wget

2. 配置 $php go-pear.phar 

1. installation base ($prefix) : /opt/php5 

2. temporary directory for processing : /tmp/pear/install 

3. temporary directory for downloads : /tmp/pear/install 

4. binaries directory : /opt/php5/bin 

5. php code directory ($php_dir) : /opt/php5/lib/php 

6. documentation directory : /opt/php5/docs 

7. data directory : /opt/php5/data           

8. user-modifiable configuration files directory : /opt/php5/cfg 

9. public web files directory : /opt/php5/www 

10. tests directory : /opt/php5/tests 

11. name of configuration file : /opt/php5/etc/pear.conf

根據需要修改配置即可.

3. 常用命令

pear 檢視所有pear相關命令

pear list 檢視已經安裝的package

pear config-show 檢視pear的配置

pear config-get 檢視某項配置

pear config-set 設定某項配置

windos下安裝PEAR 注意

在頁面右鍵另存為 go pear.phar 到php的根目錄,並去目錄檢視是否儲存為了go pear.phar 有時會儲存為go pear.phar.txt 2 伺服器開啟,php跑起來 3 在php根目錄下執行 php go pear.phar 安裝過程的選項參考 提示 thanks for us...

linux下opencv安裝和配置

一 安裝環境 作業系統 centos6.2 opencv版本 2.4.4 二 安裝步驟 1 解壓縮opencv 2.4.4a.tar.bz2安裝包 tar jxvf opencv 2.4.4a.tar.bz2 cd opencv 2.4.4 2 用cmake進行編譯 mkdir release244...

linux下安裝和配置mysql

a 檢視是否安裝了mysql rpm qa grep i mysql b 如果已經安裝了就刪除 rpm e mysql libs 5.1.52 1.el6 0.1.x86 64 nodeps 拷貝檔案到 usr local src,進入目錄 1 安裝服務端 usr local src rpm ivh...