Bug #7418 [Opn]: pear re-install fail: go-pear script

From: Date: Thu, 20 Apr 2006 11:20:58 +0000
Subject: Bug #7418 [Opn]: pear re-install fail: go-pear script
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7801@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=7418&edit=1 ID: 7418 Updated by: cipri@php.net Reported By: pdman at aproximation dot org Status: Open Id: 7418 Type: Bug Package: Documentation Operating System: Fedora Core 2.6.12-1.1378_FC3 PHP Version: 4.3.11 Assigned To: pajoye New Comment: What happens is that the script tries to download the latest PEAR.php to use it to install the downloaded tarballs. However, the PEAR.php that you download doesn't seem to work. Could you please try the following steps: 1) Download http://go-pear.org/ to a local file called go-pear.php 2) Make the following modifications: Line 230: comment the line register_shutdown_function('bail'); Line 647: Add the following lines before the include_once 'PEAR.php' line: print("\n"); var_dump(getcwd()); var_dump($url); var_dump($http_proxy); die(); 3) Run ``cat go-pear.php | php'' 4) Submit the debug output generated. 5) Also include the PEAR.php that was downloaded. You can find this in the directory that the debug output gave you, ie: string(15) "/tmp/gopeq8oBxB" Previous Comments: ------------------------------------------------------------------------ [2006-04-20 00:37:51] pdman at aproximation dot org I am not using any proxy. I am ssh'd into a remote dedicated webserver that is essentially directly connected to the backbone. I have tried installing PEAR like this on probably five occasions and each ocassion I run the go-pear | php command two to three times. Each time I get that CVS co error during pear bootstrapping (what is that BTW) and then after a few more packages donload I get the pear class not defined error. To be clear I do not propose that this is a PHP error, but an error with the go-pear script and/or how that script reports errors. Is there a log of the scripts transactions so I can se where it is breaking - a verbose way to run the script? I have also tried submitting mail to the php-install list (as suguested by the PEAR "how to report a bug" guide) but because I use horde and an alternate identitiy for my mailinglist email address I am having trouble there. Thank you for any help, -wade ------------------------------------------------------------------------ [2006-04-19 08:00:23] pajoye at php dot net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PEAR. It looks like you had a connection problem. Are you using a proxy but did not specify any value for the proxy options? ------------------------------------------------------------------------ [2006-04-18 23:01:02] pdman at aproximation dot org Description: ------------ I am trying to use go-pear to install the latest version of PEAR on my dedicated server, yet I get repeated fails with error messages I cannot really understand. (looks like a cvs problem perhaps?) Test script: --------------- lynx -source http://go-pear.org/ | php Expected result: ---------------- I should get a bunch of download .... ok messages probably followed by a bunch of bootstrap .... ok messages, then the newest PEAR would be installed. Actual result: -------------- 1. Installation prefix : /usr 2. Binaries directory : $prefix/bin 3. PHP code directory ($php_dir) : $prefix/share/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 : /tmp/pear/cache 1-7, 'all' or Enter to continue: The following PEAR packages are bundled with PHP: DB, Net_Socket, Net_SMTP, Mail, XML_Parser, PHPUnit. Would you like to install these as well? [Y/n] : Y Loading zlib: ok PHP Notice: Undefined variable: dh in - on line 608 Notice: Undefined variable: dh in - on line 608 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) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- ViewVC -- http://viewvc.tigris.org/ by Greg Stein -- mailto:gstein@lyra.org --> <head> <title>ViewVC Exception</title> </head> <body> <h3>An Exception Has Occurred</h3> <h4>Python Traceback</h4> <p><pre> Traceback (most recent call last): File "./lib/viewcvs.py", line 3591, in main File "./lib/viewcvs.py", line 379, in run_viewcvs File "./lib/viewcvs.py", line 2114, in view_checkout File "/usr/local/viewvc-1.0-dev/lib/vclib/bincvs/__init__.py", line 134, in openfile filename, revision = _parse_co_header(fp) File "/usr/local/viewvc-1.0-dev/lib/vclib/bincvs/__init__.py", line 549, in _parse_co_header raise COMalformedOutput, "Unable to find revision in co output stream" COMalformedOutput: Unable to find revision in co output stream </pre></p> </body> </html> ok Bootstrapping: Archive_Tar............(remote) ok Bootstrapping: Console_Getopt.........(remote) ok Downloading package: DB...............ok Downloading package: Net_Socket.......ok Downloading package: Net_SMTP.........ok Downloading package: Mail.............ok Downloading package: XML_Parser.......ok Downloading package: PHPUnit..........ok PHP Fatal error: Undefined class name 'pear' in - on line 701 Fatal error: Undefined class name 'pear' in - on line 701 ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=7418&edit=1

« previous php.pear.doc (#7801) next »