PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PEAR » PEAR » Bug #9534

PEAR installation errors

Details

Submitted2006-12-04 14:05 UTC
Fromjonathan dot martens at gmx dot net
StatusBogus
PackagePEAR
PHP Version5_2 CVS-2006-12-04
OSWin XP SP2
Roadmaps(Not assigned)

Comments

[2006-12-04 14:05 UTC] jonathan dot martens at gmx dot net

Description:
------------
When I try to install PEAR in PHP 5.2.0 (which by the way has been release on Nov 2nd, and is no RC anymore IMHO) using the go-pear.bat executable I get the results in the actual results section.

Expected result:
----------------
Normal installtion of PEAR.

Actual result:
--------------
C:\Program Files\php\php-5.2.0>go-pear

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

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

1-8, 'all' or Enter to continue: 7
(Use $prefix as a shortcut for 'C:\Program Files\php\php-5.2.0', etc.)
Name of configuration file [C:\Program Files\php\php-5.0.3\pear.ini] : $prefix\p
ear.ini

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

1-8, 'all' or Enter to continue: 8
php.exe (sapi: cli) found.

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

1-8, 'all' or Enter to continue:
Beginning install...
Configuration written to C:\Program Files\php\php-5.2.0\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/Archi
ve/Tar.php on line 2334
PHP Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archi
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.t
ar', invalid or missing package file
PHP Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archi
ve/Tar.php on line 2334
PHP Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archi
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/Archi
ve/Tar.php on line 2334
PHP Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archi
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', i
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 . . .

[2006-12-04 17:05 UTC] jonathan dot martens at gmx dot net

Reported in the PHP bug tracker: http://bugs.php.net/39733

[2006-12-11 10:35 UTC] jonathan dot martens at gmx dot net

> To install PEAR, download
> http://pear.php.net/go-pear.phar
> and replace the go-pear.phar in your
> PEAR directory that came bundled
> with PHP 5.2.0. I regret the problems
> you're having.

If I download the go-pear.phar file I get errors while the file is a html file. Therefore I have opened the URL and copy-paste the code in a text file and named that go-pear.phar. But when I try to install I get the following error:

C:\Program Files\php\php-5.2.0>go-pear
ERROR: manifest length read was "3263554" should be "138414881"Press any key to
continue . . .

> Reported in the PHP bug tracker:
> http://bugs.php.net/39733

The PHP guys are not very cooperative... they have marked the bug as bogus stating that I have to use the work around or have to wait for the next release of PHP :-(

[2006-12-11 13:07 UTC] jonathan dot martens at gmx dot net

Solved the problem by extracting the go-pear.phar file from the 5.1.6 windows binary release from the php site (http://www.php.net/get/php-5.1.6-Win32.zip/from/a/mirror)