2012-01-21 87 views
0

如何更正php安裝梨。我將所有的Web服務器存儲在/ opt/local中。 但梨要安裝到/ Users /。如何改變這個文件夾。在mac os上安裝php梨

c8-bc-c8-d8-eb-65:tmp macbookpro$ sudo php -d detect_unicode=0 go-pear.phar 

    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 base ($prefix)     : /Users/macbookpro/pear 
    2. Temporary directory for processing   : /tmp/pear/install 
    3. Temporary directory for downloads    : /tmp/pear/install 
    4. Binaries directory       : /Users/macbookpro/pear/bin 
    5. PHP code directory ($php_dir)     : /Users/macbookpro/pear/share/pear 
    6. Documentation directory      : /Users/macbookpro/pear/docs 
    7. Data directory        : /Users/macbookpro/pear/data 
    8. User-modifiable configuration files directory : /Users/macbookpro/pear/cfg 
    9. Public Web Files directory     : /Users/macbookpro/pear/www 
    10. Tests directory        : /Users/macbookpro/pear/tests 
    11. Name of configuration file     : /Users/macbookpro/.pearrc 
+1

您可以通過按該行上相應的號碼來更改目錄。 –

+0

thak我選擇1並設置/ opt/local全部安裝正常。 –

+0

好的,如果這解決了你的問題,我作爲一個答案放在下面,所以你可以標記爲接受。 –

回答

1

您可以通過按該行上相應的數字來更改目錄。