Problems installing PEAR on WinXP

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

Threaded View
I've been battling to install PEAR on Windows XP now for too long.  I
am not sure what I need to do.

When I run go-pear.php from the command line, I get the error message
as shown at the end.  I included everything in case there is something
there that's helpful.  I'm trying to install PEAR so that I can use

Thanks for the help!!!!


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\PHP>php go-pear.php
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.php local' to install a local copy of PEAR.

Go-pear also lets you download and install the PEAR packages bundled
with PHP: MDB2, Net_Socket, Net_SMTP, Mail, XML_Parser, PHPUnit.

If you wish to abort, press Control-C now, or press Enter to continue:

HTTP proxy (, or Enter for

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           : C:\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                  : C:\PHP\php.exe

1-8, 'all' or Enter to continue:

The following PEAR packages are bundled with PHP: MDB2, Net_Socket,
Net_SMTP, Mail, XML_Parser, PHPUnit.
Would you like to install these as well? [Y/n] : Y

Loading zlib: ok
Using local package: PEAR-stable......ok
Using local package: Archive_Tar-stable....ok
Using local package: Console_Getopt-stable....ok
Using local package: XML_RPC-stable....ok
Bootstrapping: PEAR...................(remote) <!DOCTYPE html PUBLIC
D XHTML 1.0 Strict//EN"
" ">
<html xmlns=" " xml:lang="en" lang="en">
<!-- ViewVC :: -->
<title>ViewVC Exception</title>
<h3>An Exception Has Occurred</h3>

<h4>Python Traceback</h4>
Traceback (most recent call last):
  File "/usr/local/viewvc-1.1-dev/lib/", line 3623, in main
  File "/usr/local/viewvc-1.1-dev/lib/", line 388, in
  File "/usr/local/viewvc-1.1-dev/lib/", line 2122, in
    fp, revision = request.repos.openfile(path, rev)
  File "/usr/local/viewvc-1.1-dev/lib/vclib/bincvs/", line
134, in op
    filename, revision = _parse_co_header(fp)
  File "/usr/local/viewvc-1.1-dev/lib/vclib/bincvs/", line
549, in _p
    raise COMalformedOutput, "Unable to find revision in co output
COMalformedOutput: Unable to find revision in co output stream

Bootstrapping: Archive_Tar............(local) ok
Bootstrapping: Console_Getopt.........(remote) ok
Downloading package: MDB2.............ok
Downloading package: Net_Socket.......ok
Downloading package: Net_SMTP.........ok
Downloading package: Mail.............ok
Downloading package: XML_Parser.......ok
Downloading package: PHPUnit..........ok

Fatal error: Class 'PEAR' not found in C:\PHP\go-pear.php on line 747

Re: Problems installing PEAR on WinXP

Kimmo Laine wrote:
Quoted text here. Click to load it

Unless next_page.php generates PHP, the script with this include will
only get HTML.

Quoted text here. Click to load it


    if (isset($_GET['foo'])) {
      echo '<?php echo $_GET[\'foo\']; ?>';
    } else {
      echo '<?php echo \'Not available\'; ?>';

File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot

Site Timeline