"make install" on PHP_5_1 does not work with PEAR

php.internals

Sebastian Bergmann

20 years ago
sb@wopr-mobile php-5.1 % make install exit 0; /usr/local/src/php/php-5.1/ext/sqlite/libsqlite/src/parse.y Installing PHP CLI binary: /usr/local/php-5.1/bin/ Installing PHP CLI man page: /usr/local/php-5.1/man/man1/ Installing PEAR environment: /usr/local/php-5.1/lib/php/ Notice: Constant PEAR_VALIDATE_INSTALLING already defined in phar://install-pear.phar/PEAR/Validate.php on line 25 Notice: Constant PEAR_VALIDATE_UNINSTALLING already defined in phar://install-pear.phar/PEAR/Validate.php on line 26 Notice: Constant PEAR_VALIDATE_NORMAL already defined in phar://install-pear.phar/PEAR/Validate.php on line 27 Notice: Constant PEAR_VALIDATE_DOWNLOADING already defined in phar://install-pear.phar/PEAR/Validate.php on line 28 Notice: Constant PEAR_VALIDATE_PACKAGING already defined in phar://install-pear.phar/PEAR/Validate.php on line 29 Fatal error: Cannot redeclare class pear_validate in phar://install-pear.phar/PEAR/Validate.php on line 46 make[1]: *** [install-pear-installer] Error 255 make: *** [install-pear] Error 2
-- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

Sebastian Bergmann

20 years ago
Sebastian Bergmann schrieb:
> Fatal error: Cannot redeclare class pear_validate in
No really related, but still: Why is the PEAR_Validate class name lower-cased?
-- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

Greg Donald

20 years ago
On 9/9/05, Sebastian Bergmann <sb@sebastian-bergmann.de> wrote:
> sb@wopr-mobile php-5.1 % make install > exit 0; /usr/local/src/php/php-5.1/ext/sqlite/libsqlite/src/parse.y > Installing PHP CLI binary: /usr/local/php-5.1/bin/ > Installing PHP CLI man page: /usr/local/php-5.1/man/man1/ > Installing PEAR environment: /usr/local/php-5.1/lib/php/ > > Notice: Constant PEAR_VALIDATE_INSTALLING already defined in > phar://install-pear.phar/PEAR/Validate.php on line 25 > > Notice: Constant PEAR_VALIDATE_UNINSTALLING already defined in > phar://install-pear.phar/PEAR/Validate.php on line 26 > > Notice: Constant PEAR_VALIDATE_NORMAL already defined in > phar://install-pear.phar/PEAR/Validate.php on line 27 > > Notice: Constant PEAR_VALIDATE_DOWNLOADING already defined in > phar://install-pear.phar/PEAR/Validate.php on line 28 > > Notice: Constant PEAR_VALIDATE_PACKAGING already defined in > phar://install-pear.phar/PEAR/Validate.php on line 29 > > Fatal error: Cannot redeclare class pear_validate in > phar://install-pear.phar/PEAR/Validate.php on line 46 > make[1]: *** [install-pear-installer] Error 255 > make: *** [install-pear] Error 2
Same errors here.
-- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/

Greg Beaver

