简体   繁体   English

在Windows上安装后无法运行pear命令

[英]Can't run pear command after installation on Windows

I'm using XAMPP on my WINDOWS/XP local machine. 我在我的WINDOWS / XP本地机器上使用XAMPP Here are my installation steps: 这是我的安装步骤:

  • Running xampp\\php\\go-pear.bat 运行xampp \\ php \\ go-pear.bat
  • I choose, " SYSTEM WIDE " by entering "system" 我选择“ SYSTEM WIDE ”进入“系统”
  • Continued with "default" individual locations (Pressing "Enter") 继续“默认”个别位置 (按“Enter”键)
  • Then, double clicked " PEAR_ENV.reg " 然后,双击“ PEAR_ENV.reg


After install, while i call "pear" from Command Prompt, it is showing: 安装后,当我从命令提示符调用“pear”时,它显示:

'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: 这是我的“系统环境变量”,我正确地获得了所有文件(和“PEAR”文件夹):

  • PHP_PEAR_BIN_DIR = C:\\Program Files\\xampp\\php PHP_PEAR_BIN_DIR = C:\\ Program Files \\ xampp \\ php
  • PHP_PEAR_DATA_DIR = C:\\Program Files\\xampp\\php\\data PHP_PEAR_DATA_DIR = C:\\ Program Files \\ xampp \\ php \\ data
  • PHP_PEAR_DOC_DIR = C:\\Program Files\\xampp\\php\\docs PHP_PEAR_DOC_DIR = C:\\ Program Files \\ xampp \\ php \\ docs
  • PHP_PEAR_INSTALL_DIR = C:\\Program Files\\xampp\\php\\pear PHP_PEAR_INSTALL_DIR = C:\\ Program Files \\ xampp \\ php \\ pear
  • PHP_PEAR_PHP_BIN = C:\\Program Files\\xampp\\php.\\php.exe PHP_PEAR_PHP_BIN = C:\\ Program Files \\ xampp \\ php。\\ php.exe
  • PHP_PEAR_SYSCONF_DIR = C:\\Program Files\\xampp\\php PHP_PEAR_SYSCONF_DIR = C:\\ Program Files \\ xampp \\ php
  • PHP_PEAR_TEST_DIR = C:\\Program Files\\xampp\\php\\tests PHP_PEAR_TEST_DIR = C:\\ Program Files \\ xampp \\ php \\ tests

What did i do wrong? 我做错了什么?

You need to update your PATH environment variable to include the location of the pear command. 您需要更新PATH环境变量以包含pear命令的位置。 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 http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/path.mspx?mfr=true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM