我正在尝试在 Windows 7 上安装 PEAR。
我有 php 5.4d:\web\soft\php
目录,我也想将 PEAR 安装在这个目录中。我跑:
php go-pear.phar
I see this:
这条路对我来说没问题。
然后我运行 Enter 并安装它。最后我看到这个警告:
警告!旧版本位于 D:\web\soft\php,请删除它或确保使用新的 d:\web\soft\php\pear.bat 命令
'pear' 命令现在可以在 d:\web\soft\php\pear.bat` 为您服务
and when I press pear config-show
I see completely wrong paths related to disk C:\
:
Auto-discover new Channels auto_discover <not set>
Default Channel default_channel pear.php.net
HTTP Proxy Server Address http_proxy <not set>
PEAR server [DEPRECATED] master_server pear.php.net
Default Channel Mirror preferred_mirror pear.php.net
Remote Configuration File remote_config <not set>
PEAR executables directory bin_dir D:\web\soft\php
PEAR documentation directory doc_dir C:\php\pear\docs
PHP extension directory ext_dir d:/web/soft/php/ext
PEAR directory php_dir D:\web\soft\php\pear
PEAR Installer cache directory cache_dir C:\Users\zzz\AppData\Local\Temp\pear\cache
PEAR configuration file cfg_dir C:\php\pear\cfg
PEAR data directory data_dir C:\php\pear\data
PEAR Installer download download_dir C:\Users\zzz\AppData\Local\Temp\pear\download
PHP CLI/CGI binary php_bin D:\web\soft\php\php.exe
php.ini location php_ini <not set>
PEAR Installer temp directory temp_dir C:\Users\zzz\AppData\Local\Temp\pear\temp
PEAR test directory test_dir C:\php\pear\tests
PEAR www files directory www_dir C:\php\pear\www
Signature Handling Program sig_bin c:\gnupg\gpg.exe
Signature Key Directory sig_keydir C:\Windows\pearkeys
User Configuration File Filename C:\Windows\pear.ini
System Configuration File Filename C:\Windows\pearsys.ini
所以这是行不通的。
我究竟做错了什么?
Set PHP_PEAR_SYSCONF_DIR
到你的目录pear.ini
位于。
SETX PHP_PEAR_SYSCONF_DIR d:\web\soft\php /M
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)