With this error
"pear is not recognized as an internal or external command, an executable file or a batch file”
Means you have not installed pear correctly try this:
Open a command window and type whats in bold:
W:\usr\local\php>php -r "readfile('http://pear.php.net/go-pear');" > go-pear
Welcome to go-pear!
Go-pear will install the 'pear' command and all the files needed by
it. This command is your tool for PEAR installation and maintenance.
Use 'php go-pear local' to install a local copy of PEAR.
Go-pear also lets you download and install the PEAR packages bundled
with PHP: MDB2.
If you wish to abort, press Control-C now, or press Enter to continue: Enter
HTTP proxy (http://user:password...myhost.com:port
), or Enter for none:: Enter
Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type 'all' to change all of them or simply press Enter to
accept these locations.
1. Installation prefix : W:\usr\local\php
2. Binaries directory : $prefix
3. PHP code directory ($php_dir) : $prefix\pear
4. Documentation base directory : $php_dir\docs
5. Data base directory : $php_dir\data
6. Tests base directory : $php_dir\tests
7. Temporary files directory : $prefix\temp
8. php.exe path : W:\usr\local\php\php.exe
1-8, 'all' or Enter to continue: Enter
The following PEAR packages are bundled with PHP: MDB2.
Would you like to install these as well? [Y/n] : y
Loading zlib: ok
Downloading package: PEAR-stable......ok
Downloading package: Archive_Tar-stable....ok
Downloading package: Console_Getopt-stable....ok
Downloading package: XML_RPC-stable....ok
Bootstrapping: PEAR...................(remote) ok
Bootstrapping: Archive_Tar............(remote) ok
Bootstrapping: Console_Getopt.........(remote) ok
Downloading package: MDB2.............ok
warning: pear/PEAR requires package "pear/Archive_Tar" (version >= 1.3.1)
warning: pear/PEAR requires package "pear/Console_Getopt" (version >= 1.2)
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
pear/PEAR can optionally use package "pear/PEAR_Frontend_Web" (version >= 0.5.0)
pear/PEAR can optionally use package "pear/PEAR_Frontend_Gtk" (version >= 0.4.0)
pear/PEAR can optionally use package "pear/PEAR_Frontend_Gtk2" (version >= 0.1.0
install ok: channel://pear.php.net/PEAR-1.4.11
install ok: channel://pear.php.net/Archive_Tar-1.3.1
install ok: channel://pear.php.net/Console_Getopt-1.2
install ok: channel://pear.php.net/XML_RPC-1.5.1
install ok: channel://pear.php.net/MDB2-2.3.0
WARNING! The include_path defined in the currently used php.ini does not
contain the PEAR PHP directory you just specified:
If the specified directory is also not in the include_path used by
your scripts, you will have problems getting any PEAR packages working.
Would you like to alter php.ini <W:\usr\local\php\php.ini>? [Y/n] : y
php.ini <W:\usr\local\php\php.ini> include_path updated.
Current include path : .;\usr\local\PHP\includes;\usr\local\PHP\pear
Configured directory : W:\usr\local\php\pear
Currently used php.ini (guess) : W:\usr\local\php\php.ini
Press Enter to continue: Enter
The 'pear' command is now at your service at w:\usr\local\php\pear.bat
** The 'pear' command is not currently in your PATH, so you need to
** use 'w:\usr\local\php\pear.bat' until you have added
** 'W:\usr\local\php' to your PATH environment variable.
Run it without parameters to see the available actions, try 'pear list'
to see what packages are installed, or 'pear help' for help.
For more information about PEAR, see: http://pear.php.net/faq.php http://cvs.php.net/c...manager.txt?p=1 http://pear.php.net/manual/
Thanks for using go-pear!
* WINDOWS ENVIRONMENT VARIABLES *
For convenience, a REG file is available under W:\usr\local\php\PEAR_ENV.reg .
This file creates ENV variables for the current user.
Double-click this file to add it to the current user registry.
If you have installed Pear correctly you probably are running the command from the wrong location!
Change to the php folder
A quick check type in pear – help will list all the help commands for pear with this confirmed type your command in:
pear channel-discover pear.symfony-project.com