Re: PEAR installation error
| From: | Gregory Beaver | Date: | Tue, 02 Jan 2007 18:28:30 +0000 |
| Subject: | Re: PEAR installation error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246366@lists.php.net to get a copy of this message | ||
Hi Alistair,
There was a snafu in the PHP release process, PHP 5.2.0 shipped with an
outdated go-pear.phar for some reason, you can fix this by downloading
http://pear.php.net/go-pear.phar and saving it as
PEAR/go-pear.phar in
the unzipped windows distribution. Then, when you run go-pear.bat it
will install properly.
The pear-general@lists.php.net mailing list is a great resource for
installation questions, and also general PEAR questions once you get it
successfully installed.
Good luck,
Greg
Alistair Tweed wrote:
> Hi!
>
> I am keen to install PEAR and start using it, but encounter the same error
> on two different XP machines and would be extremely grateful for any help
> you can offer.
>
> Please see below for an account of the error.
>
> Best Regards and thanks in advance,
>
> Alistair
> ------
>
>
> Are you installing a system-wide PEAR or a local copy?
> (system|local) [system] : local
> Please confirm local copy by typing 'yes' : yes
>
> 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:\server\PHP
> 2. Binaries directory : C:\server\PHP
> 3. PHP code directory ($php_dir) : C:\server\PHP\pear
> 4. Documentation directory : C:\server\PHP\pear\docs
> 5. Data directory : C:\server\PHP\pear\data
> 6. Tests directory : C:\server\PHP\pear\tests
> 7. Name of configuration file : C:\server\PHP\pear.ini
> 8. Path to CLI php.exe : C:\server\PHP\.
>
> 1-8, 'all' or Enter to continue:
> Beginning install...
> Configuration written to C:\server\PHP\pear.ini...
> Initialized registry...
> PHP Warning: Cannot use a scalar value as an array in
> phar://go-pear.phar/PEAR
> Command.php on line 268
> PHP Warning: Cannot use a scalar value as an array in phar://go-pear.phar
> /PEAR
> Command.php on line 268
> PHP Warning: Cannot use a scalar value as an array in
> phar://go-pear.phar/PEAR
> Command.php on line 268
> PHP Warning: Cannot use a scalar value as an array in phar://go-pear.phar
> /PEAR
> Command.php on line 268
> PHP Warning: Cannot use a scalar value as an array in
> phar://go-pear.phar/PEAR
> Command.php on line 268
> PHP 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-tarballs/PEAR-1.4.11.tar...
>
> PHP Warning: Cannot use a scalar value as an array in phar://go-pear.phar
> /Arch
> ve/Tar.php on line 2334
> PHP Warning: Cannot use a scalar value as an array in phar://go-pear.phar
> /Arch
> ve/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.
> ar', invalid or missing package file
> PHP Warning: Cannot use a scalar value as an array in phar://go- pear.phar
> /Arch
> ve/Tar.php on line 2334
> PHP Warning: Cannot use a scalar value as an array in phar://go-pear.phar
> /Arch
> ve/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
> PHP Warning: Cannot use a scalar value as an array in phar://go-pear.phar
> /Arch
> ve/Tar.php on line 2334
> PHP Warning: Cannot use a scalar value as an array in phar://go-pear.phar
> /Arch
> ve/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',
> nvalid or missing package file
> PHP Warning: Cannot use a scalar value as an array in phar://go-pear.phar
> /PEAR
> Command/Install.php on line 427
> PHP Warning: Cannot use a scalar value as an array in phar://go- pear.phar
> /PEAR
> Command/Install.php on line 427
> PHP Warning: Cannot use a scalar value as an array in phar://go-pear.phar
> /PEAR
> Command/Install.php on line 427
> PHP 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 . . .
>