简体   繁体   English

在Mac OS上安装php Pear

[英]Install php pear on mac os

How to correct instal pear for php. 如何为PHP纠正安装梨。 I store all for web server in /opt/local. 我将所有Web服务器存储在/ opt / local中。 But pear want be installed to /Users/. 但是梨要安装到/ Users /。 How change this folder. 如何更改此文件夹。

 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

您可以通过按该行上的相应数字来更改目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM