在 Windows 上安装后无法运行 pear 命令
我在我的 WINDOWS/XP 本地计算机上使用 XAMPP。以下是我的安装步骤:
- 运行 xampp\php\go-pear.bat
- 我通过输入“system”选择“SYSTEM WIDE”
- 继续使用“default”各个位置(按“Enter”键)
- 然后,双击“PEAR_ENV.reg”
安装后,当我从命令提示符中调用“pear”时,它显示:
'pear' is not recognized as an internal or external command, operable program or batch file.
这是我的“系统环境变量”,我正确地获取了所有文件(和“PEAR”文件夹):
- PHP_PEAR_BIN_DIR = C:\Program Files\xampp\php
- PHP_PEAR_DATA_DIR = C:\Program Files\xampp\php\data
- PHP_PEAR_DOC_DIR = C:\Program Files \xampp\php\docs
- PHP_PEAR_INSTALL_DIR = C:\Program Files\xampp\php\pear
- PHP_PEAR_PHP_BIN = C:\Program Files\xampp\php.\php.exe
- PHP_PEAR_SYSCONF_DIR = C:\Program Files\xampp\php
- PHP_PEAR_TEST_DIR = C:\Program Files\xampp\php\tests
我做错了什么?< /强>
I'm using XAMPP on my WINDOWS/XP local machine. Here are my installation steps:
- Running xampp\php\go-pear.bat
- I choose, "SYSTEM WIDE" by entering "system"
- Continued with "default" individual locations (Pressing "Enter")
- Then, double clicked "PEAR_ENV.reg"
After install, while i call "pear" from Command Prompt, it is showing:
'pear' is not recognized as an internal or external command, operable program or batch file.
Here are my "System Environment Variables" and i got all files (and "PEAR" folder) correctly:
- PHP_PEAR_BIN_DIR = C:\Program Files\xampp\php
- PHP_PEAR_DATA_DIR = C:\Program Files\xampp\php\data
- PHP_PEAR_DOC_DIR = C:\Program Files\xampp\php\docs
- PHP_PEAR_INSTALL_DIR = C:\Program Files\xampp\php\pear
- PHP_PEAR_PHP_BIN = C:\Program Files\xampp\php.\php.exe
- PHP_PEAR_SYSCONF_DIR = C:\Program Files\xampp\php
- PHP_PEAR_TEST_DIR = C:\Program Files\xampp\php\tests
What did i do wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要更新
PATH
环境变量以包含pear
命令的位置。以下是有关如何执行此操作的文章:http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/path.mspx?mfr=true
You need to update your
PATH
environment variable to include the location of thepear
command. Here is an article on how to do this:http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/path.mspx?mfr=true