I've just installed PEAR into WAMP attempting to follow this article. It all seems to have gone okay but when I type "pear upgrade" into the command prompt I get this error:
我刚刚将PEAR安装到WAMP中,并尝试遵循本文。一切似乎都很顺利,但当我在命令提示符中输入“pear upgrade”时,我得到了这个错误:
ERROR: failed to mkdir c:\php\pear\docs\Archive_Tar\docs
错误:mkdir c:\php\ docs\Archive_Tar\docs文档失败
It is looking on the wrong drive (and missing a subdirectory in that path by the looks of it). It should be looking for D:\php\php5.3.13\pear\docs\Archive_Tar\docs
它正在错误的驱动器上查找(并且由于它的外观而丢失了该路径中的子目录)。它应该查找D:\php\php5.3.13\pear\docs\Archive_Tar\docs。
When specifying installation directories I chose ones on the D:\ and thats where the folder structure is, the include_path in both php.ini locations have also been updated. I've also reset the WAMP server after making the changes.
在指定安装目录时,我在D上选择了一个目录:\以及文件夹结构所在的位置,包括两个php中的include_path。ini位置也已更新。我还重置了WAMP服务器后进行的更改。
How do I set it to look / install the package in the right place?
如何将其设置为在正确的位置上查看/安装包?
1 个解决方案
#1
1
My advice is to remove your complete PEAR installation and install from scratch. It'll save you time and sweat. If you have the time and patience, you can fix PEAR parameters with the config-*
subcommands:
我的建议是删除您的完整PEAR安装并从头安装。这样可以节省你的时间和精力。如果您有时间和耐心,可以使用config-*子命令修复PEAR参数:
C:\>pear
Commands:
[...]
config-create Create a Default configuration file
config-get Show One Setting
config-help Show Information About Setting
config-set Change Setting
config-show Show All Settings
Start with pear config-show
to inspect current values and see if you can spot invalid ones.
从pear config-show开始,检查当前值,看看是否可以发现无效值。
#1
1
My advice is to remove your complete PEAR installation and install from scratch. It'll save you time and sweat. If you have the time and patience, you can fix PEAR parameters with the config-*
subcommands:
我的建议是删除您的完整PEAR安装并从头安装。这样可以节省你的时间和精力。如果您有时间和耐心,可以使用config-*子命令修复PEAR参数:
C:\>pear
Commands:
[...]
config-create Create a Default configuration file
config-get Show One Setting
config-help Show Information About Setting
config-set Change Setting
config-show Show All Settings
Start with pear config-show
to inspect current values and see if you can spot invalid ones.
从pear config-show开始,检查当前值,看看是否可以发现无效值。