简体   繁体   中英

Can't run pear command after installation on Windows

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?

You need to update your PATH environment variable to include the location of the pear 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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