PEAR Install in PHP 4.1.1

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

WinXP Pro SP2
PHP 4.1.1 from
Installed on D:\php\

I have tried several times to install PEAR in PHP 4.1.1. I keep getting an error and I am not  
proficient enough to be able to fixit myself.

After I installed php 4.1.1 I executed go-pear.bat. I took all of the defaults. Then I  
double-clicked on the .reg file. When I execute pear.bat I get the following error.

PHP_PEAR_INSTALL_DIR is not set correctly.
pearcmd.php could not be found there.
Please fix it using your environment variable or modify
the default value in pear.bat
The current value is:

When looking at the pear.bat file it has


REM ----------------------------------------------------------------------
REM PHP version 5
REM ----------------------------------------------------------------------
REM Copyright (c) 1997-2004 The PHP Group

Why is a 5.0 pear.bat file in php 4.1.1? Could that be causing the error as I understand the dir  
layout for php 4 and 5 is different?

Assistance is greatly appreciated. Thanks in advance.


Site Timeline