20 years ago
Greg Donald wrote:
> On 9/9/05, Sebastian Bergmann <sb@sebastian-bergmann.de> wrote: > >>sb@wopr-mobile php-5.1 % make install >>exit 0; /usr/local/src/php/php-5.1/ext/sqlite/libsqlite/src/parse.y >>Installing PHP CLI binary: /usr/local/php-5.1/bin/ >>Installing PHP CLI man page: /usr/local/php-5.1/man/man1/ >>Installing PEAR environment: /usr/local/php-5.1/lib/php/ >> >>Notice: Constant PEAR_VALIDATE_INSTALLING already defined in >>phar://install-pear.phar/PEAR/Validate.php on line 25 >> >>Notice: Constant PEAR_VALIDATE_UNINSTALLING already defined in >>phar://install-pear.phar/PEAR/Validate.php on line 26 >> >>Notice: Constant PEAR_VALIDATE_NORMAL already defined in >>phar://install-pear.phar/PEAR/Validate.php on line 27 >> >>Notice: Constant PEAR_VALIDATE_DOWNLOADING already defined in >>phar://install-pear.phar/PEAR/Validate.php on line 28 >> >>Notice: Constant PEAR_VALIDATE_PACKAGING already defined in >>phar://install-pear.phar/PEAR/Validate.php on line 29 >> >>Fatal error: Cannot redeclare class pear_validate in >>phar://install-pear.phar/PEAR/Validate.php on line 46 >>make[1]: *** [install-pear-installer] Error 255 >>make: *** [install-pear] Error 2 > > > > Same errors here.
This should be fixed - if someone could confirm, that would be great. Note that pearweb sync happens once an hour, so this should not be attempted until about 20:00 GMT (1 PM CST in the USA). Greg

Wez Furlong

20 years ago
I get this with the PHP_5_1 branch after downloading the .phar: Installing PEAR environment: /usr/local/lib/php/ Error: .phar files require PHP 5.1 or newerInstalling build environment: /usr/local/lib/php/build/ --Wez. On 9/9/05, Greg Beaver <cellog@php.net> wrote:

Pierre Joye

20 years ago
On 9/10/05, Wez Furlong <kingwez@gmail.com> wrote:
> I get this with the PHP_5_1 branch after downloading the .phar: > > Installing PEAR environment: /usr/local/lib/php/ > Error: .phar files require PHP 5.1 or newerInstalling build > environment: /usr/local/lib/php/build/
It was due to the bad version used in CVS. version_compare does not manage it well. Derick changed the version to 5.1.0RC2-dev, that should solve this problem. It solved it here at least :) Regards, --Pierre

Wez Furlong

20 years ago
It seems like a good idea to have version_compare() grok the version string too. --Wez. On 9/10/05, Pierre Joye <pierre.php@gmail.com> wrote:

Derick Rethans

20 years ago
On Sat, 10 Sep 2005, Wez Furlong wrote:
> It seems like a good idea to have version_compare() grok the version string too.
It did understand it, it's just that the comparison (although correct) was just giving the wrong result because our version numbers where not in the correct order. Derick
-- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

Andi Gutmans

20 years ago
Well in all the years I've rolled releases I have never used RCn-dev. Seems like this was something only applied to the 4.3 branch. I'm not opposed to changing that and I'll be happy to do so, but it would probably make sense to have a more robust comparison, especially if it's something like "is it a 5.1 release or not". Not talking about ">5.1.4". And people shouldn't forget, -dev is not production code and things might break from time to time. Andi At 05:54 PM 9/10/2005, Derick Rethans wrote:

Derick Rethans

20 years ago
On Mon, 12 Sep 2005, Andi Gutmans wrote:
> Well in all the years I've rolled releases I have never used RCn-dev. Seems > like this was something only applied to the 4.3 branch.
And now to the 5.1 one as well :) Derick
-- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

Wez Furlong

20 years ago
It looks like the <configureoptions> handling is broken. Try this: $ cd php-src/ext/pdo_odbc $ pear package $ sudo pear install PDO_ODBC-1.0RC1.tgz It doesn't prompt for the configure options anymore. --Wez. On 9/9/05, Greg Beaver <cellog@php.net> wrote:

Pierre Joye

20 years ago
On 9/11/05, Wez Furlong <kingwez@gmail.com> wrote:
> It looks like the <configureoptions> handling is broken. > Try this: > > $ cd php-src/ext/pdo_odbc > $ pear package > $ sudo pear install PDO_ODBC-1.0RC1.tgz > > It doesn't prompt for the configure options anymore.
I just commited a fix, if you have some spare time you can try the fix. You only need to copy these 2 files (see my commit about configure prompt). I would like to have a beta2 next week, a last beta. We do not have met serious problems in the past week. The only one was the old phar. Then we should be ready to have 1.4.0 in php 5.1 using phar. Regards, --Pierre