Cannot start pear command after installation on Windows

I am using XAMPP on the local WINDOWS / XP computer . Here are my installation steps:

  • Running xampp \ php \ go-pear.bat
  • I select " SYSTEM WIDE " by entering "system"
  • Continued from the "default" individual locations (press "Enter")
  • Then double-click " PEAR_ENV.reg "


After installation, when I call the "pear" from the command line, it shows:

'pear' is not recognized as an internal or external command, operable program or batch file.


Here are my "System Variables", and I got all the files (and the "PEAR" folder) correctly:

  • PHP_PEAR_BIN_DIR = C: \ Program Files \ xampp \ php
  • PHP_PEAR_DATA_DIR = C: \ Program Files \ xampp \ php \ data li>
  • 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?

+3
source share
1 answer

You need to update the environment variable PATHto indicate the location of the command 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

+3
source

All Articles