# "make install" on PHP_5_1 does not work with PEAR

- Thread: https://externals.io/message/18736
- Original archive: https://news-web.php.net/php.internals/18736
- Started by Sebastian Bergmann on 2005-09-09T08:20:15+00:00
- Messages: 12
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #18736 — Sebastian Bergmann — 2005-09-09T08:20:15+00:00

URL: https://externals.io/message/18736#18736

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

---

## #18737 — Sebastian Bergmann — 2005-09-09T08:48:14+00:00

URL: https://externals.io/message/18736#18737 · In reply to: #18736

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

---

## #18740 — Greg Donald — 2005-09-09T13:26:58+00:00

URL: https://externals.io/message/18736#18740 · In reply to: #18736

> 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/

---

## #18747 — Greg Beaver — 2005-09-09T17:21:45+00:00

URL: https://externals.io/message/18736#18747 · In reply to: #18740

Greg Donald wrote:
> 
> 
> > […]
> 
> 
> 
> 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

---

## #18760 — Wez Furlong — 2005-09-10T14:24:18+00:00

URL: https://externals.io/message/18736#18760 · In reply to: #18747

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.


> Greg Donald wrote:
> > […]
> 
> 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

---

## #18763 — Pierre Joye — 2005-09-10T16:56:41+00:00

URL: https://externals.io/message/18736#18763 · In reply to: #18760

> 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

---

## #18764 — Wez Furlong — 2005-09-10T17:54:50+00:00

URL: https://externals.io/message/18736#18764 · In reply to: #18763

It seems like a good idea to have `version_compare()` grok the version string too.

--Wez.


> 
> 
> 
> > […]
> 
>  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

---

## #18765 — Derick Rethans — 2005-09-11T00:54:15+00:00

URL: https://externals.io/message/18736#18765 · In reply to: #18764

> 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

---

## #18766 — Wez Furlong — 2005-09-11T05:51:48+00:00

URL: https://externals.io/message/18736#18766 · In reply to: #18747

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.



> Greg Donald wrote:
> > […]
> 
> 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

---

## #18775 — Pierre Joye — 2005-09-11T12:21:19+00:00

URL: https://externals.io/message/18736#18775 · In reply to: #18766

> 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

---

## #18806 — Andi Gutmans — 2005-09-13T00:49:48+00:00

URL: https://externals.io/message/18736#18806 · In reply to: #18765

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:
>
>
> > […]
> 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

---

## #18808 — Derick Rethans — 2005-09-13T02:37:33+00:00

URL: https://externals.io/message/18736#18808 · In reply to: #18806

> 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
