我在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
.....
这是 pear 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 但现在我有两个目录数据,文档,测试
C:\php\梨\数据
C:\php\pear\docs
C:\php\梨\测试
C:\wamp21\bin\php\php5.3.5\PEAR\data
C:\wamp21\bin\php\php5.3.5\PEAR\docs
C:\wamp21\bin\php\php5.3.5\PEAR\tests
和他们的子目录
一个相关问题Installing pear on windows, wrong paths similar question