1

PHPUnitをインストールするために、wamp2.1(Apache2.2.17、PHP5.3.5 MSVC6x32)にpearをすべてwin7x64にインストールしましたが、すべてうまくいきましたが、実行すると

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
....

Pear を C:\wamp21\bin\php\php5.3.5\PEAR にインストールしますが、現在は 2 つのディレクトリ データ、ドキュメント、テストがあります。

C:\php\ナシ\データ

C:\php\ナシ\docs

C:\php\pear\tests

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

サブディレクトリで

関連する質問Windowsに梨をインストールする、間違ったパス同様の質問

4

2 に答える 2

0

インストール設定を保存した PEAR 構成ファイルが使用されていない可能性があります。オプションを使用して手動で指定することで修正でき-cます。

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

または、現在 に示されている場所に移動しpear config-showます。

于 2013-03-27T12:18:22.003 に答える
0

PHP_PEAR_SYSCONF_DIRがあるディレクトリに設定しますpear.ini

SETX PHP_PEAR_SYSCONF_DIR C:\wamp21\bin\php\php5.3.5\PEAR /M
于 2015-05-20T18:31:05.030 に答える