Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.7

Bug #12894 Failed to install PEAR: require_once(PEAR.php): failed to open stream:
Submitted: 2008-01-13 11:48 UTC
From: jonnymaeno Assigned: tias
Status: Closed Package: pearweb_gopear
PHP Version: 5.2.5 OS: Windows XPSP2
Roadmaps: (Not assigned)    
Subscription  


 [2008-01-13 11:48 UTC] jonnymaeno (Jonny Maeno)
Description: ------------ btw: I couldn't find any other way to report this, this is not a package issue. I had to reformat my c: and now I can't install PEAR, where as I kind of managed to hack around it last time, because it downloads the latest version, something new has introduced a bug....! I really need PEAR for my webserver.. it's not working :( Try to attached command line output from cygwin: $ 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. If you wish to abort, press Control-C now, or press Enter to continue: HTTP proxy (http://user:password@proxy.myhost.com:port), or Enter for none:: 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: mkdir failed: <c:\php\temp/C:> 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: Structures_Graph-stable....ok Bootstrapping: PEAR...................(remote) ok Bootstrapping: Archive_Tar............PHP Warning: mkdir(): File exists in C:\PHP\go-pear.php on line 642 (remote) ok Bootstrapping: Console_Getopt.........PHP Warning: mkdir(): File exists in C:\PHP\go-pear.php on line 656 (remote) ok Downloading package: MDB2.............ok Extracting installer..................PHP Warning: require_once(PEAR.php): failed to open stream: No such file or direc tory in C:\PHP\Archive\Tar.php on line 21 PHP Fatal error: require_once(): Failed opening required 'PEAR.php' (include_path='c:\php\temp/C:\PHP\temp\gop14.tmp') in C:\PHP\Archive\Tar.php on line 21 php.ini to prove I didn't stuff my include path, or did I..: include_path = ".;c:\PHP;c:\PHP\includes;c:\PHP\PEAR" According to the stdout, something overrides the include_path variable... anyway. The mkdir errors were because I did it multiple times, anyway maybe some improvements for error handling. Test script: --------------- I've tried: php go-pear.php local

Comments

 [2008-01-13 16:17 UTC] dufuz (Helgi Þormar Þorbjörnsson)
Belongs with the PEAR package.
 [2008-01-15 19:29 UTC] tias (Tias Guns)
Hello Jonny, This is the right package to file bugs against, if you have a problem with go-pear. The include path is changed by the go-pear script itself, so its normal that it changes. Normally though it should work. I've since long created a newer, more robust version of go-pear, but I haven't released it yet. Could you perhaps run this script, and tell me if that gives errors too ?? You can download it from here: http://cvs.php.net/viewvc.cgi/pearweb/public_html/go-pear?revision=HEAD Tias
 [2008-01-16 12:44 UTC] jonnymaeno (Jonny Maeno)
omg works like a charm; I even uninstalled php to retest it from a clean install. I just included the following if you want to use it for doco feel free cause it will definitely help newbies. see Appendix A Thank you very much dear sir for the prompt reply. Regards Appendix A PEAR for dummies on Windows XP steps: 1. Install PHP 5.2.5msi 1.1 Point to Apache config folder: C:\Program Files\Apache Software Foundation\Apache2.2\conf\ 1.2 Install the extra options - Program - CLI Executable - Extensions - phar - Extras - PEAR Install 2. After install of PHP modify: C:\Program Files\PHP\php.ini 2.1 Search for 'include_path =' 2.2 Set to something like: include_path = ".;c:\php\includes;c:\Program Files\php;c:\Program Files\php\PEAR" 3. Open go-pear.php in web browser 3.1 Copy all text and save into a text file: C:\Program Files\PHP\go-pear.php 4. Press both buttons on keyboard: <Start button> + R 4.1 Type (followed by <enter> key): cmd 4.2 Type: cd "c:\Program Files\PHP" 4.3 Type ('local' is optional but seems to have less problems): php go-pear.php local 4.4 Press <enter> or <y> for all prompts should be fine for most people who installed in the default locations for PHP. 5. Done.
 [2008-01-28 20:00 UTC] tias (Tias Guns)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/pearweb_gopear Released as 1.1.0, should appear on http://pear.php.net/go-pear soon