I installed PEAR, and when I try to start it, I get this message:
PHP_PEAR_PHP_BIN is set incorrectly. Correct it using an environment variable or change the default value in pear.bat. current value:. \ php.exe
In the pear.bat file, this error message is generated as such:
:PEAR_PHPBIN_ERROR ECHO PHP_PEAR_PHP_BIN is not set correctly. ECHO Please fix it using your environment variable or modify ECHO the default value in pear.bat ECHO The current value is: ECHO %PHP_PEAR_PHP_BIN% GOTO END
There is a conditional set at the top of the file:
IF "%PHP_PEAR_PHP_BIN%"=="" SET "PHP_PEAR_PHP_BIN=.\php.exe"
This is my starting point. I changed this way to this:
IF "%PHP_PEAR_PHP_BIN%"=="" SET "PHP_PEAR_PHP_BIN=C:\hqp\xampp\php\php.exe"
Regardless of the change, I get the same error on the command line, since it still considers the value .\php.exe . I can customize the error message and my settings will appear on the command line, so I'm sure this pear.bat file is referenced.
So, my assumption is based on this condition "%PHP_PEAR_PHP_BIN%"!="" , And if so, where is it installed, so can I redefine it to the correct path? Ideas I should look into and how to fix them?
Here is my pear.bat source code: http://codetidy.com/919/ Thanks!
source share