pear config-show目录

时间:2013-03-26 00:35:57

标签: windows wamp pear config

我在win7x64上的wamp2.1(Apache2.2.17,PHP5.3.5 MSVC6x32)上安装了pear 所有为了安装PHPUnit,一切顺利,但当我执行

pear config-show

我收到意外的输出

特殊目录与我在安装过程中设置的目录不同,这是正常的吗?

C:\wamp21\bin\php\php5.3.5\PEAR>pear config-show
CONFIGURATION (CHANNEL PEAR.PHP.NET):
=====================================
PEAR executables directory     bin_dir          C:\wamp21\bin\php\php5.3.5\PEAR
PEAR documentation directory   doc_dir          C:\php\pear\docs
PHP extension directory        ext_dir          c:/wamp21/bin/php/php5.3.5/ext/
PEAR directory                 php_dir          C:\wamp21\bin\php\php5.3.5\PEAR\pear
PEAR configuration file        cfg_dir          C:\php\pear\cfg
directory
PEAR data directory            data_dir         C:\php\pear\data
.....

这是来自梨的cli装置的摘录:

C:\wamp21\bin\php\php5.3.5\PEAR>php -d phar.require_hash=0 go-pear.phar

 1. Installation base ($prefix)                   : C:\wamp21\bin\php\php5.3.5\PEAR
 2. Temporary directory for processing            : C:\wamp21\bin\php\php5.3.5\PEAR\tmp
 3. Temporary directory for downloads             : C:\wamp21\bin\php\php5.3.5\PEAR\tmp
 4. Binaries directory                            : C:\wamp21\bin\php\php5.3.5\PEAR
 5. PHP code directory ($php_dir)                 : C:\wamp21\bin\php\php5.3.5\PEAR\pear
 6. Documentation directory                       : C:\wamp21\bin\php\php5.3.5\PEAR\docs
 7. Data directory                                : C:\wamp21\bin\php\php5.3.5\PEAR\data
 8. User-modifiable configuration files directory : C:\wamp21\bin\php\php5.3.5\PEAR\cfg
 9. Public Web Files directory                    : C:\wamp21\bin\php\php5.3.5\PEAR\www
10. Tests directory                               : C:\wamp21\bin\php\php5.3.5\PEAR\tests
11. Name of configuration file                    : C:\wamp21\bin\php\php5.3.5\PEAR\pear.ini
12. Path to CLI php.exe                           : C:\wamp21\bin\php\php5.3.5
....

我会在C:\ wamp21 \ bin \ php \ php5.3.5 \ PEAR中安装pear但现在我有两个目录数据,docs,tests

C:\ PHP中\梨\数据

C:\ PHP中\梨\文档

C:\ PHP中\梨\测试

C:\ wamp21 \ BIN \ PHP中\ php5.3.5 \ PEAR \数据

C:\ wamp21 \ BIN \ PHP中\ php5.3.5 \ PEAR \文档

C:\ wamp21 \ BIN \ PHP中\ php5.3.5 \ PEAR \测试

及其子目录

相关问题Installing pear on windows, wrong paths similar question

2 个答案:

答案 0 :(得分:0)

可能是未使用存储安装设置的PEAR配置文件。您可以通过使用-c选项手动指定它来解决此问题:

$ pear -c /path/to/config/file config-show

或者只是将其移至pear config-show

中当前显示的位置

答案 1 :(得分:0)

PHP_PEAR_SYSCONF_DIR设置为pear.ini所在的目录。

SETX PHP_PEAR_SYSCONF_DIR C:\wamp21\bin\php\php5.3.5\PEAR /M