PEAR installation failed
Posted by: beyondthegrave (---.cpe.net.cable.rogers.com)
Date: November 23, 2007 03:54AM

I tried installing the PEAR library by simply running C:\wamp\php\go-pear.bat from the DOS command line. FYI, I'm running Windows XP, and WAMP works fine.
By the way, do I have to download any files before trying to install PEAR, or are all the needed files already included?

Here's what happened (my comments come after double-slashes //):

C:\wamp\php>go-pear.bat

Are you installing a system-wide PEAR or a local copy?
(system|local) [system]: local

// I chose local

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 base ($prefix) : C:\wamp\php
2. Binaries directory : C:\wamp\php
3. PHP code directory ($php_dir) : C:\wamp\php
4. Documentation directory : C:\wamp\php\PEAR\docs
5. Data directory : C:\wamp\php\PEAR\data
6. Tests directory : C:\wamp\php\PEAR\tests
7. Name of configuration file : C:\WINDOWS\pear.ini
8. Path to CLI php.exe : C:\wamp\php

1-8, 'all' or Enter to continue:
Beginning install...
Configuration written to C:\WINDOWS\pear.ini...
Initialized registry...

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Command.php on line 268

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Command.php on line 268

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Command.php on line 268

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Command.php on line 268

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Command.php on line 268

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Command.php on line 268
Preparing to install...
installing phar://go-pear.phar/PEAR/go-pear-tarballs.Archive_Tar-1.3.1.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarbals/PEAR-1.4.11.tar...

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Tar.php on line 2334

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Tar.php on line 2338
Could not get contents of package "". Invalid tgz file.
Cannot initialize 'phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.1.tar', invalid or missing package file


Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Tar.php on line 2334

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Tar.php on line 2338
Could not get contents of package "". Invalid tgz file.
Cannot initialize 'phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.tar', invalid or missing package file


Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Tar.php on line 2334

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Tar.php on line 2338
Could not get contents of package "". Invalid tgz file.
Cannot initialize 'phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.4.11.tar', invalid or missing package file

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Command/Install.php on line 427

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Command/Install.php on line 427

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Command/Install.php on line 427

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Command/Install.php on line 429

install failed
Press any key to continue...

---
So what might be wrong?

Thanks for any help you can offer.

Options: ReplyQuote
Re: PEAR installation failed
Posted by: yfastud (---.cable.mindspring.com)
Date: November 23, 2007 03:19PM

If I don't remember wrong, when installing from the batch file as you did, it will try to download the need files, and will fail, so you should manually download the files first

Check my old post here:

[forum.wampserver.com]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.